The data structures and Helper functions for utilizing Swadgesonas.
- Author
- Jeremy Stintzcum (jerem.nosp@m.y.st.nosp@m.intzc.nosp@m.um@g.nosp@m.mail..nosp@m.com)
- Date
- 2025-10-5
- Copyright
- Copyright (c) 2025
◆ SWSN_HEIGHT
◆ SWSN_WIDTH
◆ paletteSwap_t
Enumerator |
---|
COLOR_HAIR | |
COLOR_SKIN | |
COLOR_EYES | |
COLOR_CLOTHES | |
COLOR_HAT | |
COLOR_GLASSES | |
◆ saveSwadgesona()
Saves the Swadgesona to the NVS in the given slot.
- Parameters
-
sw | Swadgesona data to save. provide the entire wrapper |
idx | Index of slot to put swadgesona into |
◆ loadSwadgesona()
Loads a swadgesona from the NVS.
- Parameters
-
sw | Swadgesona data to load. Will be randomized if the data doesn't exist. |
idx | Index of slot to put swadgesona into |
◆ generateRandomSwadgesona()
Generates a random Swadgesona automatically.
- Parameters
-
sw | Swadgesona to load data into. |
◆ generateSwadgesonaImage()
void generateSwadgesonaImage |
( |
swadgesona_t * | sw, |
|
|
bool | drawBody ) |
Generates the image based on the included data.
- Parameters
-
sw | Swadgesona wrapper used ot generate the image |
drawBody | Whether or not to draw the shirt/neck |
◆ getHairWSG()
Get the hair CNFS index from the swadgesona for drawing behind custom bodies.
- Parameters
-
sw | Swadgesona to extract wsg from |
- Returns
- cnfsFileIdx_t index into the CNFS system where the hairstyle is at.