openGL is library for graphics, so we will need widow library to put the openGL "context" inside, I choose GLFW because it is tailored for openGL, but openGL is dynamically linked at runtime - and I need to find all the function, so I took GLAD to make it simpler to work with.
- openGL
- GLFW
- GLAD
- stbImage
- GLM (OpenGL Mathematics)
GLFW is windowing library, it means that it open new window that can hold openGL context
lglfw3 -lGL -lX11 -lpthread -lXrandr -lXi -ldl
GLAD is like a compatibility layer: it takes all the openGL dynamic linked functions and generate h file for them.
- go to this website, make sure c++, openGL 3.3+, core and generate loader are checked.
- download the zip file.
- add the content (src, include) to the project.
library for loading images - implemented in single h file.
mathematics library of openGL.
graph TD
texture --> object
shader --> object
mesh --> object
object --> scene
camera --> scene
%% light --> scene