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

Functions

bool process_heatshrink (processorInput_t *arg)
 

Variables

const assetProcessor_t heatshrinkProcessor
 The heatshrink processor compresses its input file with heatshrink. Any files processed can be loaded from the Swadge with readHeatshrinkFile()
 

Function Documentation

◆ process_heatshrink()

bool process_heatshrink ( processorInput_t * arg)

Variable Documentation

◆ heatshrinkProcessor

const assetProcessor_t heatshrinkProcessor
Initial value:
= {
.name = "heatshrink",
.type = FUNCTION,
.function = process_heatshrink,
.inFmt = FMT_DATA,
.outFmt = FMT_FILE_BIN,
}
@ FMT_FILE_BIN
An opened file handle (in binary mode) is passed for the file.
Definition assets_preprocessor.h:621
@ FMT_DATA
A buffer containing a file's raw binary data is passed.
Definition assets_preprocessor.h:623
@ FUNCTION
Processor that calls a function pointer to process assets.
Definition assets_preprocessor.h:607
bool process_heatshrink(processorInput_t *arg)
Definition raw_processor.c:21

The heatshrink processor compresses its input file with heatshrink. Any files processed can be loaded from the Swadge with readHeatshrinkFile()