diff options
author | Bad Diode <bd@badd10de.dev> | 2021-01-26 08:45:23 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-01-26 10:33:56 +0100 |
commit | 71ab55ad22abd7ba8d6c41fa4c9ff5aa69db8284 (patch) | |
tree | 7da231ec95dfccbbb4ca1f895a308550339e9e1a /src/app.h | |
parent | e24186fc1917c5e8b91924af0c3c7c55816ff5d6 (diff) | |
download | mic-opengl-example-71ab55ad22abd7ba8d6c41fa4c9ff5aa69db8284.tar.gz mic-opengl-example-71ab55ad22abd7ba8d6c41fa4c9ff5aa69db8284.zip |
Initialize OpenGL window
Diffstat (limited to 'src/app.h')
-rw-r--r-- | src/app.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,16 +1,15 @@ | |||
1 | #ifndef MIC_APP_H | 1 | #ifndef MIC_APP_H |
2 | #define MIC_APP_H | 2 | #define MIC_APP_H |
3 | 3 | ||
4 | #include <GL/glew.h> | ||
5 | #include <GLFW/glfw3.h> | ||
6 | |||
4 | #include "shorthand.h" | 7 | #include "shorthand.h" |
5 | #include "platform.h" | 8 | #include "platform.h" |
6 | 9 | ||
7 | #define LT_MEMORY_SIZE GB(2) | ||
8 | #define ST_MEMORY_SIZE MB(100) | ||
9 | |||
10 | typedef struct AppState { | 10 | typedef struct AppState { |
11 | // Long and short term memory. | 11 | // OpenGL |
12 | char *lt_memory; | 12 | GLFWwindow *window; |
13 | char *st_memory; | ||
14 | } AppState; | 13 | } AppState; |
15 | 14 | ||
16 | // Function pointers for the AppAPI. | 15 | // Function pointers for the AppAPI. |