Mercurial > repos > blastem
comparison render.h @ 1397:89eb967fed72
Initial support for drag and drop. Some work needed for proper menu integration.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 14 Jun 2017 09:48:46 -0700 |
parents | 5f65a16c23ff |
children | 08116cb5ffaa |
comparison
equal
deleted
inserted
replaced
1396:aca496957999 | 1397:89eb967fed72 |
---|---|
67 #define RENDER_AXIS_BIT 0x20000000 | 67 #define RENDER_AXIS_BIT 0x20000000 |
68 #define RENDER_INVALID_NAME -1 | 68 #define RENDER_INVALID_NAME -1 |
69 #define RENDER_NOT_MAPPED -2 | 69 #define RENDER_NOT_MAPPED -2 |
70 #define RENDER_NOT_PLUGGED_IN -3 | 70 #define RENDER_NOT_PLUGGED_IN -3 |
71 | 71 |
72 typedef void (*drop_handler)(const char *filename); | |
73 | |
72 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); | 74 uint32_t render_map_color(uint8_t r, uint8_t g, uint8_t b); |
73 void render_save_screenshot(char *path); | 75 void render_save_screenshot(char *path); |
74 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); | 76 uint32_t *render_get_framebuffer(uint8_t which, int *pitch); |
75 void render_framebuffer_updated(uint8_t which, int width); | 77 void render_framebuffer_updated(uint8_t which, int width); |
76 void render_init(int width, int height, char * title, uint8_t fullscreen); | 78 void render_init(int width, int height, char * title, uint8_t fullscreen); |
86 uint32_t render_sample_rate(); | 88 uint32_t render_sample_rate(); |
87 void process_events(); | 89 void process_events(); |
88 int render_width(); | 90 int render_width(); |
89 int render_height(); | 91 int render_height(); |
90 int render_fullscreen(); | 92 int render_fullscreen(); |
93 void render_set_drag_drop_handler(drop_handler handler); | |
91 void process_events(); | 94 void process_events(); |
92 int32_t render_translate_input_name(int32_t controller, char *name, uint8_t is_axis); | 95 int32_t render_translate_input_name(int32_t controller, char *name, uint8_t is_axis); |
93 int32_t render_dpad_part(int32_t input); | 96 int32_t render_dpad_part(int32_t input); |
94 int32_t render_axis_part(int32_t input); | 97 int32_t render_axis_part(int32_t input); |
95 uint8_t render_direction_part(int32_t input); | 98 uint8_t render_direction_part(int32_t input); |