How to add menu to your OpenGL Projects

In this tutorial we are going to see how to add menu in OpenGL. Adding menu in you OpenGL Projects not only make the program more user interactive but it make it smother and more usefull
Rajeev
How to add menu to your OpenGL Projects
In OpenGL programming there many way to make the user interactive programs. One of the things that is the use of menu, which is like selecting something (off-course with mouse) to change the state of some variable to achieve the desire result with that change. In this tutorial we are going to see how to add menu in OpenGL. Adding menu in you OpenGL Projects not only make the program more user interactive but it make it smother and more usefull. So let get started with it. For adding menu in our OpenGL Projects we use the glutCreateMenu, which create the popup menu and return  identifier (small integral value). The code looks like - glutCreateMenu(menu); // it can be given to variable like mainmenu=glutCreateMenu(menu) Firstly we create sub-menus then we go for the main menu which became the current menu. glutAddSubMenu("Operating System", os); The string "Operating System" represent the name of sub-menu that is to be displayed, while second argument 'os' …

2 comments

  1. Anonymous
    Do you mind if I quote a couple of your posts as long as I provide credit and sources
    back to your blog? My blog is in the very same area of interest as yours and
    my visitors would genuinely benefit from some of the information
    you present here. Please let me know if this alright with you.
    Cheers!

    my web page new baby advice, ,
  2. zoe russo
    Thannks great blog post