|
Stardew Engine
|
#include "DrawContext.h"#include <string.h>#include <glad/glad.h>#include <cglm/cglm.h>#include "ObjectPool.h"#include "Widget.h"#include "DynArray.h"#include "AssertLib.h"#include "PlatformDefs.h"#include "Game2DLayer.h"#include "Log.h"
Data Structures | |
| struct | IndexedVertexBuffer |
| struct | VertexBuffer |
| struct | Shader |
Enumerations | |
| enum | ShaderType { ST_Vertex , ST_Fragment , ST_Program , ST_NUM } |
Functions | |
| OBJECT_POOL (struct VertexBuffer) | |
| void | WorldspaceVertexBufferData (HUIVertexBuffer hBuf, Worldspace2DVert *src, size_t size, VertIndexT *indices, u32 numIndices) |
| void | DrawWorldspaceVertexBuffer (H2DWorldspaceVertexBuffer hBuf, size_t indexCount, mat4 view) |
| void | DestroyWorldspaceVertexBuffer (H2DWorldspaceVertexBuffer hBuf) |
| DrawContext | Dr_InitDrawContext () |
| void | Dr_OnScreenDimsChange (DrawContext *pCtx, int newW, int newH) |
Variables | |
| const char * | uiVert |
| const char * | uiFrag |
| const char * | worldspaceVert |
| const char * | worldspaceFrag |
| struct Shader | gUIShader = {0,0,0} |
| struct Shader | gWorldspace2DShader = { 0,0,0 } |
| mat4 | gScreenspaceOrtho |
| enum ShaderType |
| void DestroyWorldspaceVertexBuffer | ( | H2DWorldspaceVertexBuffer | hBuf | ) |
| DrawContext Dr_InitDrawContext | ( | ) |
| void Dr_OnScreenDimsChange | ( | DrawContext * | pCtx, |
| int | newW, | ||
| int | newH | ||
| ) |
| void DrawWorldspaceVertexBuffer | ( | H2DWorldspaceVertexBuffer | hBuf, |
| size_t | indexCount, | ||
| mat4 | view | ||
| ) |
| OBJECT_POOL | ( | struct VertexBuffer | ) |
| void WorldspaceVertexBufferData | ( | HUIVertexBuffer | hBuf, |
| Worldspace2DVert * | src, | ||
| size_t | size, | ||
| VertIndexT * | indices, | ||
| u32 | numIndices | ||
| ) |
| mat4 gScreenspaceOrtho |
| struct Shader gUIShader = {0,0,0} |
| struct Shader gWorldspace2DShader = { 0,0,0 } |
| const char* uiFrag |
| const char* uiVert |
| const char* worldspaceFrag |
| const char* worldspaceVert |