maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
RetroFlat API

Abstraction layer header for retro systems. More...

Collaboration diagram for RetroFlat API:

Topics

 RetroFlat Example
 An extremely simple single-file annotated example program written with the RetroFlat API.
 
 RetroFlat Compilation
 Makefile examples and compiler considerations for using RetroFlat.
 
 Maug_retroflt_color
 
 RetroFlat API Return Values
 Standardized return values from RetroFlat API functions.
 
 RetroFlat Drawing API
 Functions for drawing primitives on-screen.
 
 Global Flags
 Flags that may be present on RETROFLAT_STATE::retroflat_flags.
 
 RetroFlat Message API
 These flags can be passed to retroflat_message() to indicate the type of message being conveyed.
 
 RetroFlat VDP API
 Video Display Processor tools for modifying display output.
 
 RetroFlat Bitmap API
 Tools for loading bitmaps from disk and drawing them on-screen.
 
 RetroFlat Assets API
 Functions and macros for handling graphical asset files.
 
 RetroFlat Input API
 Functions and constants for polling and interpreting user input.
 
 RetroFlat Direction API
 Macros and constants for definition cardinal directions in screen and world space.
 

Files

file  retroflt.h
 Abstraction layer header for retro systems.
 

Macros

#define RETROFLAT_BITMAP_TRACE_LVL   0
 
#define RETROFLAT_KB_TRACE_LVL   0
 
#define RETROFLAT_DEFAULT_SCREEN_W   320
 
#define RETROFLAT_DEFAULT_SCREEN_H   200
 
#define retroflat_on_resize(w, h)
 
#define retroflat_wait_for_frame()
 
#define retroflat_is_waiting_for_frame()
 
#define retroflat_bitmap_has_flags(bmp, f)
 

Typedefs

typedef MERROR_RETVAL(* retroflat_proc_resize_t) (uint16_t new_w, uint16_t new_h, void *data)
 
typedef void(* retroflat_loop_iter) (void *data)
 Prototype for the main loop function passed to retroflat_loop().
 
#define RETROSND_ARGS_FLAG_LIST_DEVS   0x01
 

Detailed Description

Abstraction layer header for retro systems.

Macro Definition Documentation

◆ retroflat_bitmap_has_flags

#define retroflat_bitmap_has_flags ( bmp,
f )
Value:
(NULL != (bmp) && (f) == ((f) & (bmp)->tex.flags))

◆ retroflat_is_waiting_for_frame

#define retroflat_is_waiting_for_frame ( )
Value:
(g_retroflat_state->retroflat_flags & RETROFLAT_FLAGS_WAIT_FOR_FPS))
#define RETROFLAT_FLAGS_WAIT_FOR_FPS
Do not execute any more inter-frame loops until next frame.
Definition retroflt.h:438

◆ retroflat_on_resize

#define retroflat_on_resize ( w,
h )
Value:
g_retroflat_state->screen_w = w; \
g_retroflat_state->screen_h = h;

◆ retroflat_wait_for_frame

#define retroflat_wait_for_frame ( )
Value:
(g_retroflat_state->retroflat_flags |= RETROFLAT_FLAGS_WAIT_FOR_FPS)