Now, it's time to create our playground. Before we start coding, let's decide on the basic features that we want to set up:
Visual Studio project
Windows environment
OpenGL environment
Game loop
That's all we are going to do for now. The idea is to set up a basic template that you can use to start any game or experimental project. We don't want to include too much in this basic framework, so we will leave out sound, input, sprite, and model loading for now. These can be added in as they are needed.
Start a new blank project and name it FunWith3D
. Make sure to add the correct libraries as we have done before in the project Properties, Configuration Properties, Linker, Input, Additional Dependencies property:
glu32.lib;opengl32.lib;SOIL.lib;
We are going to include the SOIL library because it is so useful to load images. You will want to copy the following files over from our SpaceRacer3D.cpp
project folder:
glut.h
glut32.lib
glut32.dll
SOIL.h...