maug
Quick and dirty C mini-augmentation library.
|
Global singleton containing state for the current platform. More...
#include <retroflt.h>
Data Fields | |
void * | loop_data |
MERROR_RETVAL | retval |
uint8_t | retroflat_flags |
Global Flags indicating current system status. | |
char | config_path [RETROFLAT_PATH_MAX+1] |
char | assets_path [RETROFLAT_ASSETS_PATH_MAX+1] |
RETROFLAT_COLOR_DEF | palette [RETROFLAT_COLORS_SZ] |
Index of available colors, initialized on platform init. | |
struct RETROFLAT_BITMAP | buffer |
Off-screen buffer bitmap. | |
struct RETROFLAT_BITMAP * | vdp_buffer |
A buffer assembled and passed to the RetroFlat VDP API for it to modify, or NULL if no VDP is loaded. | |
void * | vdp_exe |
A handle for the loaded RetroFlat VDP API module. | |
void * | vdp_data |
Pointer to data defined by the RetroFlat VDP API for its use. | |
char | vdp_args [RETROFLAT_VDP_ARGS_SZ_MAX] |
CLI args passed with -vdp to the RetroFlat VDP API. | |
uint8_t | vdp_flags |
Flags set by the RetroFlat VDP API. | |
struct RETROFLAT_VIEWPORT | viewport |
size_t | screen_v_w |
The screen width as seen by our program, before scaling. | |
size_t | screen_v_h |
The screen height as seen by our program, before scaling. | |
size_t | screen_w |
The screen width as seen by the system, after scaling. | |
size_t | screen_h |
The screen height as seen by the system, after scaling. | |
retroflat_loop_iter | loop_iter |
retroflat_loop_iter | frame_iter |
retroflat_proc_resize_t | on_resize |
void * | on_resize_data |
struct RETROFLAT_PLATFORM | platform |
struct RETROFLAT_SOUND | sound |
Global singleton containing state for the current platform.
size_t RETROFLAT_STATE::screen_v_h |
The screen height as seen by our program, before scaling.
This is the scale of the buffer, which the platform-specific code should then scale to match screen_v_w on blit.
size_t RETROFLAT_STATE::screen_v_w |
The screen width as seen by our program, before scaling.
This is the scale of the buffer, which the platform-specific code should then scale to match screen_v_h on blit.