minecraft-pi-reborn/media-layer/include/media-layer/core.h

29 lines
647 B
C
Raw Normal View History

2021-06-17 21:32:24 +00:00
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
// Default Window Size
#define DEFAULT_WIDTH 840
#define DEFAULT_HEIGHT 480
2023-05-28 04:45:58 +00:00
// SDL User Events
#define USER_EVENT_CHARACTER 0 // data1 = 8-Bit Character
#define USER_EVENT_REAL_KEY 1 // data1 = SDL_RELEASED/PRESSED, data2 = GLFW Key Code
2021-11-14 04:29:48 +00:00
void media_ensure_loaded();
2021-06-17 21:32:24 +00:00
void media_toggle_fullscreen();
void media_swap_buffers();
void media_cleanup();
void media_get_framebuffer_size(int *width, int *height);
2021-11-14 04:29:48 +00:00
void media_set_interactable(int is_interactable);
void media_disable_vsync();
2022-07-16 02:08:12 +00:00
void media_force_egl();
2022-03-07 01:07:49 +00:00
void media_set_raw_mouse_motion_enabled(int enabled);
2021-06-17 21:32:24 +00:00
#ifdef __cplusplus
}
#endif