|
Stardew Engine
|


Go to the source code of this file.
Data Structures | |
| struct | _AtlasSprite |
| struct | AtlasAnimation |
| struct | FontSize |
| struct | FontAtlasAdditionSpec |
| struct | EndAtlasOptions |
Macros | |
| #define | VECTOR(a) a* |
| #define | MAX_FONT_NAME_SIZE 128 |
| #define | MAX_FONT_PATH_SIZE 256 |
| #define | MAX_NUM_FONT_SIZES 32 |
Typedefs | |
| typedef struct DrawContext | DrawContext |
| typedef struct _xmlNode | xmlNode |
| typedef struct _AtlasSprite | AtlasSprite |
Functions | |
| void | At_Init () |
| void | At_BeginAtlas () |
| hSprite | At_AddSprite (const char *imgPath, int topLeftXPx, int topRightYPx, int widthPx, int heightPx, const char *name) |
| HFont | At_AddFont (const struct FontAtlasAdditionSpec *pFontSpec) |
| hAtlas | At_EndAtlas (struct DrawContext *pDC) |
| hAtlas | At_EndAtlasEx (struct DrawContext *pDC, struct EndAtlasOptions *pOptions) |
| void | At_DestroyAtlas (hAtlas atlas, struct DrawContext *pDC) |
| hSprite | At_FindSprite (const char *name, hAtlas atlas) |
| AtlasSprite * | At_GetSprite (hSprite sprite, hAtlas atlas) |
| hTexture | At_GetAtlasTexture (hAtlas atlas) |
| float | At_PixelsToPts (float val) |
| hAtlas | At_LoadAtlas (xmlNode *child0, struct DrawContext *pDC) |
| hAtlas | At_LoadAtlasEx (xmlNode *child0, struct DrawContext *pDC, struct EndAtlasOptions *pOptions) |
| hSprite | At_TilemapIndexToSprite (hAtlas atlas, TileIndex tileIndex) |
| void | At_SerializeAtlas (struct BinarySerializer *pSerializer, hAtlas *atlas, struct DrawContext *pDC) |
| void | At_BeginTileset (int beginI) |
| void | At_EndTileset (int endI) |
| void | At_SetCurrent (hAtlas atlas, DrawContext *pDC) |
| struct AtlasAnimation * | At_FindAnim (hAtlas atlas, const char *name) |
| HFont | Fo_FindFont (hAtlas hAtlas, const char *fontName, float sizePts) |
| float | Fo_CharWidth (hAtlas hAtlas, HFont hFont, char c) |
| float | Fo_CharHeight (hAtlas hAtlas, HFont hFont, char c) |
| float | Fo_StringWidth (hAtlas hAtlas, HFont hFont, const char *stringVal) |
| float | Fo_StringHeight (hAtlas hAtlas, HFont hFont, const char *stringVal) |
| AtlasSprite * | Fo_GetCharSprite (hAtlas hAtlas, HFont hFont, char c) |
| float | Fo_GetMaxYBearing (hAtlas hAtlas, HFont hFont, const char *str) |
| bool | Fo_TryGetCharBearing (hAtlas hAtlas, HFont hFont, char c, vec2 outBearing) |
| bool | Fo_TryGetCharAdvance (hAtlas hAtlas, HFont hFont, char c, float *outAdvance) |
| #define MAX_FONT_NAME_SIZE 128 |
| #define MAX_FONT_PATH_SIZE 256 |
| #define MAX_NUM_FONT_SIZES 32 |
| #define VECTOR | ( | a | ) | a* |
| typedef struct _AtlasSprite AtlasSprite |
| typedef struct DrawContext DrawContext |
| typedef struct _xmlNode xmlNode |
| HFont At_AddFont | ( | const struct FontAtlasAdditionSpec * | pFontSpec | ) |
| hSprite At_AddSprite | ( | const char * | imgPath, |
| int | topLeftXPx, | ||
| int | topRightYPx, | ||
| int | widthPx, | ||
| int | heightPx, | ||
| const char * | name | ||
| ) |
| void At_BeginAtlas | ( | ) |
| void At_BeginTileset | ( | int | beginI | ) |
| void At_DestroyAtlas | ( | hAtlas | atlas, |
| struct DrawContext * | pDC | ||
| ) |
| hAtlas At_EndAtlas | ( | struct DrawContext * | pDC | ) |
| hAtlas At_EndAtlasEx | ( | struct DrawContext * | pDC, |
| struct EndAtlasOptions * | pOptions | ||
| ) |
| void At_EndTileset | ( | int | endI | ) |
| struct AtlasAnimation * At_FindAnim | ( | hAtlas | atlas, |
| const char * | name | ||
| ) |
| AtlasSprite * At_GetSprite | ( | hSprite | sprite, |
| hAtlas | atlas | ||
| ) |
| void At_Init | ( | ) |
| hAtlas At_LoadAtlas | ( | xmlNode * | child0, |
| struct DrawContext * | pDC | ||
| ) |
| hAtlas At_LoadAtlasEx | ( | xmlNode * | child0, |
| struct DrawContext * | pDC, | ||
| struct EndAtlasOptions * | pOptions | ||
| ) |
| float At_PixelsToPts | ( | float | val | ) |
| void At_SerializeAtlas | ( | struct BinarySerializer * | pSerializer, |
| hAtlas * | atlas, | ||
| struct DrawContext * | pDC | ||
| ) |
| pSerializer | binary serialzier to load or save |
| atlas | If loading, point to an unititialized handle to output the new handle If saving point to the handle of the atlas you want to save |
| pDC |
| void At_SetCurrent | ( | hAtlas | atlas, |
| DrawContext * | pDC | ||
| ) |
| AtlasSprite * Fo_GetCharSprite | ( | hAtlas | hAtlas, |
| HFont | hFont, | ||
| char | c | ||
| ) |