maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
RETROFLAT_STATE Struct Reference

Global singleton containing state for the current platform. More...

#include <retroflt.h>

Collaboration diagram for RETROFLAT_STATE:

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_BITMAPvdp_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.
 
int screen_v_w
 The screen width as seen by our program, before scaling.
 
int screen_v_h
 The screen height as seen by our program, before scaling.
 
int screen_w
 The screen width as seen by the system, after scaling.
 
int screen_h
 The screen height as seen by the system, after scaling.
 
retroflat_proc_resize_t on_resize
 
void * on_resize_data
 

Detailed Description

Global singleton containing state for the current platform.

Field Documentation

◆ screen_v_h

int 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.

◆ screen_v_w

int 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.


The documentation for this struct was generated from the following file: