PDA

View Full Version : How to draw a 3D cube wireframe using glVertex



nene
08-06-2003, 08:32 AM
Hi, im a beginner in OpenGL and would like to know how to draw a 3D cube wireframe in OpenGL using the glVertx(). Could someone please advise me?

nexusone
08-06-2003, 09:34 AM
This website: nehe.gamedev.net has a example of a rotating 3D cube, built using glVertex, but then all 3D objects are built using glVertex in some form!!!!


NEHE also a good website to get you feet wet learning the basics of openGL.



Originally posted by nene:
Hi, im a beginner in OpenGL and would like to know how to draw a 3D cube wireframe in OpenGL using the glVertx(). Could someone please advise me?

honeyhuang
08-06-2003, 08:20 PM
Yes, he is right. The website of nehe is very very useful. So many source codes are there!