diff options
author | Bad Diode <bd@badd10de.dev> | 2021-01-26 09:25:04 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-01-26 10:34:46 +0100 |
commit | 21924d5e08814cc9028dc3866d8b97d8422807f4 (patch) | |
tree | 2e185715bdb0521be5c67633defa51fd64c03713 /src/app.h | |
parent | 71ab55ad22abd7ba8d6c41fa4c9ff5aa69db8284 (diff) | |
download | mic-opengl-example-21924d5e08814cc9028dc3866d8b97d8422807f4.tar.gz mic-opengl-example-21924d5e08814cc9028dc3866d8b97d8422807f4.zip |
Add triangle rendering w/ shader recompilation
Diffstat (limited to 'src/app.h')
-rw-r--r-- | src/app.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,10 @@ | |||
10 | typedef struct AppState { | 10 | typedef struct AppState { |
11 | // OpenGL | 11 | // OpenGL |
12 | GLFWwindow *window; | 12 | GLFWwindow *window; |
13 | f32 vertices[12]; | ||
14 | u32 VBO; | ||
15 | u32 VAO; | ||
16 | u32 shader_program; | ||
13 | } AppState; | 17 | } AppState; |
14 | 18 | ||
15 | // Function pointers for the AppAPI. | 19 | // Function pointers for the AppAPI. |