Hello,
Can someone please show me how to draw a command button on the openGL window?
Appreciate it.
Thanks
Use glRect() or glBegin( GL_LINES)… for example.
Mikael
GLUI is a toolkit that can be used for drawing widgets such as buttons, text fields, check boxes etc. Even if it isn’t appropiate to your task, you should be able to learn how to draw such controls from its source code - it is very well written and very easy to follow.
http://gd.tuwien.ac.at/hci/glui/