From 85dbe449fe94f8cb4d4b88eaa4acbbba2d52b153 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 4 Nov 2018 22:51:50 -0800 Subject: WIP new VDP plane debug view and support for detached VDP debug views generally --- render.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'render.h') diff --git a/render.h b/render.h index e59e0ab..8625ad5 100644 --- a/render.h +++ b/render.h @@ -68,6 +68,7 @@ #define FRAMEBUFFER_ODD 0 #define FRAMEBUFFER_EVEN 1 +#define FRAMEBUFFER_USER_START 2 #include "vdp.h" @@ -88,8 +89,11 @@ typedef void (*drop_handler)(const char *filename); uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); void render_save_screenshot(char *path); +uint8_t render_create_window(char *caption, uint32_t width, uint32_t height); uint32_t *render_get_framebuffer(uint8_t which, int *pitch); void render_framebuffer_updated(uint8_t which, int width); +//returns the framebuffer index associated with the Window that has focus +uint8_t render_get_active_framebuffer(void); void render_init(int width, int height, char * title, uint8_t fullscreen); void render_set_video_standard(vid_std std); void render_toggle_fullscreen(); -- cgit v1.2.3