Drawing objects on screen over everything else.

Hey all,

this is my first post here. I’ve been programming for a while, but I haven’t used the openGl api for very long.

I was wondering if there was a way to draw to the screen over everything else that is being displayed. my first guess was to use glDrawPixels() to draw stuff straight to the frame buffer, but I’m not sure thats the best way to go. What I want to do is draw something (a window or something) and have it always be shown on screen(not necessarily have focus but be visible), especially when something else like a game is running.

am I on the right track or is there an easier way to do this.

thank you very much,


just render it last, with depth test disabled ?

well I was thinking about drawing on the entire screen aka desktop and what not, I’ve been looking around and looks like to do what I wan’t dll hooking seems to be the way to go (I’m building a system to overlay over games), the unfortunate part is that most games use d3d. So now I am looking into having ogl render to a texture that d3d creates.