Tree branch
Another tree branch
OpenGL Tutorials
Spider web
Facebook Twitter Google Plus
How To Make OpenGL Work With Microsoft Visual C++ 6.0 Compiler
OpenGL Tutorials:
OpenGL Tutorials - Full List Tutorial 0 - OpenGL Compiler Setup Tutorial 1 - 3D Graphics Introduction Tutorial 2 - Creating an OpenGL Window in Win32API Tutorial 3 - OpenGL Primitives, Triangles, Fans, Stripes, Vertices, Vertexes, Arrays Tutorial 4 -Working with OpenGL Color Tutorial 5 - Transforms, Transformations (Rotate, Move, Spin) in 3D Coordinate Space Tutorial 6 - How to Load 3D Model in OpenGL OpenGL Base Code (Starting Point) OpenGL Light: Ambient, Diffuse, Specular Highlight

Setting up Microsoft Visual C++ Compiler to Work With OpenGL

You might be already familiar with library files on Windows (those that have .lib extension). Working with OpenGL, there are two main libraries you need to link your compiler to. They are opengl32.lib and glu32.lib. Just search your computer for them.

You should have these libraries natively installed on your Windows or OSX out of the box. Add those libraries to the Object/Library modules box located under the Link tab in Settings on the Project menu, and you're ready to go.

You might want to go to some OpenGL related sites to get the latest version of these libraries. In your source code you will have to #include "gl/gl.h" and "gl/glu.h". You will also find that you may need to download something that is called "glew" or "glee" library (choose one, I use glew, but they accomplish the same thing.) Search for them on Google and add them to your project. They are basically gl function and extension headers for working with OpenGL.

If you have a different compiler, other than MVC++6, you will have to find your own way of adding these libraries to your project. However, I am planning on providing better tutorials on setting up your compiler to work with OpenGL.

OpenGL Tutorials:
OpenGL Tutorials - Full List Tutorial 0 - OpenGL Compiler Setup Tutorial 1 - 3D Graphics Introduction Tutorial 2 - Creating an OpenGL Window in Win32API Tutorial 3 - OpenGL Primitives, Triangles, Fans, Stripes, Vertices, Vertexes, Arrays Tutorial 4 -Working with OpenGL Color Tutorial 5 - Transforms, Transformations (Rotate, Move, Spin) in 3D Coordinate Space Tutorial 6 - How to Load 3D Model in OpenGL OpenGL Base Code (Starting Point) OpenGL Light: Ambient, Diffuse, Specular Highlight

© 2014 OpenGL Tutorials.

About | Privacy | Contact

Built with Tornado PHP FrameworkTornado PHP Framework with Wooden PHP Template template | Web design by Web Design by Greg.