PDA

View Full Version : Drawing command button on openGL



tranlq
01-28-2004, 07:41 AM
Hello,
Can someone please show me how to draw a command button on the openGL window?
Appreciate it.
Thanks

mikael_aronsson
01-28-2004, 08:47 AM
Use glRect() or glBegin( GL_LINES)... for example.

Mikael

01-28-2004, 04:32 PM
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/