Stardew Engine
Loading...
Searching...
No Matches
AnimatedSprite.h File Reference
#include <cglm/cglm.h>
#include "DrawContext.h"
Include dependency graph for AnimatedSprite.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VECTOR(a)   a*
 

Functions

void AnimatedSprite_OnInit (struct AnimatedSprite *pAnimatedSprite, struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, float deltaT)
 
void AnimatedSprite_OnUpdate (struct AnimatedSprite *pAnimatedSprite, struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, float deltaT)
 
void AnimatedSprite_GetBoundingBox (struct Entity2D *pEnt, struct AnimatedSprite *pAnimatedSprite, struct GameFrameworkLayer *pLayer, vec2 outTL, vec2 outBR)
 
void AnimatedSprite_Draw (struct AnimatedSprite *pSpriteComp, struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, struct Transform2D *pCam, VECTOR(Worldspace2DVert) *outVerts, VECTOR(VertIndexT) *outIndices, VertIndexT *pNextIndex)
 
void AnimatedSprite_OnDestroy (struct Entity2D *pEnt)
 
void AnimatedSprite_SetAnimation (struct GameFrameworkLayer *pLayer, struct AnimatedSprite *pSpriteComp, const char *animName, bool bResetOnFrame, bool bResetTimer)
 

Macro Definition Documentation

◆ VECTOR

#define VECTOR (   a)    a*

Function Documentation

◆ AnimatedSprite_Draw()

void AnimatedSprite_Draw ( struct AnimatedSprite pSpriteComp,
struct Entity2D pEnt,
struct GameFrameworkLayer pLayer,
struct Transform2D pCam,
VECTOR(Worldspace2DVert) *  outVerts,
VECTOR(VertIndexT) *  outIndices,
VertIndexT pNextIndex 
)

◆ AnimatedSprite_GetBoundingBox()

void AnimatedSprite_GetBoundingBox ( struct Entity2D pEnt,
struct AnimatedSprite pAnimatedSprite,
struct GameFrameworkLayer pLayer,
vec2  outTL,
vec2  outBR 
)

◆ AnimatedSprite_OnDestroy()

void AnimatedSprite_OnDestroy ( struct Entity2D pEnt)

◆ AnimatedSprite_OnInit()

void AnimatedSprite_OnInit ( struct AnimatedSprite pAnimatedSprite,
struct Entity2D pEnt,
struct GameFrameworkLayer pLayer,
float  deltaT 
)

◆ AnimatedSprite_OnUpdate()

void AnimatedSprite_OnUpdate ( struct AnimatedSprite pAnimatedSprite,
struct Entity2D pEnt,
struct GameFrameworkLayer pLayer,
float  deltaT 
)

◆ AnimatedSprite_SetAnimation()

void AnimatedSprite_SetAnimation ( struct GameFrameworkLayer pLayer,
struct AnimatedSprite pSpriteComp,
const char *  animName,
bool  bResetOnFrame,
bool  bResetTimer 
)