sprite frames added
This commit is contained in:
parent
12a28fea88
commit
f337113932
2 changed files with 8 additions and 0 deletions
|
|
@ -31,6 +31,11 @@ void ARC_Sprite_IterateFrame(ARC_Sprite *sprite){
|
|||
}
|
||||
}
|
||||
|
||||
void ARC_Sprite_SetFrames(ARC_Sprite *sprite, ARC_Array *frames){
|
||||
sprite->frames = frames->data;
|
||||
*sprite->frameIndex = 0;
|
||||
}
|
||||
|
||||
ARC_Rect *ARC_Sprite_GetBounds(ARC_Sprite *sprite){
|
||||
return sprite->frames + *sprite->frameIndex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue