PDA

View Full Version : how to set visual c++ to use open gl?



vhylynx
02-23-2002, 05:36 PM
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

kehziah
02-24-2002, 03:03 AM
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.

nexusone
02-24-2002, 05:02 AM
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:
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

02-24-2002, 07:24 AM
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.

vhylynx
02-24-2002, 07:25 AM
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.

Furrage
02-25-2002, 05:35 AM
Some of the best tutorials for OpenGL are at http://nehe.gamedev.net.