diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2019-09-05 23:09:28 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2019-09-05 23:09:28 +0200 |
commit | 5fc35fb36f6658dc486bf2c5e05510c575f3efec (patch) | |
tree | a6e974ada149c65db790e6f20a1d5a08f90436d3 /src/main.h | |
parent | 818ce700109c959bb670b48e2b6a7e2adaafeb1c (diff) | |
download | demoscene-eo-5fc35fb36f6658dc486bf2c5e05510c575f3efec.tar.gz demoscene-eo-5fc35fb36f6658dc486bf2c5e05510c575f3efec.tar.bz2 demoscene-eo-5fc35fb36f6658dc486bf2c5e05510c575f3efec.zip |
Unfinished integration of multi-process approach
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -9,17 +9,30 @@ #include <GL/glu.h> typedef struct { + // libcaca caca_display_t *dp; caca_canvas_t *cv; caca_dither_t *d; int w, h; // caca terminal size in characters + // SDL worker SDL_Window* sdl_win; SDL_Renderer *sdl_rndr; SDL_Texture *sdl_target; - void *raw_target; + // OpenGL worker + SDL_Window* gl_win; SDL_GLContext gl_ctx; + // framebuffer to inject OpenGL or SDL result in caca canvas + uint32_t *raw_target; + // 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 |