View Full Version : can i give the input of the vertices during the execution?

07-31-2003, 12:18 AM

Is it possible to create a 3D square where the vertices of the square should be given during the execution of the program?
B'coz the size of the object should vary whenever i want.
with Thanks..

07-31-2003, 12:20 AM
Sure, just pass in variables to glVertex3f, and hook up the variables to the input of your choice. Check out GLUT for keyboard input, for instance.

(Mind you, OpenGL does drawing _only_ - everything else is your problem. http://www.opengl.org/discussion_boards/ubb/smile.gif )