Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
Loading...
Searching...
No Matches
fs_wsg.h
Go to the documentation of this file.
1
33#ifndef _FS_WSG_H_
34#define _FS_WSG_H_
35
36#include <stdint.h>
37#include <stdbool.h>
38
39#include "palette.h"
40
41#include "wsg.h"
42#include "heatshrink_helper.h"
43#include "heatshrink_encoder.h"
44
45bool loadWsg(const char* name, wsg_t* wsg, bool spiRam);
46bool loadWsgInplace(const char* name, wsg_t* wsg, bool spiRam, uint8_t* decompressedBuf, heatshrink_decoder* hsd);
47bool loadWsgNvs(const char* namespace, const char* key, wsg_t* wsg, bool spiRam);
48bool saveWsgNvs(const char* namespace, const char* key, const wsg_t* wsg);
49void freeWsg(wsg_t* wsg);
50
51#endif
bool loadWsg(const char *name, wsg_t *wsg, bool spiRam)
Load a WSG from ROM to RAM. WSGs placed in the assets_image folder before compilation will be automat...
Definition fs_wsg.c:32
bool saveWsgNvs(const char *namespace, const char *key, const wsg_t *wsg)
Definition fs_wsg.c:143
bool loadWsgNvs(const char *namespace, const char *key, wsg_t *wsg, bool spiRam)
Definition fs_wsg.c:105
bool loadWsgInplace(const char *name, wsg_t *wsg, bool spiRam, uint8_t *decompressedBuf, heatshrink_decoder *hsd)
Load a WSG from ROM to RAM. WSGs placed in the assets_image folder before compilation will be automat...
Definition fs_wsg.c:77
void freeWsg(wsg_t *wsg)
Free the memory for a loaded WSG.
Definition fs_wsg.c:196
A sprite using paletteColor_t colors that can be drawn to the display.
Definition wsg.h:57