added function to get sprite index

This commit is contained in:
herbglitch 2023-11-20 21:34:46 -07:00
parent b77b09f22b
commit 75f98548db
2 changed files with 13 additions and 0 deletions

View file

@ -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;
}