绘制游戏的ontop [英] Drawing ontop of a game

查看:82
本文介绍了绘制游戏的ontop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道有没有办法画画,比如一个小小的信息窗口,游戏的顶部,它以全屏模式运行。

起初我认为这是不可能的,但是fraps - 一个录音程序 - 确实吸引了游戏fps。即使在全屏模式下也是如此。

有没有办法实现这一点(在C#中)?

解决方案

请看我对这个问题的评论。如果这是一个基于DirectX的游戏(你遇到的困难是指示性的),解决问题非常困难。例如,参见这些作品:

http://www.skymaster1980.net16.net/index.php/direct3d/advanced-code-snippets/253-external-directx-overlay-non-hooked-c- [ ^ ],

http://www.unknowncheats.me/forum/c/62019-c-non-hooked-external-directx-overlay.html [ ^ ],

http://www.gamedev.net/topic/359794- c-direct3d-hook-sa​​mple / [ ^ ]。



-SA

Hello everyone,
I wondered wether there was a way to draw, something like a little information window, ontop of a game, which is running in fullscreen mode.
At first i thought this would be impossible, but fraps - a recording program - does draw the games fps. even in fullscreen mode.
Is there a way of archieving this ( in C# ) ?

解决方案

Please see my comment to the question. If this is a DirectX-based game (the difficulty you have is indicative), solving the problem is pretty difficult. See, for example, these works:
http://www.skymaster1980.net16.net/index.php/direct3d/advanced-code-snippets/253-external-directx-overlay-non-hooked-c-[^],
http://www.unknowncheats.me/forum/c/62019-c-non-hooked-external-directx-overlay.html[^],
http://www.gamedev.net/topic/359794-c-direct3d-hooking-sample/[^].

—SA


这篇关于绘制游戏的ontop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆