PDA

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



roselin
07-31-2003, 01:18 AM
Hai,

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..

NordFenris
07-31-2003, 01: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 )