OpenGL Cubes

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

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.

You can always just create 6 squares in the form of a cube. I think that is the best way to make a cube.