Would someone know how to use glutwire objects, for example how to draw a sphere, cone, cylinder etc.
I think there are predefined objects, such as glutWireSphere(…) which we can use…but i dont know where to look them up.
Thanks
Would someone know how to use glutwire objects, for example how to draw a sphere, cone, cylinder etc.
I think there are predefined objects, such as glutWireSphere(…) which we can use…but i dont know where to look them up.
Thanks
have you looked int the glut user manual?
Found it
You can find out anything about a glut command by going to the openGL main page and use the search box.
Note that glut does not have a cylinder function but has the following: sphere, cone, cube, torus, teapot, dodecahedron, octahedron, tetrahedron, iscosahedron.
All glut object can be solid or wire.
example:
glRotatef(15, 0, 0, 1);
glTranslatef( 3, 1, 2);
glutSolidCube(10); // where value is size of cube
Originally posted by lara:
[b]Would someone know how to use glutwire objects, for example how to draw a sphere, cone, cylinder etc.
I think there are predefined objects, such as glutWireSphere(…) which we can use…but i dont know where to look them up.
Thanks[/b]