Click to choose your tutorial
Tutorial 1: SDK
Tutorial 2: Creating a Window
Tutorial 3: Vulkan Instance
Tutorial 4: Supported Extensions
Tutorial 5: Drawing Points
Tutorial 6: Drawing Lines
Tutorial 7: Drawing Triangles
Tutorial 8: Introduction to Shaders
Tutorial 9: Loading Shaders
Tutorial 10: Using Multiple Shaders
Tutorial 11: Loading 3D Model
Tutorial 12: Displaying 3D Model
Tutorial 13: Vertex Animation
Tutorial 14: Bone Animation
OpenGL Tutorials
site is v0.1a build Sep 11, 2016
Join to be notified of new tutorials

Tutorial 1 - Microsoft Visual Studio C++ 6.0 Compiler Setup for OpenGL

Written by staff. Contact us to submit your article for review.
Sep 13, 2016
tags Tags keywords
Post #26

You might be already familiar with library files on Windows (those that have .lib extention). 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.

This tutorial was written for Microsoft Visual C++ 6.0 but even in modern MVC IDEs, the process is similar. The only thing that has changed was the configuration screen layout. But you still incude libraries in pretty much the same way.

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 or IDE 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.

article tab
Follow OpenGL Tutorials
You will only receive important news about OpenGL tutorial updates.
Who is joining?
  • Programmers You want to stay in touch to receive OpenGL tutorial updates.
  • Game Devs You're a game developer, and you also want to learn more about OpenGL!
  • Supporters You have invested interest in supporting OpenGL tutorial site.
Follow OpenGL Tutorials