You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Toggle whether animations will continue when they finish with `tag.loop`
16
+
- Load [Aseprite slice](https://www.aseprite.org/docs/slices/) rectangles for collisions and bounds
16
17
17
18
## Usage
18
19
19
20
This is a header-only library. To use it, define `RAYLIB_ASEPRITE_IMPLEMENTATION` in one .c source file before including [*raylib-aseprite.h*](include). You will also have to link the raylib dependency.
20
21
21
22
### Example
22
23
24
+
The below is a basic example, see the [examples](examples) folder for more.
25
+
23
26
```c
24
27
#include"raylib.h"
25
28
@@ -75,7 +78,6 @@ void TraceAseprite(Aseprite aseprite); // Display a
75
78
Texture GetAsepriteTexture(Aseprite aseprite); // Retrieve the raylib texture associated with the aseprite
76
79
int GetAsepriteWidth(Aseprite aseprite); // Get the width of the sprite
77
80
int GetAsepriteHeight(Aseprite aseprite); // Get the height of the sprite
78
-
int GetAsepriteTagCount(Aseprite aseprite); // Get the total amount of available tags
79
81
void DrawAseprite(Aseprite aseprite, int frame, int posX, int posY, Color tint);
80
82
void DrawAsepriteV(Aseprite aseprite, int frame, Vector2 position, Color tint);
81
83
void DrawAsepriteEx(Aseprite aseprite, int frame, Vector2 position, float rotation, float scale, Color tint);
0 commit comments