Stardew Engine
Loading...
Searching...
No Matches
DrawContext.h File Reference
#include "Atlas.h"
#include "HandleDefs.h"
Include dependency graph for DrawContext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Vert2DTexture
 
struct  Vert2DTextureQuad
 
struct  Vert2DColourTexture
 
struct  Vert2DColourTextureQuad
 
struct  DrawContext
 

Typedefs

typedef struct Vert2DTexture Worldspace2DVert
 
typedef struct Vert2DTextureQuad Worldspace2DQuad
 
typedef struct Vert2DColourTexture WidgetVertex
 
typedef struct Vert2DColourTextureQuad WidgetQuad
 
typedef void(* SetCurrentAtlasFn) (hTexture atlas)
 
typedef HUIVertexBuffer(* NewUIVertexBufferFn) (int size)
 
typedef void(* UIVertexBufferDataFn) (HUIVertexBuffer hBuf, WidgetVertex *src, size_t size)
 
typedef void(* DrawUIVertexBufferFn) (HUIVertexBuffer hBuf, size_t vertexCount)
 
typedef void(* DestroyUIVertexBufferFn) (HUIVertexBuffer hBuf)
 
typedef hTexture(* UploadTextureFn) (void *src, int channels, int pxWidth, int pxHeight)
 
typedef void(* DestroyTextureFn) (hTexture tex)
 
typedef H2DWorldspaceVertexBuffer(* NewWorldspaceVertBufferFn) (int size)
 
typedef u32 VertIndexT
 
typedef void(* WorldspaceVertexBufferDataFn) (H2DWorldspaceVertexBuffer hBuf, Worldspace2DVert *src, size_t size, VertIndexT *indices, u32 numIndices)
 
typedef void(* DrawWorldspaceVertexBufferFn) (H2DWorldspaceVertexBuffer hBuf, size_t vertexCount, mat4 view)
 
typedef void(* DestroyWorldspaceVertexBufferFn) (H2DWorldspaceVertexBuffer hBuf)
 
typedef struct DrawContext DrawContext
 

Functions

DrawContext Dr_InitDrawContext ()
 
void Dr_OnScreenDimsChange (DrawContext *pCtx, int newW, int newH)
 

Typedef Documentation

◆ DestroyTextureFn

typedef void(* DestroyTextureFn) (hTexture tex)

◆ DestroyUIVertexBufferFn

typedef void(* DestroyUIVertexBufferFn) (HUIVertexBuffer hBuf)

◆ DestroyWorldspaceVertexBufferFn

typedef void(* DestroyWorldspaceVertexBufferFn) (H2DWorldspaceVertexBuffer hBuf)

◆ DrawContext

typedef struct DrawContext DrawContext

◆ DrawUIVertexBufferFn

typedef void(* DrawUIVertexBufferFn) (HUIVertexBuffer hBuf, size_t vertexCount)

◆ DrawWorldspaceVertexBufferFn

typedef void(* DrawWorldspaceVertexBufferFn) (H2DWorldspaceVertexBuffer hBuf, size_t vertexCount, mat4 view)

◆ NewUIVertexBufferFn

typedef HUIVertexBuffer(* NewUIVertexBufferFn) (int size)

◆ NewWorldspaceVertBufferFn

typedef H2DWorldspaceVertexBuffer(* NewWorldspaceVertBufferFn) (int size)

◆ SetCurrentAtlasFn

typedef void(* SetCurrentAtlasFn) (hTexture atlas)

◆ UIVertexBufferDataFn

typedef void(* UIVertexBufferDataFn) (HUIVertexBuffer hBuf, WidgetVertex *src, size_t size)

◆ UploadTextureFn

typedef hTexture(* UploadTextureFn) (void *src, int channels, int pxWidth, int pxHeight)

◆ VertIndexT

typedef u32 VertIndexT

◆ WidgetQuad

◆ WidgetVertex

◆ Worldspace2DQuad

◆ Worldspace2DVert

◆ WorldspaceVertexBufferDataFn

typedef void(* WorldspaceVertexBufferDataFn) (H2DWorldspaceVertexBuffer hBuf, Worldspace2DVert *src, size_t size, VertIndexT *indices, u32 numIndices)

Function Documentation

◆ Dr_InitDrawContext()

DrawContext Dr_InitDrawContext ( )

◆ Dr_OnScreenDimsChange()

void Dr_OnScreenDimsChange ( DrawContext pCtx,
int  newW,
int  newH 
)