|
|
size_t | sz |
| |
|
size_t | offset_pal |
| |
|
size_t | offset_tex_pal |
| |
|
void * | loop_data |
| |
|
MERROR_RETVAL | retval |
| |
|
uint8_t | retroflat_flags |
| | maug_retroflt_flags indicating current system status.
|
| |
|
maug_path | config_path |
| |
|
maug_path | assets_path |
| |
|
maug_path | saves_path |
| |
|
int | screen_scale |
| | 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. More...
|
| |
| size_t | screen_v_h |
| | The screen height as seen by our program, before scaling. More...
|
| |
|
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.
|
| |
|
size_t | screen_colors |
| | The number of colors the screen is capable of displaying.
|
| |
|
retroflat_ms_t | heartbeat_next |
| |
|
uint16_t | heartbeat_len |
| | Number of ms to stay on current value of RETROFLAT_STATE::heartbeat_frame before incrementing. Modify with retroflat_heartbeat_set().
|
| |
|
uint8_t | heartbeat_frame |
| | Simple iteration loop that can be used to time e.g. perpetual sprite animations. Modify parameters with retroflat_heartbeat_set().
|
| |
|
uint8_t | heartbeat_max |
| | When RETROFLAT_STATE::heartbeat_frame reaches this value, it will reset to 0.
|
| |
|
retroflat_proc_resize_t | on_resize |
| |
|
void * | on_resize_data |
| |
|
RETROFLAT_COLOR_DEF | palette [RETROFLAT_COLORS_SZ] |
| | Index of available colors, initialized on platform init.
|
| |
|
retroflat_loop_iter | loop_iter |
| |
|
retroflat_loop_iter | frame_iter |
| |
|
struct RETROFLAT_PLATFORM | platform |
| |
|
struct RETROFLAT_INPUT_STATE | input |
| |
|
retroflat_timer_cb_t | timers_cb [RETROFLAT_TIMER_CT_MAX] |
| | List of installable timers that should be tended every frame with retroflat_handle_timers().
|
| |
|
retroflat_ms_t | timers_at [RETROFLAT_TIMER_CT_MAX] |
| |
|
void * | timers_data [RETROFLAT_TIMER_CT_MAX] |
| |
|
size_t | timers_ct |
| |
|
struct RETROFLAT_SOUND_STATE | sound |
| |
Global singleton containing state for the current platform.
The first few members are size and offset info that the VDP can use to work with STATE structs from different kinds of binaries without crashing.