Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: OpenGL Menus

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2005
    Posts
    2

    OpenGL Menus

    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.

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2004
    Location
    Long Island, New York
    Posts
    586

    Re: OpenGL Menus

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •