citro2d
|
Functions | |
C2D_SpriteSheet | C2D_SpriteSheetLoad (const char *filename) |
Load a sprite sheet from file. More... | |
C2D_SpriteSheet | C2D_SpriteSheetLoadFromMem (const void *data, size_t size) |
Load a sprite sheet from memory. More... | |
C2D_SpriteSheet | C2D_SpriteSheetFromFD (int fd) |
Load sprite sheet from file descriptor. More... | |
C2D_SpriteSheet | C2D_SpriteSheetLoadFromHandle (FILE *f) |
Load sprite sheet from stdio file handle. More... | |
void | C2D_SpriteSheetFree (C2D_SpriteSheet sheet) |
Free a sprite sheet. More... | |
size_t | C2D_SpriteSheetCount (C2D_SpriteSheet sheet) |
Retrieves the number of sprites in the specified sprite sheet. More... | |
C2D_Image | C2D_SpriteSheetGetImage (C2D_SpriteSheet sheet, size_t index) |
Retrieves the specified image from the specified sprite sheet. More... | |
size_t C2D_SpriteSheetCount | ( | C2D_SpriteSheet | sheet | ) |
Retrieves the number of sprites in the specified sprite sheet.
[in] | sheet | Sprite sheet handle |
void C2D_SpriteSheetFree | ( | C2D_SpriteSheet | sheet | ) |
Free a sprite sheet.
[in] | sheet | Sprite sheet handle |
C2D_SpriteSheet C2D_SpriteSheetFromFD | ( | int | fd | ) |
Load sprite sheet from file descriptor.
[in] | fd | File descriptor used to load data |
NULL | Error |
C2D_Image C2D_SpriteSheetGetImage | ( | C2D_SpriteSheet | sheet, |
size_t | index | ||
) |
Retrieves the specified image from the specified sprite sheet.
[in] | sheet | Sprite sheet handle |
[in] | index | Index of the image to retrieve |
C2D_SpriteSheet C2D_SpriteSheetLoad | ( | const char * | filename | ) |
Load a sprite sheet from file.
[in] | filename | Name of the sprite sheet file (.t3x) |
NULL | Error |
C2D_SpriteSheet C2D_SpriteSheetLoadFromHandle | ( | FILE * | f | ) |
Load sprite sheet from stdio file handle.
[in] | f | File handle used to load data |
NULL | Error |
C2D_SpriteSheet C2D_SpriteSheetLoadFromMem | ( | const void * | data, |
size_t | size | ||
) |
Load a sprite sheet from memory.
[in] | data | Data to load |
[in] | size | Size of the data to load |
NULL | Error |