UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
rstate_s Struct Reference

#include <r_state.h>

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_sactive_normalmap
 

Detailed Description

Definition at line 96 of file r_state.h.

Field Documentation

const material_t* rstate_s::active_material

Definition at line 145 of file r_state.h.

Referenced by R_SetDefaultState(), and R_UseMaterial().

const r_framebuffer_t* rstate_s::activeFramebuffer

Definition at line 127 of file r_state.h.

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

bool rstate_s::alpha_test_enabled

Definition at line 152 of file r_state.h.

Referenced by R_EnableAlphaTest(), and R_SetDefaultState().

bool rstate_s::animation_enabled

Definition at line 163 of file r_state.h.

Referenced by R_EnableAnimation(), and R_SetDefaultState().

int rstate_s::array_size

Definition at line 111 of file r_state.h.

Referenced by R_DrawBspNormals(), and R_ReallocateStateArrays().

r_program_t* rstate_s::atmosphere_program

Definition at line 138 of file r_state.h.

Referenced by R_Draw3DGlobe(), and R_InitPrograms().

GLenum rstate_s::blend_dest

Definition at line 143 of file r_state.h.

Referenced by R_BlendFunc(), and R_SetDefaultState().

GLenum rstate_s::blend_src

Definition at line 143 of file r_state.h.

Referenced by R_BlendFunc(), and R_SetDefaultState().

r_framebuffer_t* rstate_s::bloomBuffer0

Definition at line 121 of file r_state.h.

r_framebuffer_t* rstate_s::bloomBuffer1

Definition at line 122 of file r_state.h.

bool rstate_s::blur_enabled

Definition at line 157 of file r_state.h.

Referenced by R_EnableBlur(), and R_SetDefaultState().

r_framebuffer_t* rstate_s::buffers0[DOWNSAMPLE_PASSES]

Definition at line 123 of file r_state.h.

Referenced by R_DrawBloom(), and R_InitFBObjects().

r_framebuffer_t* rstate_s::buffers1[DOWNSAMPLE_PASSES]

Definition at line 124 of file r_state.h.

Referenced by R_DrawBloom(), and R_InitFBObjects().

r_framebuffer_t* rstate_s::buffers2[DOWNSAMPLE_PASSES]

Definition at line 125 of file r_state.h.

Referenced by R_DrawBloom(), and R_InitFBObjects().

GLfloat* rstate_s::color_array
bool rstate_s::color_array_enabled
r_program_t* rstate_s::combine2_program

Definition at line 137 of file r_state.h.

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

r_program_t* rstate_s::convolve_program

Definition at line 136 of file r_state.h.

Referenced by R_Blur(), and R_InitPrograms().

bool rstate_s::draw_glow_enabled

Definition at line 159 of file r_state.h.

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

bool rstate_s::dynamic_lighting_enabled
bool rstate_s::frameBufferObjectsInitialized
bool rstate_s::fullscreen

Definition at line 97 of file r_state.h.

r_program_t* rstate_s::geoscape_program

Definition at line 135 of file r_state.h.

Referenced by R_Draw3DGlobe(), and R_InitPrograms().

bool rstate_s::glowmap_enabled
GLint* rstate_s::index_array

Definition at line 103 of file r_state.h.

Referenced by R_ReallocateStateArrays().

r_program_t* rstate_s::model_program
bool rstate_s::multisample_enabled

Definition at line 150 of file r_state.h.

Referenced by R_EnableMultisample().

GLfloat* rstate_s::next_normal_array

Definition at line 107 of file r_state.h.

Referenced by R_BindDefaultArray(), and R_ReallocateStateArrays().

GLfloat* rstate_s::next_tangent_array

Definition at line 108 of file r_state.h.

Referenced by R_BindDefaultArray(), and R_ReallocateStateArrays().

GLfloat* rstate_s::next_vertex_array_3d

Definition at line 106 of file r_state.h.

Referenced by R_BindDefaultArray(), and R_ReallocateStateArrays().

GLfloat* rstate_s::normal_array

Definition at line 104 of file r_state.h.

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

r_program_t rstate_s::programs[MAX_PROGRAMS]

Definition at line 131 of file r_state.h.

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

r_framebuffer_t* rstate_s::renderBuffer

Definition at line 120 of file r_state.h.

Referenced by R_InitFBObjects().

bool rstate_s::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().

bool rstate_s::roughnessmap_enabled

Definition at line 162 of file r_state.h.

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

r_shader_t rstate_s::shaders[MAX_SHADERS]

Definition at line 130 of file r_state.h.

Referenced by R_InitPrograms(), and R_LoadShader().

bool rstate_s::shell_enabled

Definition at line 148 of file r_state.h.

Referenced by R_EnableShell(), and R_SetDefaultState().

r_program_t* rstate_s::simple_glow_program

Definition at line 139 of file r_state.h.

Referenced by R_EnableGlowMap(), and R_InitPrograms().

bool rstate_s::specularmap_enabled

Definition at line 161 of file r_state.h.

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

bool rstate_s::stencil_test_enabled

Definition at line 153 of file r_state.h.

Referenced by R_EnableStencilTest(), and R_SetDefaultState().

GLfloat* rstate_s::tangent_array

Definition at line 105 of file r_state.h.

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

GLshort* rstate_s::vertex_array_2d

Definition at line 101 of file r_state.h.

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

bool rstate_s::warp_enabled

Definition at line 155 of file r_state.h.

Referenced by R_EnableWarp(), and R_SetDefaultState().

r_program_t* rstate_s::warp_program

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