21 lines
357 B
Markdown
21 lines
357 B
Markdown
# OpenGL, GLFW and GLSL
|
|
|
|
#### Structure of a graphics program
|
|
|
|
1. Make a window and a context
|
|
|
|
- This is OS specific, therefore we need GLFW to set this up for us
|
|
|
|
2. Load all OpenGL methods (GLAD)
|
|
|
|
3. Compile shaders
|
|
|
|
4. Specify vertices (C)
|
|
|
|
5. Setup objects to communicate to the shaders (OpenGL)
|
|
|
|
6. Render loop (OpenGL)
|
|
|
|
7. Deinitialisation (GLFW)
|
|
|