Compiling and running your first OpenGL application in Windows
There are several ways to set up an OpenGL project. Here, we create a sample project using Visual Studio 2013 or higher and provide a complete walkthrough for the first-time configuration of the OpenGL and GLFW libraries. These same steps can be incorporated into your own projects in the future.
Assuming that you have both Visual Studio 2013 and GLFW (version 3.0.4) installed successfully on your environment, we will start our project from scratch.
How to do it...
In Visual Studio 2013, use the following steps to create a new project and compile the source code:
- Open Visual Studio 2013 (VS Express 2013 for desktop).
- Create a new Win32 Console Application and name it as