diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-08-22 09:46:18 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-08-22 09:46:18 -0700 |
commit | 4a56a7e2dfe615e03e81e29952003291090470fe (patch) | |
tree | e2a7fc9bc4d4188f934d8dcd80afba0ec278c8a7 /render.h | |
parent | 00c00b816bac8f05e49f4733ecbedd363b0b8da2 (diff) |
Cleanup the separation of render backend and VDP code in preparation for having extra debug windows. Make determination of H40/H32 based on number of lines in each mode.
Diffstat (limited to 'render.h')
-rw-r--r-- | render.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -50,19 +50,16 @@ #define MAX_MICE 8 #define MAX_MOUSE_BUTTONS 8 +#define FRAMEBUFFER_ODD 0 +#define FRAMEBUFFER_EVEN 1 + #include "vdp.h" #include "psg.h" #include "ym2612.h" -typedef struct { - void *oddbuf; - void *evenbuf; - int stride; -} surface_info; - uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); -void render_alloc_surfaces(vdp_context * context); -void render_free_surfaces(vdp_context *context); +uint32_t *render_get_framebuffer(uint8_t which, int *pitch); +void render_framebuffer_updated(uint8_t which, int width); void render_init(int width, int height, char * title, uint32_t fps, uint8_t fullscreen); void render_update_caption(char *title); void render_context(vdp_context * context); |