File Game2DVertexOutputHelpers.h
FileList > engine > include > Game2DVertexOutputHelpers.h
Go to the source code of this file
#include <cglm/cglm.h>#include "DrawContext.h"
Public Types
| Type | Name |
|---|---|
| typedef struct _AtlasSprite | AtlasSprite |
Public Functions
| Type | Name |
|---|---|
| void | HSprite_DrawBase (hSprite sprite, struct Transform2D * pSpriteTrans, struct Entity2D * pEnt, struct GameFrameworkLayer * pLayer, VECTOR(Worldspace2DVert) * outVerts, VECTOR(VertIndexT) * outIndices, VertIndexT * pNextIndex) |
| void | OutputSpriteVerticesBase (AtlasSprite * pSprite, VECTOR(Worldspace2DVert) * pOutVert, VECTOR(VertIndexT) * pOutInd, VertIndexT * pNextIndex, vec2 tlPos, vec2 trPos, vec2 blPos, vec2 brPos, struct Transform2D * transform) |
| void | RotatePointAroundPoint (float x, float y, vec2 pivot, float rotation, vec2 outRotatedPoint) |
Macros
| Type | Name |
|---|---|
| define | VECTOR (a) a\* |
Public Types Documentation
typedef AtlasSprite
typedef struct _AtlasSprite AtlasSprite;
Public Functions Documentation
function HSprite_DrawBase
void HSprite_DrawBase (
hSprite sprite,
struct Transform2D * pSpriteTrans,
struct Entity2D * pEnt,
struct GameFrameworkLayer * pLayer,
VECTOR( Worldspace2DVert ) * outVerts,
VECTOR(VertIndexT) * outIndices,
VertIndexT * pNextIndex
)
function OutputSpriteVerticesBase
void OutputSpriteVerticesBase (
AtlasSprite * pSprite,
VECTOR( Worldspace2DVert ) * pOutVert,
VECTOR(VertIndexT) * pOutInd,
VertIndexT * pNextIndex,
vec2 tlPos,
vec2 trPos,
vec2 blPos,
vec2 brPos,
struct Transform2D * transform
)
function RotatePointAroundPoint
void RotatePointAroundPoint (
float x,
float y,
vec2 pivot,
float rotation,
vec2 outRotatedPoint
)
Macro Definition Documentation
define VECTOR
#define VECTOR (
a
) `a*`
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/Game2DVertexOutputHelpers.h