Loading...
Searching...
No Matches
sprite.c
Go to the documentation of this file.
#ifdef ARC_NONE_GRAPHICS
#include "arc/graphics/sprite.h"
#include <stdio.h>
void ARC_Sprite_Create(ARC_Sprite **sprite, ARC_Spritesheet *spritesheet, ARC_Array *frames){
printf("No Graphics Backend Selected\n");
}
void ARC_Sprite_Destroy(ARC_Sprite *sprite){
printf("No Graphics Backend Selected\n");
}
void ARC_Sprite_Copy(ARC_Sprite **newSprite, ARC_Sprite *oldSprite){
printf("No Graphics Backend Selected\n");
}
void ARC_Sprite_Render(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds){
printf("No Graphics Backend Selected\n");
}
void ARC_Sprite_RenderFlip(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds, enum ARC_Sprite_Axis axis){
printf("No Graphics Backend Selected\n");
}
void ARC_Sprite_RenderRotated(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds, ARC_Point *center, double angle){
printf("No Graphics Backend Selected\n");
}
void ARC_Sprite_SetFrameIndex(ARC_Sprite *sprite, uint32_t index){
printf("No Graphics Backend Selected\n");
}
void ARC_Sprite_IterateFrame(ARC_Sprite *sprite){
printf("No Graphics Backend Selected\n");
}
ARC_Rect *ARC_Sprite_GetBounds(ARC_Sprite *sprite){
printf("No Graphics Backend Selected\n");
return NULL;
}
ARC_Array *ARC_Sprite_GetAllBounds(ARC_Sprite *sprite){
printf("No Graphics Backend Selected\n");
return NULL;
}
#endif // !ARC_NONE_GRAPHICS
ARC_Renderer
struct ARC_RendererType ARC_Renderer
Definition renderer.h:16
sprite.h
ARC_Sprite
struct ARC_Sprite ARC_Sprite
a sprite type
Definition sprite.h:19
ARC_Sprite_Render
void ARC_Sprite_Render(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds)
renders ARC_Sprite type
ARC_Sprite_Create
void ARC_Sprite_Create(ARC_Sprite **sprite, ARC_Spritesheet *spritesheet, ARC_Array *frames)
creates ARC_Sprite type
ARC_Sprite_Destroy
void ARC_Sprite_Destroy(ARC_Sprite *sprite)
destroys ARC_Sprite type
ARC_Sprite_RenderRotated
void ARC_Sprite_RenderRotated(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds, ARC_Point *center, double angle)
renders ARC_Sprite type with rotation
ARC_Sprite_Axis
ARC_Sprite_Axis
Definition sprite.h:67
ARC_Sprite_RenderFlip
void ARC_Sprite_RenderFlip(ARC_Sprite *sprite, ARC_Renderer *renderer, ARC_Rect *renderBounds, enum ARC_Sprite_Axis axis)
renders ARC_Sprite type with flip
ARC_Sprite_GetBounds
ARC_Rect * ARC_Sprite_GetBounds(ARC_Sprite *sprite)
returns the current bounds based on the ARC_Sprite's frames
ARC_Sprite_GetAllBounds
ARC_Array * ARC_Sprite_GetAllBounds(ARC_Sprite *sprite)
returns the array of bounds that a sprite has
ARC_Sprite_Copy
void ARC_Sprite_Copy(ARC_Sprite **newSprite, ARC_Sprite *oldSprite)
copies ARC_Sprite to a new ARC_Sprite
ARC_Sprite_SetFrameIndex
void ARC_Sprite_SetFrameIndex(ARC_Sprite *sprite, uint32_t index)
switches ARC_Sprite's frame to specified index
ARC_Sprite_IterateFrame
void ARC_Sprite_IterateFrame(ARC_Sprite *sprite)
switches ARC_Sprite's frames to next for animation
ARC_Spritesheet
struct ARC_Spritesheet ARC_Spritesheet
Definition spritesheet.h:14
ARC_Array
a type that holds an array of data and its size
Definition array.h:13
ARC_Point
Definition point.h:10
ARC_Rect
Definition rectangle.h:12