Sprite atlases¶
Typedefs
-
typedef enum binocle_atlas_file_format binocle_atlas_file_format
The format of the atlas. We currently support libGDX and TexturePacker
Enums
Functions
-
void binocle_atlas_load_texturepacker(char *filename, struct sg_image *texture, struct binocle_subtexture *subtextures, int *num_subtextures)¶
Load a TexturePacker JSON atlas
- Parameters
filename – the JSON file path and name
texture – the corresponding texture that we already loaded
subtextures – an array of subtextures to store those coming from the JSON
num_subtextures – the number of subtextures that have been loaded by this function
-
void binocle_atlas_load_libgdx(char *filename, struct sg_image *texture, struct binocle_subtexture *subtextures, int *num_subtextures)¶
Load a libGDX atlas
Note
Not yet implemented
- Parameters
filename – the JSON file path and name
texture – the corresponding texture that we already loaded
subtextures – an array of subtextures to store those coming from the JSON
num_subtextures – the number of subtextures that have been loaded by this function