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.
Getting ready
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
Tutorial1 ...
Get OpenGL – Build high performance graphics now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.