Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
font_processor.c File Reference

Functions

bool process_font (processorInput_t *arg)
 
uint32_t getPx (unsigned char *data, int w, int x, int y)
 
void appendCharToFile (FILE *fp, unsigned char *data, int w, int h, int charStartX, int charEndX)
 TODO.
 

Variables

const assetProcessor_t fontProcessor
 The font processor reads specially formatted font PNG images and processes them into a compact bitmapped font format.
 

Function Documentation

◆ process_font()

bool process_font ( processorInput_t * arg)

◆ getPx()

uint32_t getPx ( unsigned char * data,
int w,
int x,
int y )

TODO

Parameters
data
w
x
y
Returns
uint32_t

◆ appendCharToFile()

void appendCharToFile ( FILE * fp,
unsigned char * data,
int w,
int h,
int charStartX,
int charEndX )

TODO.

Parameters
fp
data
w
h
charStartX
charEndX

Variable Documentation

◆ fontProcessor

const assetProcessor_t fontProcessor
Initial value:
= {
.name = "font",
.type = FUNCTION,
.function = process_font,
.inFmt = FMT_FILE_BIN,
.outFmt = FMT_FILE_BIN,
}
@ FMT_FILE_BIN
An opened file handle (in binary mode) is passed for the file.
Definition assets_preprocessor.h:621
@ FUNCTION
Processor that calls a function pointer to process assets.
Definition assets_preprocessor.h:607
bool process_font(processorInput_t *arg)
Definition font_processor.c:85

The font processor reads specially formatted font PNG images and processes them into a compact bitmapped font format.