DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
gl_state_t Struct Reference
+ Collaboration diagram for gl_state_t:

Data Fields

qbool active
 
qbool alphatocoverage
 
qbool blend
 
int blendfunc1
 
int blendfunc2
 
float color4f [4]
 
int colormask
 
int cullface
 
int cullfaceenable
 
int defaultframebufferobject
 
unsigned int defaultvao
 
int depthfunc
 
GLboolean depthmask
 
float depthrange [2]
 
int depthtest
 
int elementbufferobject
 
int framebufferobject
 
int lockrange_count
 
int lockrange_first
 
memexpandablearray_t meshbufferarray
 
int pointer_color_components
 
qbool pointer_color_enabled
 
int pointer_color_gltype
 
size_t pointer_color_offset
 
const voidpointer_color_pointer
 
size_t pointer_color_stride
 
const r_meshbuffer_tpointer_color_vertexbuffer
 
int pointer_vertex_components
 
int pointer_vertex_gltype
 
size_t pointer_vertex_offset
 
const voidpointer_vertex_pointer
 
size_t pointer_vertex_stride
 
const r_meshbuffer_tpointer_vertex_vertexbuffer
 
float polygonoffset [2]
 
int preparevertices_numvertices
 
voidpreparevertices_tempdata
 
size_t preparevertices_tempdatamaxsize
 
int scissortest
 
int uniformbufferobject
 
unsigned int unit
 
gltextureunit_t units [MAX_TEXTUREUNITS]
 
int vertexbufferobject
 

Detailed Description

Definition at line 129 of file gl_backend.c.

Field Documentation

◆ active

qbool gl_state_t::active

Definition at line 179 of file gl_backend.c.

Referenced by GL_Backend_ResetState().

◆ alphatocoverage

qbool gl_state_t::alphatocoverage

Definition at line 142 of file gl_backend.c.

Referenced by GL_AlphaToCoverage(), and GL_Backend_ResetState().

◆ blend

qbool gl_state_t::blend

Definition at line 135 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), and GL_BlendFunc().

◆ blendfunc1

int gl_state_t::blendfunc1

Definition at line 133 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), and GL_BlendFunc().

◆ blendfunc2

int gl_state_t::blendfunc2

Definition at line 134 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), and GL_BlendFunc().

◆ color4f

float gl_state_t::color4f[4]

Definition at line 146 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), GL_Color(), and R_Mesh_ColorPointer().

◆ colormask

int gl_state_t::colormask

Definition at line 137 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), and GL_ColorMask().

◆ cullface

int gl_state_t::cullface

Definition at line 131 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), GL_CullFace(), and GL_SetMirrorState().

◆ cullfaceenable

int gl_state_t::cullfaceenable

Definition at line 132 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), and GL_CullFace().

◆ defaultframebufferobject

int gl_state_t::defaultframebufferobject

Definition at line 153 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), gl_backend_start(), and R_Mesh_SetRenderTargets().

◆ defaultvao

unsigned int gl_state_t::defaultvao

Definition at line 157 of file gl_backend.c.

Referenced by gl_backend_start().

◆ depthfunc

int gl_state_t::depthfunc

Definition at line 139 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), and GL_DepthFunc().

◆ depthmask

GLboolean gl_state_t::depthmask

Definition at line 136 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), and GL_DepthMask().

◆ depthrange

float gl_state_t::depthrange[2]

Definition at line 140 of file gl_backend.c.

Referenced by GL_DepthRange().

◆ depthtest

int gl_state_t::depthtest

Definition at line 138 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), and GL_DepthTest().

◆ elementbufferobject

int gl_state_t::elementbufferobject

Definition at line 150 of file gl_backend.c.

Referenced by GL_BindEBO(), and R_Mesh_DestroyMeshBuffer().

◆ framebufferobject

int gl_state_t::framebufferobject

◆ lockrange_count

int gl_state_t::lockrange_count

Definition at line 148 of file gl_backend.c.

Referenced by GL_Backend_ResetState().

◆ lockrange_first

int gl_state_t::lockrange_first

Definition at line 147 of file gl_backend.c.

Referenced by GL_Backend_ResetState().

◆ meshbufferarray

◆ pointer_color_components

int gl_state_t::pointer_color_components

Definition at line 166 of file gl_backend.c.

Referenced by R_Mesh_ColorPointer().

◆ pointer_color_enabled

qbool gl_state_t::pointer_color_enabled

Definition at line 154 of file gl_backend.c.

Referenced by GL_Color(), and R_Mesh_ColorPointer().

◆ pointer_color_gltype

int gl_state_t::pointer_color_gltype

Definition at line 167 of file gl_backend.c.

Referenced by R_Mesh_ColorPointer().

◆ pointer_color_offset

size_t gl_state_t::pointer_color_offset

Definition at line 171 of file gl_backend.c.

Referenced by R_Mesh_ColorPointer().

◆ pointer_color_pointer

const void* gl_state_t::pointer_color_pointer

Definition at line 169 of file gl_backend.c.

Referenced by R_Mesh_ColorPointer().

◆ pointer_color_stride

size_t gl_state_t::pointer_color_stride

Definition at line 168 of file gl_backend.c.

Referenced by R_Mesh_ColorPointer().

◆ pointer_color_vertexbuffer

const r_meshbuffer_t* gl_state_t::pointer_color_vertexbuffer

Definition at line 170 of file gl_backend.c.

Referenced by R_Mesh_ColorPointer().

◆ pointer_vertex_components

int gl_state_t::pointer_vertex_components

Definition at line 159 of file gl_backend.c.

Referenced by R_Mesh_VertexPointer().

◆ pointer_vertex_gltype

int gl_state_t::pointer_vertex_gltype

Definition at line 160 of file gl_backend.c.

Referenced by R_Mesh_VertexPointer().

◆ pointer_vertex_offset

size_t gl_state_t::pointer_vertex_offset

Definition at line 164 of file gl_backend.c.

Referenced by R_Mesh_VertexPointer().

◆ pointer_vertex_pointer

const void* gl_state_t::pointer_vertex_pointer

Definition at line 162 of file gl_backend.c.

Referenced by R_Mesh_VertexPointer().

◆ pointer_vertex_stride

size_t gl_state_t::pointer_vertex_stride

Definition at line 161 of file gl_backend.c.

Referenced by R_Mesh_VertexPointer().

◆ pointer_vertex_vertexbuffer

const r_meshbuffer_t* gl_state_t::pointer_vertex_vertexbuffer

Definition at line 163 of file gl_backend.c.

Referenced by R_Mesh_VertexPointer().

◆ polygonoffset

float gl_state_t::polygonoffset[2]

Definition at line 141 of file gl_backend.c.

Referenced by GL_Backend_ResetState(), and GL_PolygonOffset().

◆ preparevertices_numvertices

int gl_state_t::preparevertices_numvertices

Definition at line 175 of file gl_backend.c.

◆ preparevertices_tempdata

void* gl_state_t::preparevertices_tempdata

Definition at line 173 of file gl_backend.c.

Referenced by gl_backend_shutdown().

◆ preparevertices_tempdatamaxsize

size_t gl_state_t::preparevertices_tempdatamaxsize

Definition at line 174 of file gl_backend.c.

◆ scissortest

int gl_state_t::scissortest

Definition at line 143 of file gl_backend.c.

Referenced by GL_ScissorTest().

◆ uniformbufferobject

int gl_state_t::uniformbufferobject

Definition at line 151 of file gl_backend.c.

Referenced by GL_BindUBO(), and R_Mesh_DestroyMeshBuffer().

◆ unit

unsigned int gl_state_t::unit

Definition at line 144 of file gl_backend.c.

Referenced by GL_ActiveTexture(), and GL_Backend_ResetState().

◆ units

◆ vertexbufferobject

int gl_state_t::vertexbufferobject

Definition at line 149 of file gl_backend.c.

Referenced by GL_BindVBO(), and R_Mesh_DestroyMeshBuffer().


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