PDA

View Full Version : creating 3D triangle problem



09-26-2002, 06:06 PM
i want to create a simple shape like a 3D triangle in openGL which allows the user to key in values so that the triangle such as height, width or volume and it will transform to that particular size. Can anyone help me on this?!?!

thx! so much

chicho
09-26-2002, 09:13 PM
At First, you must create 3 vertex.
You must capture the keyboard event's (For this you could use GLUT), and apply a OpenGL
function "glScalef", assing the correct parameters to scale in each axis.