This project has been tested on a Linux machine. Below is a list of necessary libraries and tools, along with their installation commands.
Ensure your system has a C++ compiler (like g++
)
GLFW is used for creating OpenGL contexts and managing windows and inputs.
Install it using:
sudo apt install libglfw3 libglfw3-dev
GLAD is an OpenGL loader that manages function pointers for OpenGL. The GLAD library is included in this project, so you don't need to install it separately.
These libraries are required to develop and compile OpenGL programs.
Install them using:
sudo apt install libgl1-mesa-dev
To compile and link your project, ensure you have build-essential
installed:
sudo apt install build-essential
To install all the libraries and tools at once, run the following command:
sudo apt install libglfw3 libglfw3-dev libgl1-mesa-dev build-essential
OpenGL-Cpp-Boilerplate/
├── .vscode/
│ ├── tasks.json
├── glad/
│ ├── glad.c
│ ├── glad.h
│ └── khrplatform.h
└── main.cpp
- Verify your GPU supports the OpenGL version specified in the GLAD configuration.
- If any libraries are missing, double-check their installation or refer to your package manager for troubleshooting.