360 B
360 B
OpenGL, GLFW and GLSL
Structure of a graphics program
-
Make a window and a context
- This is OS specific, therefore we need GLFW to set this up for us
-
Load all OpenGL methods (GLAD)
-
Compile shaders
-
Specify vertices (C)
-
Set up objects to communicate with the shaders (OpenGL)
-
Render loop (OpenGL)
-
Deinitialisation (GLFW)