OpenGL and GLUT
Cg
In case those pages go away, it boils down to this:
GLUT
- Get GLUT for Win32
- Copy...
glut32.dll
to%WinDir%\System
glut32.lib
to$(VSDir)\VC\lib
glut.h
to$(VSDir)\include\GL
- ...where
$(VSDir)
is something likeC:\Program Files\Microsoft Visual Studio 9.0\VC
Cg
- Install the latest Cg Toolkit
Visual Studio
- Make a new Win32 Console Application project:
File->New Project->Visual C++->Win32->Win32 Console Application
- In the "Application Settings" page of the wizard, make sure
Application type
isConsole Application
andEmpty project
(underAdditional options
) is checked. - Go to
Project->(project name) Settings
- Set
Configuration
toAll Configurations
- Expand
Configuration Properties
- In
C/C++->General
, add$(CG_INC_PATH)
toAdditional Include Directories
- In
Linker->General
, add$(CG_LIB_PATH)
toAdditional Library Directories
- In
Linker->Input
, addopengl32.lib glu32.lib glut32.lib cg.lib cgGL.lib
toAdditional Dependencies