PDA

View Full Version : OpenGL Cubes



02-02-2001, 11:26 AM
how do i create a simple cube using opengl...i noticed there is no function for a cube...do i use discs? i tried using a cylinder and boy that does not work...help here...thanks

Deiussum
02-02-2001, 12:35 PM
I assume you are using gluDisk for the disk? If you're using glut, you could use glutSolidCube. Or just build the vertices yourself and don't use the glu/glut stuff for it. A cube isn't that hard.

MrShoe
02-02-2001, 03:41 PM
You can always just create 6 squares in the form of a cube. I think that is the best way to make a cube.