Sign in to follow this  

GLUI

This topic is 4778 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ive done some stuff in GLUI. you dont have much control over it but you have all the menus, listboxes, checkboxes etc etc for it , all in all a nice neat little interface. you can download the GLUI libraries and it comes with examples. just type in GLUI on google and you will get plenty of matches. here is one for starters..

http://www.nigels.com/glt/glui/


have fun!

Share this post


Link to post
Share on other sites
Thanks mate, i m working using vs.net and its giving me an error when i will run the program
Linking...
LINK : error LNK2020: unresolved token (0A00000C) GLUI_Master
LINK : fatal error LNK1120: 1 unresolved externals
any idea i put my glui.h file in the same folder as glut and i included the file as a glui.h at the starting of project

Share this post


Link to post
Share on other sites
Quote:
Original post by OpenGL_Guru
ive done some stuff in GLUI. you dont have much control over it but you have all the menus, listboxes, checkboxes etc etc for it , all in all a nice neat little interface. you can download the GLUI libraries and it comes with examples. just type in GLUI on google and you will get plenty of matches. here is one for starters..

http://www.nigels.com/glt/glui/


have fun!


actually, you get CONTEXT menus, but not window menus. however, you can control multiple context menus which you can then use to basically make your own window menu using ortho mode.... but by then you're starting to write your on UI, which i believe most people prefer over GLUI.

GLUI is nice for beginners, but it does have some bugs and is kinda ugly. i recommend you don't become dependent on it because you'll either get tired of looking at it, tired of using it... or both.

Share this post


Link to post
Share on other sites
Basically i didnt work that much on Opengl but i tried to work on some examples and its look alrite do you have any idea how to make menu look nice like windows including glui ?Is there any tutorials regarding to menu created like windows menu becoz i want to create menu in game.

Share this post


Link to post
Share on other sites

<br />old terrain editor


it uses glui (on top of glut). you can build something *similar* to the menus you want.

use a 2d projection to make the menu options (File, Edit, View, Help, whatever). use GLUI to build the menus (Save, New, Exit, whatever). after you have all your menus built, just put something in your mouseMove(...) function to detect if the mouse is over one of your menus, and bind the corresponding menu. this is straight out of the above proggy.
void moveMouse(int x, int y){
if(y<25 && x<210){
glutSetMenu(fileMenu_bar);
glutAttachMenu(GLUT_LEFT_BUTTON);
}else{
glutDetachMenu(GLUT_LEFT_BUTTON);
}
}

Share this post


Link to post
Share on other sites
dude, i think we're past the intros, lol

this is really a combination of techniques. if you can first master these techniques, then building such a menu will be easy as pi


GLUT based popup menus

GLUT mouse routines

GameDev
Nehe Tutorials

the first two links will get you started. search the forums on gamedev and checkout the nehe tutorials for examples of how to overlay your 2d graphics over your 3d display.
____________________________________________
master mouse routines, master building and attaching popup menus, and master the 2d projection.

Share this post


Link to post
Share on other sites

This topic is 4778 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this