changed array size to no longer be a pointer, need to check every file that references array to hopefully not have broken anything
This commit is contained in:
parent
56a4aa9d39
commit
533541b852
6 changed files with 29 additions and 24 deletions
|
|
@ -23,9 +23,9 @@ typedef struct ARC_Sprite ARC_Sprite;
|
|||
*
|
||||
* @param sprite ARC_Sprite that is being created
|
||||
* @param spritesheet ARC_Spritesheet that ARC_Sprite will be pulled from
|
||||
* @param bounds ARC_Array of bounds of sprite on spritesheet
|
||||
* @param frames ARC_Array of bounds of sprite on spritesheet
|
||||
*/
|
||||
void ARC_Sprite_Create(ARC_Sprite **sprite, ARC_Spritesheet *spritesheet, ARC_Array *bounds);
|
||||
void ARC_Sprite_Create(ARC_Sprite **sprite, ARC_Spritesheet *spritesheet, ARC_Array *frames);
|
||||
|
||||
/**
|
||||
* @brief destroys ARC_Sprite type
|
||||
|
|
@ -76,6 +76,13 @@ void ARC_Sprite_IterateFrame(ARC_Sprite *sprite);
|
|||
*/
|
||||
ARC_Rect *ARC_Sprite_GetBounds(ARC_Sprite *sprite);
|
||||
|
||||
/**
|
||||
* @brief returns the array of bounds that a sprite has
|
||||
*
|
||||
* @param sprite ARC_Sprite to get all the bounds from
|
||||
*/
|
||||
ARC_Array *ARC_Sprite_GetAllBounds(ARC_Sprite *sprite);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ extern "C" {
|
|||
* @brief a type that holds an array of data and its size
|
||||
*/
|
||||
typedef struct ARC_Array {
|
||||
uint32_t *size;
|
||||
uint32_t size;
|
||||
void *data;
|
||||
} ARC_Array;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue