How To Install OpenGL For C++ In Codeblocks
- Download Freeglut files from HERE.
- Go to Bin and copy freeglut.dll to
- if 32 bit OS then copy to windows/system32
- if 64 bit OS then copy & paste to SYSWOW64
- Go to include and copy all files, then paste to C:\Program Files (x86)\CodeBlocks\MinGW\include\GL
- Go to lib ,and copy two files to C:\Program Files (x86)\CodeBlocks\MinGW\lib
- Open Notepad
- Open C:\Program Files (x86)\CodeBlocks\share\CodeBlocks\templates
- Find file glut.cbp
- Search and Replace glut32 by freeglut
- Save
- Again Open C:\Program Files (x86)\CodeBlocks\share\CodeBlocks\templates\wizard\glut
- Find wizard.script
- Search and Replace glut32 by freeglut
- Save
- Run CodeBlocks
- Make a new glut project, select the Glut location as C:\Program Files (x86)\CodeBlocks\MinGW
- Remove Code from main () and place your own code there
- Enjoy
Watch Video
Post a Comment