OpenGL regions

I’m looking to create a few buttons in opengl; nothing like a winform button. I’m wondering if there is a way to make a region on my screen and when the mouse clicks on it the event is grabbed.
Any suggestions/ideas/concepts?


in order to do what you’re talking about, you need to use openGL’s GL_SELECT render mode – there are a few tutorials regarding this subject on the web. here’s a link to one on nehe (