1.Download and install codeblocks-17.12mingw-setup.exe From
Here
.Unless Codeblocks not install in your computer.
2.Download glut-3.7.6-bin.zip from Here and Unzip this file.There, your will get at least 3 files.glut.h, glut32.dll, glut32.lib
3.Copy glut.h file and Go to C:\Program Files (x86)\CodeBlocks\MinGW\include\GL this Location in your computer and paste glut.h
4.Copy glut32.lib file and Go to C:\Program Files (x86)\CodeBlocks\MinGW\lib this Location in your computer and paste glut32.lib
5.Copy glut32.dll file and Go to C:\Windows\SysWOW64 this Location in your computer and paste glut32.dll
-
Note: If your Operating System is 32 bit, folder name might be
C:\Windows\System32 -
if your
Codeblocks is 64 bit, you will getCodeblocksinProgram Filesinstead ofProgram Files (x86)
N.B: When you go to noted path and paste the file.
you will insure that don't modify ,replace or delete file.just you paste your desire file.1.Open Codebocks and then go settings -> compiler -> linker settings.
2.Click add button and go to C:\Program Files (x86)\CodeBlocks\MinGW\lib and add this file (glut32.lib, libglu32.a, libopengl32.a) one by one
3.Press ok and finally Click ok and Close the top of window.
1.Open Codeblocks go to File->New -> Project -> GLUT Project -> Go -> Next
2.Provide the project name and Choose the path where you want to save your project then go to next.
3.select C:\Program Files (x86)\CodeBlocks\MinGW as a GULT's Location then next -> Finish.
4.When you create new project.you will already get a ready made project default.
5.Click main.cpp file and Add #include<windows.h> Line in top your project code.
6.Press F9 or go to Built -> Run to run your project.
If you follow the instructions above correctly. Then your program will be successfully run properly.
- computer graphics assignment file contain the MVC to VCS and VCS to NDCS conversion .
- This lab works are designed and developed an attractive class room using c++ ,openGl glu,glut library