357 B
357 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)
-
Setup objects to communicate to the shaders (OpenGL)
-
Render loop (OpenGL)
-
Deinitialisation (GLFW)