PDA

View Full Version : opengl window with edit control



Dathu
04-18-2008, 01:41 AM
Hi

I am beginner for the opengl application development.I have created opengl window using glutCreateWindow();, Here my question is how to create(or) insert an edit control in that opengl window and according to the given values in that edit control my opengl window objects should respond(ex:according to the given x coordinate my object in that window should move).

can any one help me.........

147-2
04-21-2008, 03:49 PM
You can do one of two things, you can create your own control widgets in OpenGL and then handle all events yourself, or you could use something like Gtkmm to create your controls, and gtkglextmm to create your OpenGL view. I personally would try the latter unless there's some reason why you'd want to do the former.