@@ -36,7 +36,7 @@ int main() {
36
36
// Draw the 0th frame from the backpacker sprite.
37
37
DrawAseprite (backpacker, 0, 100, 100, WHITE);
38
38
39
- // Draw the walkdown animation tag .
39
+ // Draw the Walk Down animation .
40
40
DrawAsepriteTag (walkdown, 200, 100, WHITE);
41
41
42
42
EndDrawing ();
@@ -53,25 +53,31 @@ int main() {
53
53
### Cheatsheet
54
54
55
55
``` c
56
+ // Aseprite
56
57
Aseprite LoadAseprite (const char* fileName); // Load an .aseprite file
57
58
Aseprite LoadAsepriteFromMemory(unsigned char* fileData, unsigned int size); // Load an aseprite file from memory
59
+ bool IsAsepriteReady(Aseprite aseprite); // Check if the given Aseprite was loaded successfully.
58
60
void UnloadAseprite(Aseprite aseprite); // Unloads the aseprite file
59
61
void TraceAseprite(Aseprite aseprite); // Display all information associated with the aseprite
60
62
Texture GetAsepriteTexture(Aseprite aseprite); // Retrieve the raylib texture associated with the aseprite
63
+ int GetAsepriteWidth(Aseprite aseprite); // Get the width of the sprite.
64
+ int GetAsepriteHeight(Aseprite aseprite); // Get the height of the sprite.
65
+ int GetAspriteTagCount(Aseprite aseprite); // Get the total amount of available tags
61
66
void DrawAseprite(Aseprite aseprite, int frame, int posX, int posY, Color tint);
62
67
void DrawAsepriteV(Aseprite aseprite, int frame, Vector2 position, Color tint);
63
68
void DrawAsepriteEx(Aseprite aseprite, int frame, Vector2 position, float rotation, float scale, Color tint);
64
69
void DrawAsepritePro(Aseprite aseprite, int frame, Rectangle dest, Vector2 origin, float rotation, Color tint);
65
70
71
+ // AsepriteTag
66
72
AsepriteTag LoadAsepriteTag(Aseprite aseprite, const char* name); // Load a Aseprite tag animation sequence
67
- AsepriteTag LoadAsepriteTagFromId(Aseprite aseprite, int id); // Load a Aseprite tag animation sequence from its index
73
+ AsepriteTag LoadAsepriteTagFromIndex(Aseprite aseprite, int index); // Load a Aseprite tag animation sequence from its index
74
+ bool IsAsepriteTagReady(AsepriteTag tag); // Check if the given Aseprite tag was loaded successfully.
68
75
void UpdateAsepriteTag(AsepriteTag* tag); // Update the tag animation frame if needed
76
+ AsepriteTag GenAsepriteTagDefault(); // Generate an empty Tag with sane defaults
69
77
void DrawAsepriteTag(AsepriteTag tag, int posX, int posY, Color tint);
70
78
void DrawAsepriteTagV(AsepriteTag tag, Vector2 position, Color tint);
71
79
void DrawAsepriteTagEx(AsepriteTag tag, Vector2 position, float rotation, float scale, Color tint);
72
80
void DrawAsepriteTagPro(AsepriteTag tag, Rectangle dest, Vector2 origin, float rotation, Color tint);
73
- const char* GetAsepriteTagName(AsepriteTag tag); // Retrieve the given tag's name
74
- int GetAspriteTagCount(Aseprite aseprite); // Get the total amount of available tags from the loaded Aseprite
75
81
```
76
82
77
83
## Development
0 commit comments