File AnimatedSprite.c
FileList > Components > AnimatedSprite.c
Go to the source code of this file
#include "AnimatedSprite.h"#include "Entities.h"#include "GameFramework.h"#include "Game2DLayer.h"#include "DynArray.h"#include "Atlas.h"#include "AssertLib.h"#include "Game2DVertexOutputHelpers.h"
Public Functions
| Type | Name |
|---|---|
| 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_GetBoundingBox (struct Entity2D * pEnt, struct AnimatedSprite * pAnimatedSprite, struct GameFrameworkLayer * pLayer, vec2 outTL, vec2 outBR) |
| void | AnimatedSprite_OnDestroy (struct Entity2D * pEnt) |
| 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_SetAnimation (struct GameFrameworkLayer * pLayer, struct AnimatedSprite * pSpriteComp, const char * animName, bool bResetOnFrame, bool bResetTimer) |
Public Functions Documentation
function 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
)
function AnimatedSprite_GetBoundingBox
void AnimatedSprite_GetBoundingBox (
struct Entity2D * pEnt,
struct AnimatedSprite * pAnimatedSprite,
struct GameFrameworkLayer * pLayer,
vec2 outTL,
vec2 outBR
)
function AnimatedSprite_OnDestroy
void AnimatedSprite_OnDestroy (
struct Entity2D * pEnt
)
function AnimatedSprite_OnInit
void AnimatedSprite_OnInit (
struct AnimatedSprite * pAnimatedSprite,
struct Entity2D * pEnt,
struct GameFrameworkLayer * pLayer,
float deltaT
)
function AnimatedSprite_OnUpdate
void AnimatedSprite_OnUpdate (
struct AnimatedSprite * pAnimatedSprite,
struct Entity2D * pEnt,
struct GameFrameworkLayer * pLayer,
float deltaT
)
function AnimatedSprite_SetAnimation
void AnimatedSprite_SetAnimation (
struct GameFrameworkLayer * pLayer,
struct AnimatedSprite * pSpriteComp,
const char * animName,
bool bResetOnFrame,
bool bResetTimer
)
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/src/gameframework/layers/Game2D/EntitySystem/Components/AnimatedSprite.c