PDA

View Full Version : glut wire objects



lara
10-02-2002, 06:56 AM
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

Gavin
10-02-2002, 07:03 AM
have you looked int the glut user manual?

lara
10-02-2002, 07:04 AM
Found it

nexusone
10-02-2002, 07:48 AM
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

http://www.opengl.org/discussion_boards/ubb/smile.gif


Originally posted by lara:
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