citro2d
Typedefs | Functions
spritesheet.h File Reference

Spritesheet (texture atlas) loading and management. More...

#include "base.h"

Go to the source code of this file.

Typedefs

typedef struct C2D_SpriteSheet_s * C2D_SpriteSheet
 

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...
 

Detailed Description

Spritesheet (texture atlas) loading and management.