|
Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
|
Macros | |
| #define | JSON_COMPRESSION |
Functions | |
| char * | loadJson (cnfsFileIdx_t fIdx, 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 | ( | cnfsFileIdx_t | fIdx, |
| bool | spiRam ) |
Load a JSON from ROM to RAM. JSONs placed in the assets_image folder before compilation will be automatically flashed to ROM.
| fIdx | The cnfsFileIdx_t 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 |