srp
software rendering pipeline
Loading...
Searching...
No Matches
SRPContext Struct Reference

#include <context.h>

Collaboration diagram for SRPContext:

Public Attributes

SRPMessageCallback messageCallback
 
SRPProvokingVertexMode provokingVertexMode
 
SRPRasterState raster
 
SRPScissorState scissor
 
SRPStencilState stencil
 
SRPDepthState depth
 
SRPArena * arena
 

Detailed Description

Holds runtime settings. This always needs to be declared as SRPContext srpContext in user programs and initialized with srpNewContext()

Member Data Documentation

◆ arena

SRPArena* SRPContext::arena

Arena for internal allocations. Is not exposed to the user

◆ depth

SRPDepthState SRPContext::depth

Depth test state

◆ messageCallback

SRPMessageCallback SRPContext::messageCallback

Message callback that is called whenever an error/warning/etc. occurs

◆ provokingVertexMode

SRPProvokingVertexMode SRPContext::provokingVertexMode

Which vertex is considered to be the provoking vertex

◆ raster

SRPRasterState SRPContext::raster

Rasterizer state

◆ scissor

SRPScissorState SRPContext::scissor

Scissor test state

◆ stencil

SRPStencilState SRPContext::stencil

Stencil test state


The documentation for this struct was generated from the following file: