spritesheet being read in, needs testing and possible memory leak fix

This commit is contained in:
herbglitch 2025-03-26 04:27:02 -06:00
parent 15ee2819b1
commit 2e97d908d8
7 changed files with 120 additions and 202 deletions

View file

@ -99,7 +99,7 @@ void ARC_Sprite_SetFrameIndex(ARC_Sprite *sprite, uint32_t index);
* @brief sets the origin point of the sprite (the rotation and position point)
*
* @param sprite ARC_Sprite that is having its angle set
* @param index the given agnel in degrees to rotate around (rotated clockwise)
* @param angle the given agnel in degrees to rotate around (rotated clockwise)
*/
void ARC_Sprite_SetAngle(ARC_Sprite *sprite, double angle);

View file

@ -28,6 +28,7 @@ typedef void (* ARC_ConfigType_DestroyFn)(ARC_Config *config, void *type);
* @brief the functions for used for loading and unloading a type, the name will be the key of a hashtable
*/
typedef struct ARC_ConfigType {
uint32_t size;
ARC_ConfigType_CopyFn copyFn;
ARC_ConfigType_DestroyFn destroyFn;
void *userdata;