Stardew Engine
Loading...
Searching...
No Matches
Sprite.h
Go to the documentation of this file.
1#ifndef STARDEWSPRITE_H
2#define STARDEWSPRITE_H
3#include "DrawContext.h"
4#include "DynArray.h"
5
6struct Entity2D;
8struct DrawContext;
9struct InputContext;
11struct Sprite;
12struct Transform2D;
13
14void SpriteComp_OnInit(struct Entity2D* pEnt, struct GameFrameworkLayer* pLayer, float deltaT);
15void SpriteComp_Update(struct Entity2D* pEnt, struct GameFrameworkLayer* pLayer, float deltaT);
16void SpriteComp_UpdatePostPhysics(struct Entity2D* pEnt, struct GameFrameworkLayer* pLayer, float deltaT);
17void SpriteComp_Draw(struct Sprite* pSpriteComp, struct Entity2D* pEnt, struct GameFrameworkLayer* pLayer, struct Transform2D* pCam, VECTOR(Worldspace2DVert)* outVerts, VECTOR(VertIndexT)* outIndices, VertIndexT* pNextIndex);
18void SpriteComp_Input(struct Entity2D* pEnt, struct GameFrameworkLayer* pLayer, InputContext* context);
19void SpriteComp_OnDestroy(struct Entity2D* pEnt);
20
21void SpriteComp_GetBoundingBox(struct Entity2D* pEnt, struct Sprite* pSpriteComp, struct GameFrameworkLayer* pLayer, vec2 outTL, vec2 outBR);
22
23#endif
24
u32 VertIndexT
Definition DrawContext.h:52
vec2 vec2 struct Entity2DCollection struct GameFrameworkLayer * pLayer
Definition EntityQuadTree.h:38
void SpriteComp_Draw(struct Sprite *pSpriteComp, struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, struct Transform2D *pCam, VECTOR(Worldspace2DVert) *outVerts, VECTOR(VertIndexT) *outIndices, VertIndexT *pNextIndex)
Definition Sprite.c:25
void SpriteComp_Update(struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, float deltaT)
Definition Sprite.c:15
void SpriteComp_GetBoundingBox(struct Entity2D *pEnt, struct Sprite *pSpriteComp, struct GameFrameworkLayer *pLayer, vec2 outTL, vec2 outBR)
Definition Sprite.c:52
void SpriteComp_UpdatePostPhysics(struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, float deltaT)
Definition Sprite.c:19
void SpriteComp_OnInit(struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, float deltaT)
Definition Sprite.c:10
void SpriteComp_Input(struct Entity2D *pEnt, struct GameFrameworkLayer *pLayer, InputContext *context)
Definition Sprite.c:42
void SpriteComp_OnDestroy(struct Entity2D *pEnt)
Definition Sprite.c:47
#define VECTOR(a)
Definition WfGame.h:8
Definition DrawContext.h:59
Definition Entities.h:190
Definition GameFramework.h:42
Definition InputContext.h:137
Definition Entities.h:61
Definition Game2DLayer.h:54
Definition DrawContext.h:13