2022-11-03 21:29:08 -06:00
|
|
|
#ifndef ARC_GRAPHICS_SPRITESHEET_H_
|
|
|
|
|
#define ARC_GRAPHICS_SPRITESHEET_H_
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2023-01-22 18:45:27 -07:00
|
|
|
#include <stdint.h>
|
|
|
|
|
#include "arc/math/point.h"
|
|
|
|
|
#include "arc/math/rectangle.h"
|
|
|
|
|
#include "arc/graphics/renderer.h"
|
|
|
|
|
|
2022-11-03 21:29:08 -06:00
|
|
|
typedef struct ARC_Spritesheet ARC_Spritesheet;
|
|
|
|
|
|
2023-01-22 18:45:27 -07:00
|
|
|
void ARC_Spritesheet_RenderArea(ARC_Spritesheet *spritesheet, ARC_Rect *sheetBounds, ARC_Renderer *renderer, ARC_Rect *renderBounds);
|
|
|
|
|
|
|
|
|
|
ARC_Point ARC_Spritesheet_GetSize(ARC_Spritesheet *spritesheet);
|
|
|
|
|
uint32_t *ARC_Spritesheet_GetTileSize(ARC_Spritesheet *spritesheet);
|
|
|
|
|
|
2022-11-03 21:29:08 -06:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif // !ARC_GRAPHICS_SPRITESHEET_H_
|