how to set visual c++ to use open gl?

i want to learn open gl, and my university uses visual c++ for that class. i cant take that computer graphics class yet, so i want to start open gl NOW.

how to set visual c++ to use open gl???

thanks

Write some kick-ass 3D realtime demo with OpenGL support for rendering.

Your source will require at least #include <gl/gl.h> (possibly <gl/glu.h> as well) somewhere.

Then add opengl32.lib (possibly glu32.lib as well) in Project->Settings->Link->Object/library modules.

That’s it.

All the lib’s and header files for opengl are shipped with MSVC++.

Put the openGL headers in your program, just like the examples.

Then you just need to include the library files when linking: opengl32.lib, glut32.lib, glu32.lib and glaux.lib(if the glaux.h is used).

Originally posted by vhylynx:
[b]i want to learn open gl, and my university uses visual c++ for that class. i cant take that computer graphics class yet, so i want to start open gl NOW.

how to set visual c++ to use open gl???

thanks[/b]

A complete VC++ workspace that decodes 3D Studio MAX meshes and displays them on the screen is available for free from:
http://p-squared.com/Display3DS.zip

Just expand the zip file into your VC++ Projects directory (preserving sub-directories) and open the Display3DS.dsw workspace file.

Good luck in your studies.

thanks.

can any of you guys please send me a simple program? my email is vhylynx@hotmail.com

i would like to try it myself.

Some of the best tutorials for OpenGL are at http://nehe.gamedev.net.