summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2019-09-07 00:32:19 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2019-09-07 00:32:19 +0200
commitdf3ce9eb9e0d8633cdb32a0106a5aa1ca9300e2b (patch)
tree38ded5717f8f9d48060e3bbdd8daa929ecbbd090 /src/main.h
parent5fc35fb36f6658dc486bf2c5e05510c575f3efec (diff)
downloaddemoscene-eo-df3ce9eb9e0d8633cdb32a0106a5aa1ca9300e2b.tar.gz
demoscene-eo-df3ce9eb9e0d8633cdb32a0106a5aa1ca9300e2b.tar.bz2
demoscene-eo-df3ce9eb9e0d8633cdb32a0106a5aa1ca9300e2b.zip
Multi-process is quite there. Need to call init_sdl() and init_gl()..
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