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 4 of 4

Thread: How to create menu using opengl??

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2006
    Location
    hk
    Posts
    23

    How to create menu using opengl??

    I know there is a list of functions to do that, they are GlutCreateMenu()、glutSetMenu()、glutAddMenuEntr y()、glutAddSubMenu() 和glutAttachMenu()...such kind of things.

    However, this type of menu is activated by right clicking the mouse.

    I want to create menu like those of FIFA, Winning Eleven, Rainbow 6, those kind of menu. Can I do that through Opengl? Like using texture mapping to create font and then select by special key input?

    Or any other way of Opengl?
    The most important question is, can Opengl create such menu?
    Thank you!

  2. #2
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,979

    Re: How to create menu using opengl??

    OpenGL is just a graphics library. If you want a menu, then you will have to draw it yourself. There are several libraries in internet that provide GUI for OpenGL. Unfortunatelly, I don't know any links, but you should be able to find somethng that suits you by using google.

  3. #3
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    4,388

    Re: How to create menu using opengl??

    I can email you samle code which does this. It is messy, I did if for an OpenGL challenge web site a long time ago just before the guy stopped maintaining it :-(. Anyhoo message me your email and I'll send you my menu demo.

  4. #4
    Junior Member Newbie
    Join Date
    Aug 2005
    Location
    NYC
    Posts
    4

    Re: How to create menu using opengl??

    Try CPW.

Posting Permissions

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