comparison render.h @ 1631:c4ba3177b72d

WIP new VDP plane debug view and support for detached VDP debug views generally
author Michael Pavone <pavone@retrodev.com>
date Sun, 04 Nov 2018 22:51:50 -0800
parents 419a0a133b5c
children c6b2c0f8cc61
comparison
equal deleted inserted replaced
1630:5aa0c3c43b97 1631:c4ba3177b72d
66 #define MAX_MICE 8 66 #define MAX_MICE 8
67 #define MAX_MOUSE_BUTTONS 8 67 #define MAX_MOUSE_BUTTONS 8
68 68
69 #define FRAMEBUFFER_ODD 0 69 #define FRAMEBUFFER_ODD 0
70 #define FRAMEBUFFER_EVEN 1 70 #define FRAMEBUFFER_EVEN 1
71 #define FRAMEBUFFER_USER_START 2
71 72
72 #include "vdp.h" 73 #include "vdp.h"
73 74
74 typedef enum { 75 typedef enum {
75 VID_NTSC, 76 VID_NTSC,
86 typedef struct audio_source audio_source; 87 typedef struct audio_source audio_source;
87 typedef void (*drop_handler)(const char *filename); 88 typedef void (*drop_handler)(const char *filename);
88 89
89 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); 90 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b);
90 void render_save_screenshot(char *path); 91 void render_save_screenshot(char *path);
92 uint8_t render_create_window(char *caption, uint32_t width, uint32_t height);
91 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); 93 uint32_t *render_get_framebuffer(uint8_t which, int *pitch);
92 void render_framebuffer_updated(uint8_t which, int width); 94 void render_framebuffer_updated(uint8_t which, int width);
95 //returns the framebuffer index associated with the Window that has focus
96 uint8_t render_get_active_framebuffer(void);
93 void render_init(int width, int height, char * title, uint8_t fullscreen); 97 void render_init(int width, int height, char * title, uint8_t fullscreen);
94 void render_set_video_standard(vid_std std); 98 void render_set_video_standard(vid_std std);
95 void render_toggle_fullscreen(); 99 void render_toggle_fullscreen();
96 void render_update_caption(char *title); 100 void render_update_caption(char *title);
97 void render_wait_quit(vdp_context * context); 101 void render_wait_quit(vdp_context * context);