Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
Macros | |
#define | JSON_COMPRESSION |
Functions | |
char * | loadJson (const char *name, bool spiRam) |
Load a JSON from ROM to RAM. JSONs placed in the assets_image folder before compilation will be automatically flashed to ROM. | |
void | freeJson (char *jsonStr) |
Free an allocated JSON string. | |
#define JSON_COMPRESSION |
char * loadJson | ( | const char * | name, |
bool | spiRam ) |
Load a JSON from ROM to RAM. JSONs placed in the assets_image folder before compilation will be automatically flashed to ROM.
name | The filename of the JSON to load |
spiRam | true to load to SPI RAM, false to load to normal RAM. SPI RAM is more plentiful but slower to access than normal RAM |
void freeJson | ( | char * | jsonStr | ) |
Free an allocated JSON string.
jsonStr | the JSON string to free |