File Sprite.h

FileList > engine > include > Sprite.h

Go to the source code of this file

  • #include "DrawContext.h"
  • #include "DynArray.h"

Public Types

Type Name
typedef struct InputContext InputContext

Public Functions

Type Name
void SpriteComp_Draw (struct Sprite * pSpriteComp, struct Entity2D * pEnt, struct GameFrameworkLayer * pLayer, struct Transform2D * pCam, VECTOR(Worldspace2DVert) * outVerts, VECTOR(VertIndexT) * outIndices, VertIndexT * pNextIndex)
void SpriteComp_GetBoundingBox (struct Entity2D * pEnt, struct Sprite * pSpriteComp, struct GameFrameworkLayer * pLayer, vec2 outTL, vec2 outBR)
void SpriteComp_Input (struct Entity2D * pEnt, struct GameFrameworkLayer * pLayer, InputContext * context)
void SpriteComp_OnDestroy (struct Entity2D * pEnt)
void SpriteComp_OnInit (struct Entity2D * pEnt, struct GameFrameworkLayer * pLayer, float deltaT)
void SpriteComp_Update (struct Entity2D * pEnt, struct GameFrameworkLayer * pLayer, float deltaT)
void SpriteComp_UpdatePostPhysics (struct Entity2D * pEnt, struct GameFrameworkLayer * pLayer, float deltaT)

Public Types Documentation

typedef InputContext

typedef struct InputContext InputContext;

Public Functions Documentation

function SpriteComp_Draw

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

function SpriteComp_GetBoundingBox

void SpriteComp_GetBoundingBox (
    struct Entity2D * pEnt,
    struct Sprite * pSpriteComp,
    struct GameFrameworkLayer * pLayer,
    vec2 outTL,
    vec2 outBR
) 

function SpriteComp_Input

void SpriteComp_Input (
    struct Entity2D * pEnt,
    struct GameFrameworkLayer * pLayer,
    InputContext * context
) 

function SpriteComp_OnDestroy

void SpriteComp_OnDestroy (
    struct Entity2D * pEnt
) 

function SpriteComp_OnInit

void SpriteComp_OnInit (
    struct Entity2D * pEnt,
    struct GameFrameworkLayer * pLayer,
    float deltaT
) 

function SpriteComp_Update

void SpriteComp_Update (
    struct Entity2D * pEnt,
    struct GameFrameworkLayer * pLayer,
    float deltaT
) 

function SpriteComp_UpdatePostPhysics

void SpriteComp_UpdatePostPhysics (
    struct Entity2D * pEnt,
    struct GameFrameworkLayer * pLayer,
    float deltaT
) 


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/Sprite.h