PDA

View Full Version : Drawing a Cube



novalis
05-17-2002, 03:02 PM
Hi, Im trying to start write my first OpenGL program with Visual C++, because I must have help a friend. I would like to draw a 3d cube and make some tranformations like rotating and translating, but Im having some understanding problems. Someone have any code example, or a good Tutorial?

Thank you

Penance
05-17-2002, 08:14 PM
http://nehe.gamedev.net/opengl1.asp

start with lesson 1 on setting things up in windows. then work your way up to lesson 4. It will probably take you a day or more to grap it all.

If you would like some simplified code (without all of nehe's fullscreen handling and message boxes, etc) you can e-mail me at NeoAnime@aol.com and i will send you the code I derived from his which is much lighter and probably easier to jump right into.