aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-01-26 08:45:23 +0100
committerBad Diode <bd@badd10de.dev>2021-01-26 10:33:56 +0100
commit71ab55ad22abd7ba8d6c41fa4c9ff5aa69db8284 (patch)
tree7da231ec95dfccbbb4ca1f895a308550339e9e1a /src/app.h
parente24186fc1917c5e8b91924af0c3c7c55816ff5d6 (diff)
downloadmic-opengl-example-71ab55ad22abd7ba8d6c41fa4c9ff5aa69db8284.tar.gz
mic-opengl-example-71ab55ad22abd7ba8d6c41fa4c9ff5aa69db8284.zip
Initialize OpenGL window
Diffstat (limited to 'src/app.h')
-rw-r--r--src/app.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/app.h b/src/app.h
index 8edbe58..613360f 100644
--- a/src/app.h
+++ b/src/app.h
@@ -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
10typedef struct AppState { 10typedef 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.