added function to get sprite index
This commit is contained in:
parent
b77b09f22b
commit
75f98548db
2 changed files with 13 additions and 0 deletions
|
|
@ -77,6 +77,10 @@ void ARC_Sprite_IterateFrame(ARC_Sprite *sprite){
|
|||
}
|
||||
}
|
||||
|
||||
uint32_t ARC_Sprite_GetFrameIndex(ARC_Sprite *sprite){
|
||||
return *sprite->frameIndex;
|
||||
}
|
||||
|
||||
ARC_Rect *ARC_Sprite_GetBounds(ARC_Sprite *sprite){
|
||||
return (ARC_Rect *)sprite->frames->data + *sprite->frameIndex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue