Mercurial > repos > blastem
comparison render.h @ 2295:eb45ad9d8a3f
WIP "video" recording in APNG format
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 10 Feb 2023 23:17:43 -0800 |
parents | 6a07b13894f7 |
children | b7768c58f0da |
comparison
equal
deleted
inserted
replaced
2294:7e995fb948c3 | 2295:eb45ad9d8a3f |
---|---|
99 typedef void (*ui_render_fun)(void); | 99 typedef void (*ui_render_fun)(void); |
100 typedef int (*render_thread_fun)(void*); | 100 typedef int (*render_thread_fun)(void*); |
101 | 101 |
102 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); | 102 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); |
103 void render_save_screenshot(char *path); | 103 void render_save_screenshot(char *path); |
104 uint8_t render_saving_video(void); | |
105 void render_end_video(void); | |
106 void render_save_video(char *path); | |
104 uint8_t render_create_window(char *caption, uint32_t width, uint32_t height, window_close_handler close_handler); | 107 uint8_t render_create_window(char *caption, uint32_t width, uint32_t height, window_close_handler close_handler); |
105 void render_destroy_window(uint8_t which); | 108 void render_destroy_window(uint8_t which); |
106 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); | 109 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); |
107 void render_framebuffer_updated(uint8_t which, int width); | 110 void render_framebuffer_updated(uint8_t which, int width); |
108 //returns the framebuffer index associated with the Window that has focus | 111 //returns the framebuffer index associated with the Window that has focus |