Mercurial > repos > blastem
comparison render.h @ 1649:b500e971da75
Allow closing VDP debug windows with the close button in the window title bar
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 18 Dec 2018 19:58:00 -0800 |
parents | c6b2c0f8cc61 |
children | 395f684c5379 |
comparison
equal
deleted
inserted
replaced
1647:5a662692c215 | 1649:b500e971da75 |
---|---|
84 #define RENDER_NOT_MAPPED -2 | 84 #define RENDER_NOT_MAPPED -2 |
85 #define RENDER_NOT_PLUGGED_IN -3 | 85 #define RENDER_NOT_PLUGGED_IN -3 |
86 | 86 |
87 typedef struct audio_source audio_source; | 87 typedef struct audio_source audio_source; |
88 typedef void (*drop_handler)(const char *filename); | 88 typedef void (*drop_handler)(const char *filename); |
89 typedef void (*window_close_handler)(uint8_t which); | |
89 | 90 |
90 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); | 91 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); |
91 void render_save_screenshot(char *path); | 92 void render_save_screenshot(char *path); |
92 uint8_t render_create_window(char *caption, uint32_t width, uint32_t height); | 93 uint8_t render_create_window(char *caption, uint32_t width, uint32_t height, window_close_handler close_handler); |
93 void render_destroy_window(uint8_t which); | 94 void render_destroy_window(uint8_t which); |
94 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); | 95 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); |
95 void render_framebuffer_updated(uint8_t which, int width); | 96 void render_framebuffer_updated(uint8_t which, int width); |
96 //returns the framebuffer index associated with the Window that has focus | 97 //returns the framebuffer index associated with the Window that has focus |
97 uint8_t render_get_active_framebuffer(void); | 98 uint8_t render_get_active_framebuffer(void); |