Stardew Engine
Loading...
Searching...
No Matches
AnimatedSprite.h
Go to the documentation of this file.
1#ifndef ANIMATEDSPRITE_H
2#define ANIMATEDSPRITE_H
3#include <cglm/cglm.h>
4#include "DrawContext.h"
5struct AnimatedSprite;
6struct Entity2D;
8struct Transform2D;
9#define VECTOR(a)a*
10void AnimatedSprite_OnInit(struct AnimatedSprite* pAnimatedSprite, struct Entity2D* pEnt, struct GameFrameworkLayer* pLayer, float deltaT);
11void AnimatedSprite_OnUpdate(struct AnimatedSprite* pAnimatedSprite, struct Entity2D* pEnt, struct GameFrameworkLayer* pLayer, float deltaT);
12void AnimatedSprite_GetBoundingBox(struct Entity2D* pEnt, struct AnimatedSprite* pAnimatedSprite, struct GameFrameworkLayer* pLayer, vec2 outTL, vec2 outBR);
13void AnimatedSprite_Draw(struct AnimatedSprite* pSpriteComp, struct Entity2D* pEnt, struct GameFrameworkLayer* pLayer, struct Transform2D* pCam, VECTOR(Worldspace2DVert)* outVerts, VECTOR(VertIndexT)* outIndices, VertIndexT* pNextIndex);
14void AnimatedSprite_OnDestroy(struct Entity2D* pEnt);
15void AnimatedSprite_SetAnimation(struct GameFrameworkLayer* pLayer, struct AnimatedSprite* pSpriteComp, const char* animName, bool bResetOnFrame, bool bResetTimer);
16
17#endif
void AnimatedSprite_Draw(struct AnimatedSprite *pSpriteComp, struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, struct Transform2D *pCam, VECTOR(Worldspace2DVert) *outVerts, VECTOR(VertIndexT) *outIndices, VertIndexT *pNextIndex)
Definition AnimatedSprite.c:92
void AnimatedSprite_OnDestroy(struct Entity2D *pEnt)
Definition AnimatedSprite.c:40
void AnimatedSprite_OnInit(struct AnimatedSprite *pAnimatedSprite, struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, float deltaT)
Definition AnimatedSprite.c:9
#define VECTOR(a)
Definition AnimatedSprite.h:9
void AnimatedSprite_OnUpdate(struct AnimatedSprite *pAnimatedSprite, struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, float deltaT)
Definition AnimatedSprite.c:45
void AnimatedSprite_SetAnimation(struct GameFrameworkLayer *pLayer, struct AnimatedSprite *pSpriteComp, const char *animName, bool bResetOnFrame, bool bResetTimer)
Definition AnimatedSprite.c:21
void AnimatedSprite_GetBoundingBox(struct Entity2D *pEnt, struct AnimatedSprite *pAnimatedSprite, struct GameFrameworkLayer *pLayer, vec2 outTL, vec2 outBR)
Definition AnimatedSprite.c:70
u32 VertIndexT
Definition DrawContext.h:52
vec2 vec2 struct Entity2DCollection struct GameFrameworkLayer * pLayer
Definition EntityQuadTree.h:38
Definition Entities.h:101
Definition Entities.h:190
Definition GameFramework.h:42
Definition Game2DLayer.h:54
Definition DrawContext.h:13