Mercurial > repos > blastem
comparison render.h @ 2685:da2e06c42d16
Add a compile-time flag to use RGB565 instead of ABGR/ARGB
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 30 Mar 2025 00:06:53 -0700 |
parents | c30e5548154f |
children | 05915f01046d |
comparison
equal
deleted
inserted
replaced
2684:c649bcc18487 | 2685:da2e06c42d16 |
---|---|
97 typedef void (*drop_handler)(char *filename); | 97 typedef void (*drop_handler)(char *filename); |
98 typedef void (*window_close_handler)(uint8_t which); | 98 typedef void (*window_close_handler)(uint8_t which); |
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 #include "pixel.h" |
103 | |
104 pixel_t render_map_color(uint8_t r, uint8_t g, uint8_t b); | |
103 void render_save_screenshot(char *path); | 105 void render_save_screenshot(char *path); |
104 uint8_t render_saving_video(void); | 106 uint8_t render_saving_video(void); |
105 void render_end_video(void); | 107 void render_end_video(void); |
106 void render_save_video(char *path); | 108 void render_save_video(char *path); |
107 uint8_t render_create_window(char *caption, uint32_t width, uint32_t height, window_close_handler close_handler); | 109 uint8_t render_create_window(char *caption, uint32_t width, uint32_t height, window_close_handler close_handler); |
108 void render_destroy_window(uint8_t which); | 110 void render_destroy_window(uint8_t which); |
109 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); | 111 pixel_t *render_get_framebuffer(uint8_t which, int *pitch); |
110 void render_framebuffer_updated(uint8_t which, int width); | 112 void render_framebuffer_updated(uint8_t which, int width); |
111 //returns the framebuffer index associated with the Window that has focus | 113 //returns the framebuffer index associated with the Window that has focus |
112 uint8_t render_get_active_framebuffer(void); | 114 uint8_t render_get_active_framebuffer(void); |
113 void render_init(int width, int height, char * title, uint8_t fullscreen); | 115 void render_init(int width, int height, char * title, uint8_t fullscreen); |
114 void render_set_video_standard(vid_std std); | 116 void render_set_video_standard(vid_std std); |