Mercurial > repos > blastem
diff render.h @ 2438:bed4d3db8a3f
More flexible loading of Pico storyware assets
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 11 Feb 2024 11:04:39 -0800 |
parents | da3dc881d3f0 |
children | f4a471730ba4 |
line wrap: on
line diff
--- a/render.h Sat Feb 10 17:46:30 2024 -0800 +++ b/render.h Sun Feb 11 11:04:39 2024 -0800 @@ -151,7 +151,7 @@ int render_ui_to_pixels_y(int ui); #ifndef IS_LIB uint8_t render_create_thread(render_thread *thread, const char *name, render_thread_fun fun, void *data); -uint8_t render_static_image(uint8_t window, char *path); +uint8_t render_static_image(uint8_t window, uint8_t *buffer, uint32_t size); void render_draw_image(uint8_t window, uint8_t image, int x, int y, int width, int height); void render_clear_window(uint8_t window, uint8_t r, uint8_t g, uint8_t b); void render_fill_rect(uint8_t window, uint8_t r, uint8_t g, uint8_t b, int x, int y, int width, int height);