-
Launch Visual Studio.
-
From the File menu, select the New menu. From that menu, select Project..., as demonstrated in this image:
-
The New Project dialog will appear, as shown below. Type the name of
your project (this will be used as the directory name and the project
file name) into the text box labelled Name.
-
Type the name of the parent directory of your project into the text box labelled Location.
-
Press Ok to move on to the next dialog.
-
The Win32 Application Wizard dialog will appear. Press Next (not Finish!)
-
Select the Windows application and Empty project options, as demonstrated in the image below.
-
Press Finish.
-
Using Explorer or the command line, copy the starter G3D sample
program files to your project directory. If you
installed G3D to c:\libraries, the sample program files are in
c:\libraries\G3D-7.00\demos\starter.
-
In Visual Studio, right-click on the project folder inside your project in the Solution Explorer window. From the context menu, select Add and then Existing Item... as demonstrated in this image:
-
Select the App.cpp, App.h, and main.cpp files that you copied over and press OK.
-
Push F5 to compile and run this default program. If Visual Studio and G3D are installed
correctly, Visual Studio will automatically link your program against all libraries needed. When run,
the sample program will have the camera floating in space near a set of colored axes. Hold down the right mouse button and use
the mouse to rotate the camera and the W, A, S, and D letter keys
to translate the camera (these are standard first-person video game controls). The Developer Window in the lower right corner of your
program's 3D window gives you additional debugging tools. You can quit the program by pressing ESC at any time.
-
Edit your App.cpp file. The comments in the file show you where to add code for rendering, input processing, network, and graphics.