PDA

View Full Version : OpenGL regions



huckleberry
11-19-2003, 06:07 PM
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?

-Tx

lost hope
11-19-2003, 07:57 PM
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 (nehe.gamedev.net): http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=32