comparison render.h @ 1077:1a66d5165ea7

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.
author Michael Pavone <pavone@retrodev.com>
date Mon, 22 Aug 2016 09:46:18 -0700
parents 284d905ca582
children c15896605bf2
comparison
equal deleted inserted replaced
1076:fa6fe03f218a 1077:1a66d5165ea7
48 48
49 #define MAX_JOYSTICKS 8 49 #define MAX_JOYSTICKS 8
50 #define MAX_MICE 8 50 #define MAX_MICE 8
51 #define MAX_MOUSE_BUTTONS 8 51 #define MAX_MOUSE_BUTTONS 8
52 52
53 #define FRAMEBUFFER_ODD 0
54 #define FRAMEBUFFER_EVEN 1
55
53 #include "vdp.h" 56 #include "vdp.h"
54 #include "psg.h" 57 #include "psg.h"
55 #include "ym2612.h" 58 #include "ym2612.h"
56 59
57 typedef struct {
58 void *oddbuf;
59 void *evenbuf;
60 int stride;
61 } surface_info;
62
63 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); 60 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b);
64 void render_alloc_surfaces(vdp_context * context); 61 uint32_t *render_get_framebuffer(uint8_t which, int *pitch);
65 void render_free_surfaces(vdp_context *context); 62 void render_framebuffer_updated(uint8_t which, int width);
66 void render_init(int width, int height, char * title, uint32_t fps, uint8_t fullscreen); 63 void render_init(int width, int height, char * title, uint32_t fps, uint8_t fullscreen);
67 void render_update_caption(char *title); 64 void render_update_caption(char *title);
68 void render_context(vdp_context * context); 65 void render_context(vdp_context * context);
69 void render_wait_quit(vdp_context * context); 66 void render_wait_quit(vdp_context * context);
70 void render_wait_psg(psg_context * context); 67 void render_wait_psg(psg_context * context);