Posted: Tue Jan 04, 2011 7:51 am Post subject: How can I draw inside of an OpenGL game using hooks?
I'm wanting to draw a simple shape inside of an OpenGL game(Quake 3 engine) using SetWindowsHookEx, is this even possible? If so how do I accomplish it? _________________
I was going with something much more simple such as a 2D solid color rectangle.
Oh and I'm not trying to write an openGL game, I want to draw a rectangle ontop of for example, Quake 3 using some sort of hook if its possible. _________________
Quake uses OpenGL and it is possible to do what you want, but you will need to hook into the OpenGL lib. Or create your own overlay, of which if your game is using OpenGL you will need to snag draw coords from OpenGL calls. I'd suggest using OpenGL to do the actual drawing, not sure if you could use DirectX on top of OpenGL.
Check out that link I posted for you. Should be alot of what you need. _________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum