|
Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
|
Go to the documentation of this file.
27 #ifdef XEMU_OSD_EXPORT_FONT
42 extern void osd_hijack (
void(*updater)(
void),
int *xsize_ptr,
int *ysize_ptr,
Uint32 **pixel_ptr );
44 #define OSD_STATIC 0x1000
45 #define OSD_FADE_START 300
46 #define OSD_FADE_DEC_VAL 5
47 #define OSD_FADE_END_VAL 0x20
49 #define OSD_TEXTURE_X_SIZE 640
50 #define OSD_TEXTURE_Y_SIZE 200
53 #define OSD(x, y, ...) do { \
54 if (osd_notifications_enabled) { \
55 char _buf_for_msg_[4096]; \
56 CHECK_SNPRINTF(snprintf(_buf_for_msg_, sizeof _buf_for_msg_, __VA_ARGS__), sizeof _buf_for_msg_); \
57 fprintf(stderr, "OSD: %s" NL, _buf_for_msg_); \
59 osd_write_string(x, y, _buf_for_msg_); \
60 osd_texture_update(NULL); \
61 osd_on(OSD_FADE_START); \
void osd_global_enable(int status)
void osd_texture_update(const SDL_Rect *rect)
void(* osd_update_callback)(void)
int osd_init(int xsize, int ysize, const Uint8 *palette, int palette_entries, int fade_dec, int fade_end)
const Uint16 font_16x16[]
void osd_set_colours(int fg_index, int bg_index)
void osd_write_char(int x, int y, char ch)
void osd_clear_with_colour(const int index)
int osd_notifications_enabled
void osd_hijack(void(*updater)(void), int *xsize_ptr, int *ysize_ptr, Uint32 **pixel_ptr)
void osd_write_string(int x, int y, const char *s)
int osd_init_with_defaults(void)