OpenGL and GLUT
Cg
In case those pages go away, it boils down to this:
GLUT
- Get GLUT for Win32
- Copy...
- glut32.dllto- %WinDir%\System
- glut32.libto- $(VSDir)\VC\lib
- glut.hto- $(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 typeisConsole ApplicationandEmpty project(underAdditional options) is checked.
- Go to Project->(project name) Settings
- Set ConfigurationtoAll 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.libtoAdditional Dependencies
 
No comments:
Post a Comment