If you see the output of your program as shown above, you’ve properly setup OpenGL (GLUT) in CodeBlocks, and successfully created a project. Build and Run, and you’ll see a window as shown below.Don’t forget to include the header file – “ #include“, otherwise you’ll get error.As of this step, a project is finally created, and you’ll get a default main.cpp file.For GLUT location, give the path “ C:\Program Files\CodeBlocks\MinGW“.The project file is created by default from the title name of the project.Enter the title name of the project, and give path to save the project.Copy the glut.dll file and paste to the folder “ C:\Windows\System32“.Open bin folder from the downloaded file.Copy all files and paste to the folder “ C:\Program Files\CodeBlocks\MinGW\lib“.
Copy the glut.h file and paste to the folder “ C:\Program Files\CodeBlocks\MinGW\include\GL“.Open include folder from the downloaded file.
#DOWNLOADING CODE BLOCKS FOR WINDOWS 10 DOWNLOAD#
It is a window system independent toolkit which makes exploring and learning about OpenGL programming easier and simpler. GLUT is the OpenGL Utility Toolkit used for writing programs in OpenGL (Open Graphics Library).