In this article, you will learn how to download and install OpenGL freeglut in Dev c++. OpenGL (Open Graphics Library) API is a set of functions that are used to render 2D and 3D vector graphics. You can use it in computer-aided designs, gaming, virtual reality, etc.
Where to download OpenGL freeglut?
You can download freeglut 3.0 from this link. It consists of 32-bit or 64-bit windows DDL files libraries, import libraries, and header files. These are used in visual studio, Dev C++, and other programming tools and IDES to write freeglut applications.
After downloading, extract the file and you will see the folders just as below.
Install OpenGL freeglut in Dev C++
You can install freeglut in Dev C++ by following these three steps.
You can go to the freeglut file folder and copy all the header files inside the include/ GL folder by following the below directory
Copy all the header files and past them into the bellow directory
C: / Program Files (x86)> Dev-Cpp > MinGW64 > x86_64-w64-mingw32 > include
Now you can copy all import libraries from the below directory
freeglut > lib >64
Copy all the import libraries and paste them in the bellow directory folder
C: / Program Files (x86)> Dev-Cpp > MinGW64 > x86_64-w64-mingw32 > lib
You have to add a batch file, just copy the file from the below link
Freeglut> bin >x64
Copy the batch file and paste it into the below directory
C: / Windows > System32
That’s all your OpenGL freeglut libraries are successfully installed and integrated with Dev c++. Now you are ready to write freeglut applications.
You can also check other related articles