Drawing command button on openGL

Can someone please show me how to draw a command button on the openGL window?
Appreciate it.

Use glRect() or glBegin( GL_LINES)… for example.


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.