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
43bool loadWsg(const char* name, wsg_t* wsg, bool spiRam);
44bool loadWsgNvs(const char* namespace, const char* key, wsg_t* wsg, bool spiRam);
45bool saveWsgNvs(const char* namespace, const char* key, const wsg_t* wsg);
46void freeWsg(wsg_t* wsg);
47
48#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:34
bool saveWsgNvs(const char *namespace, const char *key, const wsg_t *wsg)
Definition fs_wsg.c:114
bool loadWsgNvs(const char *namespace, const char *key, wsg_t *wsg, bool spiRam)
Definition fs_wsg.c:70
void freeWsg(wsg_t *wsg)
Free the memory for a loaded WSG.
Definition fs_wsg.c:167
A sprite using paletteColor_t colors that can be drawn to the display.
Definition wsg.h:57