#include "gl.h"
Go to the source code of this file.
Macros | |
#define | E(x) case GL_##x: str = "GL_"#x; break; |
Variables | |
glRefdef_t | glr |
glStatic_t | gl_static |
glConfig_t | gl_config |
statCounters_t | c |
entity_t | gl_world |
int | registration_sequence |
cvar_t * | gl_partscale |
cvar_t * | gl_partstyle |
cvar_t * | gl_celshading |
cvar_t * | gl_dotshading |
cvar_t * | gl_shadows |
cvar_t * | gl_modulate |
cvar_t * | gl_modulate_world |
cvar_t * | gl_coloredlightmaps |
cvar_t * | gl_brightness |
cvar_t * | gl_dynamic |
cvar_t * | gl_modulate_entities |
cvar_t * | gl_doublelight_entities |
cvar_t * | gl_fragment_program |
cvar_t * | gl_vertex_buffer_object |
cvar_t * | gl_fontshadow |
cvar_t * | gl_znear |
cvar_t * | gl_drawworld |
cvar_t * | gl_drawentities |
cvar_t * | gl_drawsky |
cvar_t * | gl_showtris |
cvar_t * | gl_showorigins |
cvar_t * | gl_showtearing |
cvar_t * | gl_cull_nodes |
cvar_t * | gl_cull_models |
cvar_t * | gl_clear |
cvar_t * | gl_finish |
cvar_t * | gl_hash_faces |
cvar_t * | gl_novis |
cvar_t * | gl_lockpvs |
cvar_t * | gl_lightmap |
cvar_t * | gl_fullbright |
cvar_t * | gl_vertexlight |
cvar_t * | gl_polyblend |
cvar_t * | gl_showerrors |
#define E | ( | x | ) | case GL_##x: str = "GL_"#x; break; |
glCullResult_t GL_CullBox | ( | vec3_t | bounds[2] | ) |
Definition at line 122 of file main.c.
Referenced by cull_lerped_model(), cull_static_model(), and GL_DrawBspModel().
glCullResult_t GL_CullLocalBox | ( | const vec3_t | origin, |
vec3_t | bounds[2] | ||
) |
Definition at line 185 of file main.c.
Referenced by cull_lerped_model(), cull_static_model(), and GL_DrawBspModel().
glCullResult_t GL_CullSphere | ( | const vec3_t | origin, |
float | radius | ||
) |
Definition at line 145 of file main.c.
Referenced by cull_lerped_model(), cull_static_model(), and GL_DrawBspModel().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 717 of file main.c.
Referenced by GL_Register().
|
static |
Definition at line 712 of file main.c.
Referenced by gl_modulate_changed(), and GL_Register().
void GL_MultMatrix | ( | GLfloat * | p, |
const GLfloat * | a, | ||
const GLfloat * | b | ||
) |
|
static |
Definition at line 730 of file main.c.
Referenced by GL_Register().
void GL_RotateForEntity | ( | vec3_t | origin, |
float | scale | ||
) |
|
static |
qboolean GL_ShowErrors | ( | const char * | func | ) |
Definition at line 539 of file main.c.
Referenced by create_surface_vbo(), GL_InitImages(), GL_InitPrograms(), GL_LoadWorld(), GL_SetupConfig(), R_BeginFrame_GL(), R_EndFrame_GL(), and R_RenderFrame_GL().
Definition at line 803 of file main.c.
Referenced by R_Shutdown_GL().
|
static |
Definition at line 695 of file main.c.
Referenced by GL_Register().
|
inlinestatic |
Definition at line 531 of file main.c.
Referenced by create_surface_vbo(), and GL_InitPrograms().
void R_AddDecal_GL | ( | decal_t * | d | ) |
void R_BeginRegistration_GL | ( | const char * | name | ) |
qboolean R_Init_GL | ( | qboolean | total | ) |
qboolean R_InterceptKey_GL | ( | unsigned | key, |
qboolean | down | ||
) |
Definition at line 1145 of file main.c.
Referenced by R_RegisterFunctionsGL().
void R_RegisterFunctionsGL | ( | ) |
void R_RenderFrame_GL | ( | refdef_t * | fd | ) |
void R_Shutdown_GL | ( | qboolean | total | ) |
Definition at line 30 of file main.c.
Referenced by AC_FreeChecks(), AC_SendChecks(), BSP_ClusterVis(), CheckBlock(), CL_ConnectionlessPacket(), CL_GetDemoInfo(), CL_Heatbeam(), CL_OldRailTrail(), CL_RailSpiral(), CL_Record_f(), CL_WriteConfig_f(), clamp_output(), CM_InitBoxHull(), Cmd_EchoEx_f(), Cmd_UnAlias_f(), COM_Compress(), Com_Generic_c(), Com_HashString(), Com_HashStringLen(), COM_IsFloat(), COM_IsPath(), COM_IsUint(), COM_IsWhite(), COM_Parse(), COM_strclr(), compute_cluster_aabbs(), Con_DrawLine(), Con_Paste(), cull_lerped_model(), cull_static_model(), Cvar_BitInfo(), Cvar_Default_g(), Cvar_Get(), Cvar_List_f(), Cvar_Set_f(), Cvar_Variable_g(), D_FlushCaches(), draw_alias_mesh(), draw_char(), dummy_find_slot(), escape_path(), format_mask(), FS_NormalizePath(), FS_UnLink_f(), G_FindTeams(), get_emissive_shell(), GL_BindTexture(), GL_ColorInvertTexture(), GL_DrawBspModel(), GL_DrawFace(), GL_DrawLeaf(), GL_DrawNode(), GL_Flush2D(), GL_Flush3D(), GL_ForceTexture(), GL_GrayScaleTexture(), GL_LightScaleTexture(), GL_MarkLeaves(), GL_TextureAnimation(), GL_TextureHasAlpha(), GL_Upload32(), GL_WorldNode_r(), IMG_Load(), Info_SetValueForKey(), Info_SubValidate(), Info_Validate(), inject_model_lights(), Key_Bind_f(), KeyDown(), KeyUp(), left_of(), LM_RebuildSurfaces(), logfile_write(), MSG_ReadByte(), MSG_ReadChar(), MSG_ReadLong(), MSG_ReadShort(), MSG_ReadString(), MSG_ReadStringLine(), MSG_ReadWord(), MSG_WriteByte(), MSG_WriteChar(), MSG_WriteLong(), MSG_WriteShort(), MVD_Connect_f(), MVD_Control_f(), MVD_CountClients(), MVD_Play_f(), MVD_StreamedRecord_f(), needs_quotes(), Parse_Action(), Parse_Bind(), Parse_Bitmap(), Parse_Color(), parse_CSV_line(), Parse_Field(), parse_ignore_nick(), Parse_Pairs(), Parse_Range(), Parse_Savegame(), Parse_Spin(), Parse_Style(), Parse_Toggle(), Q_memccpy(), Q_strchrnul(), R_BeginFrame_GL(), R_DrawChar_GL(), R_DrawChar_RTX(), R_DrawFill32(), R_DrawFill8(), R_DrawFill8_GL(), R_DrawFill8_RTX(), R_DrawString(), R_DrawString_GL(), R_DrawString_RTX(), R_IMFlatShadedQuad(), R_LightScaleTexture(), R_RecursiveWorldNode(), R_TextureAnimation(), sample_spherical_lights(), SCR_Draw_f(), SCR_LagDraw(), SCR_ParseColor(), SetupRotationMatrix(), SV_ConnectionlessPacket(), SV_CvarResult_f(), SV_DumpEnts_f(), SV_ExecuteClientMessage(), SV_ExecuteUserCommand(), SV_MvdRecord_f(), SV_NewClientExecuteMove(), SV_StuffCvar_f(), SZ_WriteByte(), SZ_WriteLong(), SZ_WriteShort(), target_string_use(), TH_DrawString(), UI_DrawRect8(), UnionBounds(), update_dynamic_lightmap(), and validate_char().
cvar_t* gl_brightness |
Definition at line 45 of file main.c.
Referenced by CL_Begin(), CL_ClearState(), gl_lightmap_changed(), and GL_Register().
cvar_t* gl_celshading |
Definition at line 39 of file main.c.
Referenced by draw_celshading(), GL_Register(), and setup_celshading().
cvar_t* gl_clear |
Definition at line 73 of file main.c.
Referenced by GL_Register(), and R_BeginFrame_GL().
cvar_t* gl_coloredlightmaps |
Definition at line 44 of file main.c.
Referenced by gl_lightmap_changed(), and GL_Register().
glConfig_t gl_config |
Definition at line 29 of file main.c.
Referenced by draw_shadow(), gl_anisotropy_changed(), GL_InitPrograms(), GL_PostInit(), GL_SetFilterAndRepeat(), GL_SetupConfig(), GL_ShutdownPrograms(), GL_Strings_f(), GL_Upload32(), GL_UpscaleLevel(), R_EndFrame_GL(), R_Init_GL(), and R_Shutdown_GL().
cvar_t* gl_cull_models |
Definition at line 72 of file main.c.
Referenced by GL_CullBox(), GL_CullLocalBox(), GL_CullSphere(), and GL_Register().
cvar_t* gl_cull_nodes |
Definition at line 71 of file main.c.
Referenced by GL_DrawWorld(), GL_Register(), and R_RenderFrame_GL().
cvar_t* gl_dotshading |
Definition at line 40 of file main.c.
Referenced by GL_Register(), and setup_dotshading().
cvar_t* gl_doublelight_entities |
Definition at line 51 of file main.c.
Referenced by GL_LightPoint(), and GL_Register().
cvar_t* gl_drawentities |
Definition at line 59 of file main.c.
Referenced by GL_DrawEntities(), and GL_Register().
cvar_t* gl_drawsky |
Definition at line 60 of file main.c.
Referenced by GL_Register(), and R_SetSky_GL().
cvar_t* gl_drawworld |
Definition at line 58 of file main.c.
Referenced by GL_Register(), and R_RenderFrame_GL().
cvar_t* gl_dynamic |
Definition at line 46 of file main.c.
Referenced by GL_DrawBspModel(), GL_DrawNode(), GL_Register(), LM_EndBuilding(), LM_RebuildSurfaces(), and R_RenderFrame_GL().
cvar_t* gl_finish |
Definition at line 74 of file main.c.
Referenced by GL_Register(), and R_BeginFrame_GL().
cvar_t* gl_fontshadow |
Definition at line 54 of file main.c.
Referenced by draw_char(), and GL_Register().
cvar_t* gl_fragment_program |
Definition at line 52 of file main.c.
Referenced by GL_InitPrograms(), GL_Register(), R_EndFrame_GL(), and R_Init_GL().
cvar_t* gl_fullbright |
Definition at line 79 of file main.c.
Referenced by build_surface_light(), GL_LightPoint(), GL_RebuildLighting(), GL_Register(), LM_EndBuilding(), and upload_world_surfaces().
cvar_t* gl_hash_faces |
Definition at line 75 of file main.c.
Referenced by GL_DrawNode(), and GL_Register().
cvar_t* gl_lightmap |
Definition at line 78 of file main.c.
Referenced by GL_BindArrays(), GL_DrawFace(), GL_Register(), and R_RenderFrame_GL().
cvar_t* gl_lockpvs |
Definition at line 77 of file main.c.
Referenced by GL_MarkLeaves(), and GL_Register().
cvar_t* gl_modulate |
Definition at line 42 of file main.c.
Referenced by gl_lightmap_changed(), gl_modulate_entities_changed(), and GL_Register().
cvar_t* gl_modulate_entities |
Definition at line 50 of file main.c.
Referenced by CL_Begin(), CL_ClearState(), gl_modulate_entities_changed(), and GL_Register().
cvar_t* gl_modulate_world |
Definition at line 43 of file main.c.
Referenced by CL_Begin(), CL_ClearState(), gl_lightmap_changed(), and GL_Register().
cvar_t* gl_novis |
Definition at line 76 of file main.c.
Referenced by GL_MarkLeaves(), and GL_Register().
cvar_t* gl_partscale |
Definition at line 37 of file main.c.
Referenced by GL_DrawParticles(), and GL_Register().
cvar_t* gl_partstyle |
Definition at line 38 of file main.c.
Referenced by GL_DrawParticles(), and GL_Register().
cvar_t* gl_polyblend |
Definition at line 81 of file main.c.
Referenced by GL_Register(), and R_RenderFrame_GL().
cvar_t* gl_shadows |
Definition at line 41 of file main.c.
Referenced by GL_Register(), and setup_shadow().
cvar_t* gl_showerrors |
Definition at line 82 of file main.c.
Referenced by GL_Register(), and GL_ShowErrors().
cvar_t* gl_showorigins |
Definition at line 62 of file main.c.
Referenced by GL_DrawEntities(), and GL_Register().
cvar_t* gl_showtearing |
Definition at line 63 of file main.c.
Referenced by GL_Register(), and R_EndFrame_GL().
cvar_t* gl_showtris |
Definition at line 61 of file main.c.
Referenced by draw_alias_mesh(), GL_DrawParticles(), GL_Flush2D(), GL_Flush3D(), and GL_Register().
glStatic_t gl_static |
Definition at line 28 of file main.c.
Referenced by _GL_LightPoint(), build_style_map(), build_surface_light(), color_for_surface(), create_surface_vbo(), draw_shadow(), GL_AdjustColor(), GL_BindArrays(), GL_BuildIntensityTable(), GL_CopyVerts(), GL_DrawEntities(), GL_DrawFace(), gl_drawsky_changed(), GL_DrawWorld(), GL_Flush3D(), GL_FreeWorld(), GL_Frustum(), GL_InitImages(), GL_InitPrograms(), GL_InitTables(), GL_LightPoint(), GL_LoadWorld(), GL_MarkLeaves(), gl_modulate_entities_changed(), GL_RebuildLighting(), GL_SetDefaultState(), GL_Setup3D(), GL_ShutdownImages(), GL_ShutdownPrograms(), GL_StateBits(), LM_RebuildSurfaces(), MakeSkyVec(), MOD_LoadMD2_GL(), R_BeginRegistration_GL(), R_EndRegistration_GL(), R_RenderFrame_GL(), R_Shutdown_GL(), set_world_size(), and upload_world_surfaces().
cvar_t* gl_vertex_buffer_object |
Definition at line 53 of file main.c.
Referenced by GL_PostInit(), GL_Register(), and R_Shutdown_GL().
cvar_t* gl_vertexlight |
Definition at line 80 of file main.c.
Referenced by build_surface_light(), GL_RebuildLighting(), GL_Register(), LM_EndBuilding(), R_RenderFrame_GL(), and upload_world_surfaces().
entity_t gl_world |
Definition at line 32 of file main.c.
Referenced by GL_DrawAlphaFaces(), and GL_DrawWorld().
cvar_t* gl_znear |
Definition at line 57 of file main.c.
Referenced by GL_Frustum(), and GL_Register().
glRefdef_t glr |
Definition at line 27 of file main.c.
Referenced by _GL_LightPoint(), build_style_map(), cull_lerped_model(), cull_static_model(), draw_alias_mesh(), GL_Blend(), GL_ClipNode(), GL_CullBox(), GL_CullLocalBox(), GL_CullSphere(), GL_DrawAliasModel(), GL_DrawAlphaFaces(), GL_DrawBeams(), GL_DrawBspModel(), GL_DrawEntities(), GL_DrawLeaf(), GL_DrawNode(), GL_DrawNullModel(), GL_DrawParticles(), GL_DrawSpriteModel(), GL_DrawWorld(), GL_Frustum(), GL_MarkLeaves(), gl_novis_changed(), GL_RotateForEntity(), GL_RotateForViewer(), GL_SampleLightPoint(), GL_Setup3D(), GL_SetupFrustum(), GL_StateBits(), GL_TextureAnimation(), GL_ViewCluster_m(), GL_WorldNode_r(), make_box_points(), MakeSkyVec(), R_AddSkySurface(), R_BeginRegistration_GL(), R_RenderFrame_GL(), sample_surface_verts(), setup_celshading(), setup_color(), setup_dotshading(), setup_shadow(), texnum_for_mesh(), and update_dynamic_lightmap().
int registration_sequence |
Definition at line 34 of file main.c.
Referenced by enqueue_stretch_pic(), find_or_load_image(), GL_LoadWorld(), GL_PostInit(), IMG_FreeUnused(), MOD_FreeUnused(), MOD_Reference_GL(), MOD_Reference_RTX(), R_BeginRegistration_GL(), R_BeginRegistration_RTX(), R_Init_RTX(), R_InitImages(), R_RegisterModel(), and R_RegisterRawImage().