From df3ce9eb9e0d8633cdb32a0106a5aa1ca9300e2b Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 7 Sep 2019 00:32:19 +0200 Subject: Multi-process is quite there. Need to call init_sdl() and init_gl().. --- src/main.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/main.h') 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 #include +#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 -- cgit v1.2.3