File DrawContext.h
FileList > engine > include > DrawContext.h
Go to the source code of this file
#include "Atlas.h"#include "HandleDefs.h"
Classes
| Type | Name |
|---|---|
| struct | DrawContext |
| struct | Vert2DColourTexture |
| struct | Vert2DColourTextureQuad |
| struct | Vert2DTexture |
| struct | Vert2DTextureQuad |
Public Types
| Type | Name |
|---|---|
| typedef void(* | DestroyTextureFn |
| typedef void(* | DestroyUIVertexBufferFn |
| typedef void(* | DestroyWorldspaceVertexBufferFn |
| typedef struct DrawContext | DrawContext |
| typedef void(* | DrawUIVertexBufferFn |
| typedef void(* | DrawWorldspaceVertexBufferFn |
| typedef HUIVertexBuffer(* | NewUIVertexBufferFn |
| typedef H2DWorldspaceVertexBuffer(* | NewWorldspaceVertBufferFn |
| typedef void(* | SetCurrentAtlasFn |
| typedef void(* | UIVertexBufferDataFn |
| typedef hTexture(* | UploadTextureFn |
| typedef u32 | VertIndexT |
| typedef struct Vert2DColourTextureQuad | WidgetQuad |
| typedef struct Vert2DColourTexture | WidgetVertex |
| typedef struct Vert2DTextureQuad | Worldspace2DQuad |
| typedef struct Vert2DTexture | Worldspace2DVert |
| typedef void(* | WorldspaceVertexBufferDataFn |
Public Functions
| Type | Name |
|---|---|
| DrawContext | Dr_InitDrawContext () |
| void | Dr_OnScreenDimsChange (DrawContext * pCtx, int newW, int newH) |
Public Types Documentation
typedef DestroyTextureFn
typedef void(* DestroyTextureFn) (hTexture tex);
typedef DestroyUIVertexBufferFn
typedef void(* DestroyUIVertexBufferFn) (HUIVertexBuffer hBuf);
typedef DestroyWorldspaceVertexBufferFn
typedef void(* DestroyWorldspaceVertexBufferFn) (H2DWorldspaceVertexBuffer hBuf);
typedef DrawContext
typedef struct DrawContext DrawContext;
typedef DrawUIVertexBufferFn
typedef void(* DrawUIVertexBufferFn) (HUIVertexBuffer hBuf, size_t vertexCount);
typedef DrawWorldspaceVertexBufferFn
typedef void(* DrawWorldspaceVertexBufferFn) (H2DWorldspaceVertexBuffer hBuf, size_t vertexCount, mat4 view);
typedef NewUIVertexBufferFn
typedef HUIVertexBuffer(* NewUIVertexBufferFn) (int size);
typedef NewWorldspaceVertBufferFn
typedef H2DWorldspaceVertexBuffer(* NewWorldspaceVertBufferFn) (int size);
typedef SetCurrentAtlasFn
typedef void(* SetCurrentAtlasFn) (hTexture atlas);
typedef UIVertexBufferDataFn
typedef void(* UIVertexBufferDataFn) (HUIVertexBuffer hBuf, WidgetVertex *src, size_t size);
typedef UploadTextureFn
typedef hTexture(* UploadTextureFn) (void *src, int channels, int pxWidth, int pxHeight);
typedef VertIndexT
typedef u32 VertIndexT;
typedef WidgetQuad
typedef struct Vert2DColourTextureQuad WidgetQuad;
typedef WidgetVertex
typedef struct Vert2DColourTexture WidgetVertex;
typedef Worldspace2DQuad
typedef struct Vert2DTextureQuad Worldspace2DQuad;
typedef Worldspace2DVert
typedef struct Vert2DTexture Worldspace2DVert;
typedef WorldspaceVertexBufferDataFn
typedef void(* WorldspaceVertexBufferDataFn) (H2DWorldspaceVertexBuffer hBuf, Worldspace2DVert *src, size_t size, VertIndexT *indices, u32 numIndices);
Public Functions Documentation
function Dr_InitDrawContext
DrawContext Dr_InitDrawContext ()
function Dr_OnScreenDimsChange
void Dr_OnScreenDimsChange (
DrawContext * pCtx,
int newW,
int newH
)
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/DrawContext.h