UFO: Alien Invasion
rstate_t Struct Reference

#include <r_state.h>

Collaboration diagram for rstate_t:
Collaboration graph

Data Fields

bool fullscreen
 
GLfloat * vertex_array_3d
 
GLshort * vertex_array_2d
 
GLfloat * color_array
 
GLintindex_array
 
GLfloat * normal_array
 
GLfloat * tangent_array
 
GLfloat * next_vertex_array_3d
 
GLfloat * next_normal_array
 
GLfloat * next_tangent_array
 
int array_size
 
gltexunit_t texunits [MAX_GL_TEXUNITS]
 
gltexunit_tactive_texunit
 
r_framebuffer_trenderBuffer
 
r_framebuffer_tbloomBuffer0
 
r_framebuffer_tbloomBuffer1
 
r_framebuffer_tbuffers0 [DOWNSAMPLE_PASSES]
 
r_framebuffer_tbuffers1 [DOWNSAMPLE_PASSES]
 
r_framebuffer_tbuffers2 [DOWNSAMPLE_PASSES]
 
bool frameBufferObjectsInitialized
 
const r_framebuffer_tactiveFramebuffer
 
r_shader_t shaders [MAX_SHADERS]
 
r_program_t programs [MAX_PROGRAMS]
 
r_program_tworld_program
 
r_program_tmodel_program
 
r_program_twarp_program
 
r_program_tgeoscape_program
 
r_program_tconvolve_program
 
r_program_tcombine2_program
 
r_program_tatmosphere_program
 
r_program_tsimple_glow_program
 
r_program_tactive_program
 
GLenum blend_src
 
GLenum blend_dest
 
const material_tactive_material
 
bool shell_enabled
 
bool blend_enabled
 
bool multisample_enabled
 
bool color_array_enabled
 
bool alpha_test_enabled
 
bool stencil_test_enabled
 
bool lighting_enabled
 
bool warp_enabled
 
bool fog_enabled
 
bool blur_enabled
 
bool glowmap_enabled
 
bool draw_glow_enabled
 
bool dynamic_lighting_enabled
 
bool specularmap_enabled
 
bool roughnessmap_enabled
 
bool animation_enabled
 
bool renderbuffer_enabled
 
const struct image_s * active_normalmap
 

Detailed Description

Definition at line 96 of file r_state.h.

Field Documentation

◆ active_material

const material_t* rstate_t::active_material

Definition at line 145 of file r_state.h.

Referenced by R_SetDefaultState(), and R_UseMaterial().

◆ active_normalmap

const struct image_s* rstate_t::active_normalmap

◆ active_program

◆ active_texunit

◆ activeFramebuffer

const r_framebuffer_t* rstate_t::activeFramebuffer

Definition at line 127 of file r_state.h.

Referenced by R_BindColorAttachments(), R_InitFBObjects(), and R_UseFramebuffer().

◆ alpha_test_enabled

bool rstate_t::alpha_test_enabled

Definition at line 152 of file r_state.h.

Referenced by R_EnableAlphaTest(), and R_SetDefaultState().

◆ animation_enabled

bool rstate_t::animation_enabled

Definition at line 163 of file r_state.h.

Referenced by R_EnableAnimation(), and R_SetDefaultState().

◆ array_size

int rstate_t::array_size

Definition at line 111 of file r_state.h.

Referenced by R_DrawBspNormals(), and R_ReallocateStateArrays().

◆ atmosphere_program

r_program_t* rstate_t::atmosphere_program

Definition at line 138 of file r_state.h.

Referenced by R_Draw3DGlobe(), and R_InitPrograms().

◆ blend_dest

GLenum rstate_t::blend_dest

Definition at line 143 of file r_state.h.

Referenced by R_BlendFunc(), and R_SetDefaultState().

◆ blend_enabled

◆ blend_src

GLenum rstate_t::blend_src

Definition at line 143 of file r_state.h.

Referenced by R_BlendFunc(), and R_SetDefaultState().

◆ bloomBuffer0

r_framebuffer_t* rstate_t::bloomBuffer0

Definition at line 121 of file r_state.h.

◆ bloomBuffer1

r_framebuffer_t* rstate_t::bloomBuffer1

Definition at line 122 of file r_state.h.

◆ blur_enabled

bool rstate_t::blur_enabled

Definition at line 157 of file r_state.h.

Referenced by R_EnableBlur(), and R_SetDefaultState().

◆ buffers0

r_framebuffer_t* rstate_t::buffers0[DOWNSAMPLE_PASSES]

Definition at line 123 of file r_state.h.

Referenced by R_DrawBloom(), and R_InitFBObjects().

◆ buffers1

r_framebuffer_t* rstate_t::buffers1[DOWNSAMPLE_PASSES]

Definition at line 124 of file r_state.h.

Referenced by R_DrawBloom(), and R_InitFBObjects().

◆ buffers2

r_framebuffer_t* rstate_t::buffers2[DOWNSAMPLE_PASSES]

Definition at line 125 of file r_state.h.

Referenced by R_DrawBloom(), and R_InitFBObjects().

◆ color_array

GLfloat* rstate_t::color_array

◆ color_array_enabled

bool rstate_t::color_array_enabled

◆ combine2_program

r_program_t* rstate_t::combine2_program

Definition at line 137 of file r_state.h.

Referenced by R_BlurStack(), R_DrawBloom(), and R_InitPrograms().

◆ convolve_program

r_program_t* rstate_t::convolve_program

Definition at line 136 of file r_state.h.

Referenced by R_Blur(), and R_InitPrograms().

◆ draw_glow_enabled

bool rstate_t::draw_glow_enabled

Definition at line 159 of file r_state.h.

Referenced by R_EnableDrawAsGlow(), R_SetDefaultState(), and R_UpdateGlowBufferBinding().

◆ dynamic_lighting_enabled

bool rstate_t::dynamic_lighting_enabled

◆ fog_enabled

◆ frameBufferObjectsInitialized

bool rstate_t::frameBufferObjectsInitialized

◆ fullscreen

bool rstate_t::fullscreen

Definition at line 97 of file r_state.h.

◆ geoscape_program

r_program_t* rstate_t::geoscape_program

Definition at line 135 of file r_state.h.

Referenced by R_Draw3DGlobe(), and R_InitPrograms().

◆ glowmap_enabled

bool rstate_t::glowmap_enabled

◆ index_array

GLint* rstate_t::index_array

Definition at line 103 of file r_state.h.

Referenced by R_ReallocateStateArrays().

◆ lighting_enabled

◆ model_program

r_program_t* rstate_t::model_program

◆ multisample_enabled

bool rstate_t::multisample_enabled

Definition at line 150 of file r_state.h.

Referenced by R_EnableMultisample().

◆ next_normal_array

GLfloat* rstate_t::next_normal_array

Definition at line 107 of file r_state.h.

Referenced by R_BindDefaultArray(), and R_ReallocateStateArrays().

◆ next_tangent_array

GLfloat* rstate_t::next_tangent_array

Definition at line 108 of file r_state.h.

Referenced by R_BindDefaultArray(), and R_ReallocateStateArrays().

◆ next_vertex_array_3d

GLfloat* rstate_t::next_vertex_array_3d

Definition at line 106 of file r_state.h.

Referenced by R_BindDefaultArray(), and R_ReallocateStateArrays().

◆ normal_array

GLfloat* rstate_t::normal_array

Definition at line 104 of file r_state.h.

Referenced by R_BindDefaultArray(), R_DrawSurfaceStage(), and R_ReallocateStateArrays().

◆ programs

r_program_t rstate_t::programs[MAX_PROGRAMS]

Definition at line 131 of file r_state.h.

Referenced by R_InitPrograms(), R_LoadProgram(), and R_ShutdownPrograms().

◆ renderBuffer

r_framebuffer_t* rstate_t::renderBuffer

Definition at line 120 of file r_state.h.

Referenced by R_InitFBObjects().

◆ renderbuffer_enabled

bool rstate_t::renderbuffer_enabled

renderbuffer vs screen as render target

Definition at line 164 of file r_state.h.

Referenced by R_EnableRenderbuffer(), R_RenderbufferEnabled(), and R_SetDefaultState().

◆ roughnessmap_enabled

bool rstate_t::roughnessmap_enabled

Definition at line 162 of file r_state.h.

Referenced by R_DrawAliasModel(), R_EnableRoughnessMap(), and R_SetDefaultState().

◆ shaders

r_shader_t rstate_t::shaders[MAX_SHADERS]

Definition at line 130 of file r_state.h.

Referenced by R_InitPrograms(), and R_LoadShader().

◆ shell_enabled

bool rstate_t::shell_enabled

Definition at line 148 of file r_state.h.

Referenced by R_EnableShell(), and R_SetDefaultState().

◆ simple_glow_program

r_program_t* rstate_t::simple_glow_program

Definition at line 139 of file r_state.h.

Referenced by R_EnableGlowMap(), and R_InitPrograms().

◆ specularmap_enabled

bool rstate_t::specularmap_enabled

Definition at line 161 of file r_state.h.

Referenced by R_DrawAliasModel(), R_EnableSpecularMap(), and R_SetDefaultState().

◆ stencil_test_enabled

bool rstate_t::stencil_test_enabled

Definition at line 153 of file r_state.h.

Referenced by R_EnableStencilTest(), and R_SetDefaultState().

◆ tangent_array

GLfloat* rstate_t::tangent_array

Definition at line 105 of file r_state.h.

Referenced by R_BindDefaultArray(), R_DrawSurfaceStage(), and R_ReallocateStateArrays().

◆ texunits

◆ vertex_array_2d

GLshort* rstate_t::vertex_array_2d

Definition at line 101 of file r_state.h.

Referenced by R_Draw2DArray(), R_FontDrawTexture(), and R_ReallocateStateArrays().

◆ vertex_array_3d

◆ warp_enabled

bool rstate_t::warp_enabled

Definition at line 155 of file r_state.h.

Referenced by R_EnableWarp(), and R_SetDefaultState().

◆ warp_program

r_program_t* rstate_t::warp_program

◆ world_program


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