PDA

View Full Version : OpenGL Menus



Crabsmasher
01-20-2005, 11:01 AM
I need to know how to make a menu screen for a game. I don't need a pop up menu I need a menu on already on screen.

Aeluned
01-20-2005, 11:58 AM
Draw the menu, for each menu item load a name onto the name stack before you render it.
OnLButtonDown render the scene in GL_SELECT mode and get the name of the menu item hit (if any).
Call the handler function for the menu item with that name.