summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main.h b/src/main.h
index 907bc53..4510b19 100644
--- a/src/main.h
+++ b/src/main.h
@@ -8,6 +8,9 @@
#include <SDL2/SDL_opengl.h>
#include <GL/glu.h>
+#define FBUF_W 256
+#define FBUF_H 256
+
typedef struct {
// libcaca
caca_display_t *dp;
@@ -22,17 +25,11 @@ typedef struct {
SDL_Window* gl_win;
SDL_GLContext gl_ctx;
// framebuffer to inject OpenGL or SDL result in caca canvas
- uint32_t *raw_target;
+ uint32_t raw_target[FBUF_W*FBUF_H];
// Timing
Uint32 sdl_ticks;
Uint32 framecount;
Uint32 sc_framecount;
} graphical_env_t;
-#define FBUF_W 256
-#define FBUF_H 256
-
-#include "scene00.h"
-#include "scene01.h"
-#include "scene02.h"
#endif