comparison render.h @ 1642:c6b2c0f8cc61

Implemented support for toggling off a debug view
author Michael Pavone <pavone@retrodev.com>
date Mon, 19 Nov 2018 19:10:16 -0800
parents c4ba3177b72d
children b500e971da75
comparison
equal deleted inserted replaced
1641:bc9bb4e5856f 1642:c6b2c0f8cc61
88 typedef void (*drop_handler)(const char *filename); 88 typedef void (*drop_handler)(const char *filename);
89 89
90 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);
91 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); 92 uint8_t render_create_window(char *caption, uint32_t width, uint32_t height);
93 void render_destroy_window(uint8_t which);
93 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); 94 uint32_t *render_get_framebuffer(uint8_t which, int *pitch);
94 void render_framebuffer_updated(uint8_t which, int width); 95 void render_framebuffer_updated(uint8_t which, int width);
95 //returns the framebuffer index associated with the Window that has focus 96 //returns the framebuffer index associated with the Window that has focus
96 uint8_t render_get_active_framebuffer(void); 97 uint8_t render_get_active_framebuffer(void);
97 void render_init(int width, int height, char * title, uint8_t fullscreen); 98 void render_init(int width, int height, char * title, uint8_t fullscreen);