Step-1 : Install CodeBlocks Application
Step-2 : Copy the glut.h file and paste it into the directory "C:\ProgramFiles(x86)\CodeBlocks\MinGW\include\GL"
Step-3 : Copy glut32.lib file and paste it into the directory "C:\Program Files(x86)\CodeBlocks\MinGW\lib"
Step-4 : Copy the glut32.dll and paste it into the directory
"C:\Windows\System32" --(For 32 bit operating system)"
"C:\WINDOWS\SysWOW64" --(For 64 bit operating system)"
Step-4 :GLUT LOCATION "C:\Program Files(x86)\CodeBlocks\MinGW"
Finally create a new project(2D / 3D Graphics) CodeBlocks in "GLUT project" and run
In Every OpenGL Program Include the Following Header Files:-
#include <windows.h>
#include <GL/glu.h>
#include <GL/glut.h>
download link: https://drive.google.com/drive/folders/1_6dOsJgRTpqJKdyE-6FQVX18C4xg1o6D?usp=sharing