#include "gl_local.h"
Go to the source code of this file.
Macros | |
#define | NUM_BEAM_SEGS 6 |
#define NUM_BEAM_SEGS 6 |
void Com_Printf | ( | char * | fmt, |
... | |||
) |
Definition at line 1758 of file gl_rmain.c.
struct image_s* Draw_FindPic | ( | char * | name | ) |
Definition at line 35 of file r_draw.c.
Referenced by Draw_GetPicSize(), Draw_InitLocal(), Draw_Pic(), Draw_StretchPic(), Draw_TileClear(), and GetRefAPI().
refexport_t GetRefAPI | ( | refimport_t | rimp | ) |
Definition at line 1702 of file gl_rmain.c.
void GL_DrawParticles | ( | int | num_particles, |
const particle_t | particles[], | ||
const unsigned | colortable[768] | ||
) |
void MYgluPerspective | ( | GLdouble | fovy, |
GLdouble | aspect, | ||
GLdouble | zNear, | ||
GLdouble | zFar | ||
) |
void R_BeginFrame | ( | float | camera_separation | ) |
void R_BeginRegistration | ( | char * | map | ) |
Definition at line 146 of file gl_rmain.c.
Referenced by R_DrawBrushModel(), and R_RecursiveWorldNode().
Definition at line 1611 of file gl_rmain.c.
Referenced by R_DrawEntitiesOnList().
Definition at line 808 of file gl_rmain.c.
Referenced by R_RenderView().
Definition at line 1120 of file gl_rmain.c.
Referenced by GetRefAPI().
Definition at line 981 of file gl_rmain.c.
Referenced by R_Init().
struct model_s* R_RegisterModel | ( | char * | name | ) |
struct image_s* R_RegisterSkin | ( | char * | name | ) |
Definition at line 564 of file r_image.c.
Referenced by GetRefAPI().
Definition at line 973 of file gl_rmain.c.
Referenced by GetRefAPI().
Definition at line 160 of file gl_rmain.c.
Referenced by R_DrawAliasModel(), R_DrawBrushModel(), and R_DrawNullModel().
void R_SetPalette | ( | const unsigned char * | palette | ) |
Definition at line 613 of file gl_rmain.c.
Referenced by R_RenderFrame(), and R_RenderView().
void Sys_Error | ( | char * | error, |
... | |||
) |
Definition at line 1746 of file gl_rmain.c.
Referenced by COM_BlockSequenceCheckByte(), COM_BlockSequenceCRCByte(), Com_Error(), Hunk_Alloc(), Hunk_Begin(), Hunk_End(), Qcommon_Init(), and Sys_FindFirst().
void UpdateHardwareGamma | ( | ) |
Referenced by R_BeginFrame().
int c_alias_polys |
Definition at line 49 of file gl_rmain.c.
Referenced by R_RenderView(), and R_SetupFrame().
int c_brush_polys |
Definition at line 49 of file gl_rmain.c.
Referenced by GL_RenderLightmappedPoly(), R_DrawAlphaSurfaces(), R_RenderBrushPoly(), R_RenderView(), and R_SetupFrame().
entity_t* currententity |
Definition at line 41 of file gl_rmain.c.
Referenced by R_DrawEntitiesOnList(), R_DrawNullModel(), and R_DrawSpriteModel().
model_t* currentmodel |
Definition at line 42 of file gl_rmain.c.
Referenced by GL_BuildPolygonFromSurface(), Mod_LoadFaces(), R_AliasDrawModel(), R_AliasSetupFrames(), R_AliasSetupSkin(), R_BlendLightmaps(), R_BuildPolygonFromSurface(), R_CullAliasModel(), R_DrawAliasModel(), R_DrawAlphaSurfaces(), R_DrawBrushModel(), R_DrawEntitiesOnList(), R_DrawInlineBModel(), R_DrawSprite(), R_DrawSpriteModel(), R_DrawWorld(), R_RenderFace(), and R_RenderWorld().
cplane_t frustum[4] |
Definition at line 44 of file gl_rmain.c.
Referenced by R_CullAliasModel(), R_CullBox(), and R_SetFrustum().
cvar_t* gl_3dlabs_broken |
Definition at line 133 of file gl_rmain.c.
Referenced by R_Init(), and R_Register().
cvar_t* gl_allow_software |
Definition at line 86 of file gl_rmain.c.
Referenced by GLimp_InitGL(), and R_Register().
cvar_t* gl_bitdepth |
Definition at line 104 of file gl_rmain.c.
Referenced by GLimp_BeginFrame(), GLimp_SetMode(), and R_Register().
cvar_t* gl_clear |
Definition at line 121 of file gl_rmain.c.
Referenced by R_Clear(), and R_Register().
glconfig_t gl_config |
Definition at line 35 of file gl_rmain.c.
Referenced by Draw_Pic(), Draw_StretchPic(), Draw_StretchRaw(), Draw_TileClear(), GL_InitImages(), GL_Strings_f(), QGL_Init(), R_BeginFrame(), R_Init(), and R_SetMode().
cvar_t* gl_cull |
Definition at line 122 of file gl_rmain.c.
Referenced by R_Register(), and R_SetupGL().
cvar_t* gl_drawbuffer |
Definition at line 105 of file gl_rmain.c.
Referenced by GLimp_EndFrame(), R_BeginFrame(), and R_Register().
cvar_t* gl_driver |
Definition at line 106 of file gl_rmain.c.
Referenced by R_Init(), and R_Register().
cvar_t* gl_dynamic |
Definition at line 111 of file gl_rmain.c.
Referenced by GL_RenderLightmappedPoly(), R_BlendLightmaps(), R_Register(), and R_RenderBrushPoly().
cvar_t* gl_ext_compiled_vertex_array |
Definition at line 101 of file gl_rmain.c.
Referenced by R_Register().
cvar_t* gl_ext_multitexture |
Definition at line 99 of file gl_rmain.c.
Referenced by R_Init(), and R_Register().
cvar_t* gl_ext_palettedtexture |
Definition at line 98 of file gl_rmain.c.
Referenced by R_Init(), and R_Register().
cvar_t* gl_ext_pointparameters |
Definition at line 100 of file gl_rmain.c.
Referenced by R_DrawParticles(), R_Init(), and R_Register().
cvar_t* gl_ext_swapinterval |
Definition at line 97 of file gl_rmain.c.
Referenced by R_Register().
cvar_t* gl_finish |
Definition at line 120 of file gl_rmain.c.
Referenced by R_Register(), and R_RenderView().
cvar_t* gl_flashblend |
Definition at line 124 of file gl_rmain.c.
Referenced by R_DrawInlineBModel(), R_PushDlights(), R_Register(), and R_RenderDlights().
cvar_t* gl_lightmap |
Definition at line 107 of file gl_rmain.c.
Referenced by R_BlendLightmaps(), R_DrawWorld(), and R_Register().
cvar_t* gl_lockpvs |
Definition at line 131 of file gl_rmain.c.
Referenced by R_MarkLeaves(), and R_Register().
cvar_t* gl_log |
Definition at line 103 of file gl_rmain.c.
Referenced by R_BeginFrame(), and R_Register().
cvar_t* gl_mode |
Definition at line 110 of file gl_rmain.c.
Referenced by R_BeginFrame(), R_Register(), and R_SetMode().
cvar_t* gl_modulate |
Definition at line 113 of file gl_rmain.c.
Referenced by R_BuildLightMap(), R_LightPoint(), R_Register(), and RecursiveLightPoint().
cvar_t* gl_monolightmap |
Definition at line 112 of file gl_rmain.c.
Referenced by GL_BeginBuildingLightmaps(), R_BlendLightmaps(), R_BuildLightMap(), R_DrawAliasModel(), R_Init(), and R_Register().
cvar_t* gl_nobind |
Definition at line 114 of file gl_rmain.c.
Referenced by GL_Bind(), and R_Register().
cvar_t* gl_nosubimage |
Definition at line 85 of file gl_rmain.c.
Referenced by R_Register().
cvar_t* gl_particle_att_a |
Definition at line 93 of file gl_rmain.c.
Referenced by GL_SetDefaultState(), and R_Register().
cvar_t* gl_particle_att_b |
Definition at line 94 of file gl_rmain.c.
Referenced by GL_SetDefaultState(), and R_Register().
cvar_t* gl_particle_att_c |
Definition at line 95 of file gl_rmain.c.
Referenced by GL_SetDefaultState(), and R_Register().
cvar_t* gl_particle_max_size |
Definition at line 91 of file gl_rmain.c.
Referenced by GL_SetDefaultState(), and R_Register().
cvar_t* gl_particle_min_size |
Definition at line 90 of file gl_rmain.c.
Referenced by GL_SetDefaultState(), and R_Register().
cvar_t* gl_particle_size |
Definition at line 92 of file gl_rmain.c.
Referenced by R_DrawParticles(), and R_Register().
cvar_t* gl_picmip |
Definition at line 116 of file gl_rmain.c.
Referenced by R_Register().
cvar_t* gl_playermip |
Definition at line 125 of file gl_rmain.c.
Referenced by R_Register().
cvar_t* gl_polyblend |
Definition at line 123 of file gl_rmain.c.
Referenced by R_PolyBlend(), and R_Register().
cvar_t* gl_round_down |
Definition at line 115 of file gl_rmain.c.
Referenced by GL_Upload32(), and R_Register().
cvar_t* gl_saturatelighting |
Definition at line 126 of file gl_rmain.c.
Referenced by R_BlendLightmaps(), and R_Register().
cvar_t* gl_shadows |
Definition at line 108 of file gl_rmain.c.
Referenced by R_Clear(), R_DrawAliasModel(), and R_Register().
cvar_t* gl_showtris |
Definition at line 118 of file gl_rmain.c.
Referenced by R_DrawTriangleOutlines(), and R_Register().
cvar_t* gl_skymip |
Definition at line 117 of file gl_rmain.c.
Referenced by R_Register(), and R_SetSky().
glstate_t gl_state |
Definition at line 36 of file gl_rmain.c.
Referenced by GL_BeginBuildingLightmaps(), GL_Bind(), GL_BuildPalettedTexture(), GL_InitImages(), GL_MBind(), GL_RenderLightmappedPoly(), GL_SelectTexture(), GL_TexEnv(), GL_UpdateSwapInterval(), GLimp_BeginFrame(), GLimp_InitGL(), GLimp_SetMode(), GLimp_Shutdown(), LM_UploadBlock(), MYgluPerspective(), R_BeginFrame(), R_BlendLightmaps(), R_DrawAlphaSurfaces(), R_DrawBrushModel(), R_DrawWorld(), R_Init(), R_RenderBrushPoly(), and R_SetMode().
cvar_t* gl_stencilshadow |
Definition at line 109 of file gl_rmain.c.
Referenced by GL_DrawAliasShadow(), R_Clear(), and R_Register().
cvar_t* gl_swapinterval |
Definition at line 127 of file gl_rmain.c.
Referenced by GL_UpdateSwapInterval(), and R_Register().
cvar_t* gl_texturealphamode |
Definition at line 129 of file gl_rmain.c.
Referenced by GL_SetDefaultState(), R_BeginFrame(), and R_Register().
cvar_t* gl_texturemode |
Definition at line 128 of file gl_rmain.c.
Referenced by GL_SetDefaultState(), R_BeginFrame(), and R_Register().
cvar_t* gl_texturesolidmode |
Definition at line 130 of file gl_rmain.c.
Referenced by GL_SetDefaultState(), R_BeginFrame(), and R_Register().
cvar_t* gl_vertex_arrays |
Definition at line 88 of file gl_rmain.c.
Referenced by GL_DrawAliasFrameLerp(), and R_Register().
cvar_t* gl_ztrick |
Definition at line 119 of file gl_rmain.c.
Referenced by R_Clear(), and R_Register().
float gldepthmax |
Definition at line 33 of file gl_rmain.c.
Referenced by R_Clear().
float gldepthmin |
Definition at line 33 of file gl_rmain.c.
Referenced by R_Clear(), and R_DrawAliasModel().
int QGL_TEXTURE0 |
Definition at line 29 of file gl_rmain.c.
Referenced by GL_EnableMultitexture(), GL_MBind(), GL_RenderLightmappedPoly(), GL_SelectTexture(), R_DrawBrushModel(), R_DrawWorld(), and R_Init().
int QGL_TEXTURE1 |
Definition at line 29 of file gl_rmain.c.
Referenced by GL_BeginBuildingLightmaps(), GL_EnableMultitexture(), GL_RenderLightmappedPoly(), R_DrawBrushModel(), R_DrawWorld(), and R_Init().
float r_base_world_matrix[16] |
Definition at line 64 of file gl_rmain.c.
cvar_t* r_drawentities |
Definition at line 74 of file gl_rmain.c.
Referenced by R_DrawEntitiesOnList(), and R_Register().
cvar_t* r_drawworld |
Definition at line 75 of file gl_rmain.c.
Referenced by R_DrawWorld(), R_Register(), and R_RenderWorld().
int r_framecount |
Definition at line 47 of file gl_rmain.c.
Referenced by D_CacheSurface(), GL_BeginBuildingLightmaps(), GL_RenderLightmappedPoly(), R_BuildLightMap(), R_ClipEdge(), R_EmitEdge(), R_EmitSkyBox(), R_PushDlights(), R_RecursiveWorldNode(), R_RenderBrushPoly(), R_RenderDlights(), R_RenderFace(), and R_SetupFrame().
cvar_t* r_fullbright |
Definition at line 77 of file gl_rmain.c.
Referenced by R_BlendLightmaps(), R_BuildLightMap(), R_Register(), and R_SetupFrame().
cvar_t* r_lefthand |
Definition at line 81 of file gl_rmain.c.
Referenced by R_AliasDrawModel(), R_AliasPreparePoints(), R_DrawAliasModel(), and R_Register().
cvar_t* r_lerpmodels |
Definition at line 80 of file gl_rmain.c.
Referenced by R_AliasDrawModel(), R_DrawAliasModel(), and R_Register().
cvar_t* r_lightlevel |
Definition at line 83 of file gl_rmain.c.
Referenced by R_AliasSetupLighting(), R_DrawAliasModel(), R_Register(), and R_SetLightLevel().
refdef_t r_newrefdef |
Definition at line 69 of file gl_rmain.c.
Referenced by D_CacheSurface(), D_CalcGradients(), D_ViewChanged(), D_WarpScreen(), DrawGLFlowingPoly(), EmitWaterPolys(), GL_BeginBuildingLightmaps(), GL_RenderLightmappedPoly(), R_AddDynamicLights(), R_AliasPreparePoints(), R_AliasSetupLighting(), R_BuildLightMap(), R_BuildPolygonFromSurface(), R_DrawAliasModel(), R_DrawBrushModel(), R_DrawEntitiesOnList(), R_DrawInlineBModel(), R_DrawParticles(), R_DrawSkyBox(), R_DrawWorld(), R_LightPoint(), R_PolygonDrawSpans(), R_PolysetDrawSpans8_Opaque(), R_PushDlights(), R_RecursiveClipBPoly(), R_RecursiveWorldNode(), R_RenderBrushPoly(), R_RenderDlights(), R_RenderView(), R_RenderWorld(), R_SetCacheState(), R_SetFrustum(), R_SetLightLevel(), R_SetupFrame(), R_SetupGL(), R_ViewChanged(), RecursiveLightPoint(), and Turbulent8().
cvar_t* r_nocull |
Definition at line 79 of file gl_rmain.c.
Referenced by R_CullBox(), and R_Register().
cvar_t* r_norefresh |
Definition at line 73 of file gl_rmain.c.
Referenced by R_Register(), and R_RenderView().
image_t* r_notexture |
Definition at line 38 of file gl_rmain.c.
Referenced by GL_FreeUnusedImages(), GL_LoadWal(), Mod_LoadTexinfo(), R_DrawAliasModel(), R_InitParticleTexture(), and R_SetSky().
cvar_t* r_novis |
Definition at line 78 of file gl_rmain.c.
Referenced by R_Register().
int r_oldviewcluster |
Definition at line 71 of file gl_rmain.c.
Referenced by R_SetupFrame().
int r_oldviewcluster2 |
Definition at line 71 of file gl_rmain.c.
Referenced by R_SetupFrame().
vec3_t r_origin |
Definition at line 61 of file gl_rmain.c.
Referenced by D_DrawSurfaces(), D_SolidSurf(), D_TurbulentSurf(), DrawSkyPolygon(), GL_DrawParticles(), R_AddSkySurface(), R_AliasSetUpTransform(), R_BuildPolygonFromSurface(), R_ClipAndDrawPoly(), R_DrawAlphaSurfaces(), R_DrawParticle(), R_DrawSkyBox(), R_EmitSkyBox(), R_IMFlatShadedQuad(), R_RenderDlight(), R_RenderWorld(), R_SetFrustum(), R_SetupFrame(), and R_TransformPlane().
image_t* r_particletexture |
Definition at line 39 of file gl_rmain.c.
Referenced by GL_DrawParticles(), GL_FreeUnusedImages(), and R_InitParticleTexture().
unsigned r_rawpalette[256] |
Definition at line 1573 of file gl_rmain.c.
Referenced by Draw_StretchRaw(), and R_SetPalette().
cvar_t* r_speeds |
Definition at line 76 of file gl_rmain.c.
Referenced by R_Register(), and R_RenderView().
int r_viewcluster |
Definition at line 71 of file gl_rmain.c.
Referenced by R_BeginRegistration(), R_MarkLeaves(), and R_SetupFrame().
int r_viewcluster2 |
Definition at line 71 of file gl_rmain.c.
Referenced by R_SetupFrame().
int r_visframecount |
Definition at line 46 of file gl_rmain.c.
Referenced by R_MarkLeaves(), R_RecursiveClipBPoly(), and R_RecursiveWorldNode().
float r_world_matrix[16] |
Definition at line 63 of file gl_rmain.c.
Referenced by R_DrawAlphaSurfaces(), and R_SetupGL().
model_t* r_worldmodel |
Definition at line 31 of file gl_rmain.c.
Referenced by Mod_ForName(), R_BeginRegistration(), R_BlendLightmaps(), R_BuildLightMap(), R_DrawAlphaSurfaces(), R_DrawWorld(), R_LightPoint(), R_MarkLeaves(), R_MarkLights(), R_PushDlights(), R_RecursiveWorldNode(), R_RenderView(), R_RenderWorld(), R_SetupFrame(), and RecursiveLightPoint().
refimport_t ri |
Definition at line 27 of file gl_rmain.c.
Referenced by CalcSurfaceExtents(), ClipSkyPolygon(), Com_Printf(), D_SCAlloc(), D_SCDump(), DDRAW_Init(), DDRAW_SetPalette(), DDRAW_Shutdown(), DIB_Init(), DIB_SetPalette(), Draw_Char(), Draw_Fill(), Draw_GetPalette(), Draw_Pic(), Draw_StretchPic(), Draw_StretchPicImplementation(), Draw_TileClear(), GetRefAPI(), GL_CreateSurfaceLightmap(), GL_ImageList_f(), GL_InitImages(), GL_LoadPic(), GL_LoadWal(), GL_ScreenShot_f(), GL_Strings_f(), GL_TextureAlphaMode(), GL_TextureMode(), GL_TextureSolidMode(), GL_Upload32(), GL_Upload8(), GLimp_BeginFrame(), GLimp_EnableLogging(), GLimp_EndFrame(), GLimp_Init(), GLimp_InitGL(), GLimp_SetMode(), GLimp_Shutdown(), LM_UploadBlock(), LoadPCX(), LoadTGA(), Mod_ForName(), Mod_LoadAliasModel(), Mod_LoadBrushModel(), Mod_LoadEdges(), Mod_LoadFaces(), Mod_LoadLeafs(), Mod_LoadMarksurfaces(), Mod_LoadNodes(), Mod_LoadPlanes(), Mod_LoadSpriteModel(), Mod_LoadSubmodels(), Mod_LoadSurfedges(), Mod_LoadTexinfo(), Mod_LoadVertexes(), Mod_Modellist_f(), Mod_PointInLeaf(), QGL_Init(), R_AliasDrawModel(), R_AliasSetupFrames(), R_AliasSetupSkin(), R_BeginFrame(), R_BeginRegistration(), R_BlendLightmaps(), R_BuildLightMap(), R_ClipAndDrawPoly(), R_CullAliasModel(), R_DrawAliasModel(), R_DrawEntitiesOnList(), R_DrawSprite(), R_DrawSpriteModel(), R_FindFreeImage(), R_ImageList_f(), R_Init(), R_InitCaches(), R_InitSkyBox(), R_LoadWal(), R_PrintAliasStats(), R_PrintDSpeeds(), R_PrintTimes(), R_RecursiveClipBPoly(), R_Register(), R_RenderView(), R_ScreenShot_f(), R_SetMode(), R_Shutdown(), SubdividePolygon(), SWimp_SetMode(), SWimp_Shutdown(), Sys_Error(), Sys_MakeCodeWriteable(), VID_CreateWindow(), VID_LoadRefresh(), and WritePCXfile().
float v_blend[4] |
Definition at line 51 of file gl_rmain.c.
Referenced by R_PolyBlend(), R_RenderDlight(), R_SetupFrame(), and SV_AddBlend().
viddef_t vid |
Definition at line 25 of file gl_rmain.c.
Referenced by BlendParticle33(), BlendParticle66(), D_Patch(), D_ViewChanged(), D_WarpScreen(), DDRAW_Init(), DDRAW_Shutdown(), DIB_Init(), Draw_Char(), Draw_FadeScreen(), Draw_Fill(), Draw_Pic(), Draw_StretchPicImplementation(), Draw_TileClear(), GL_ScreenShot_f(), R_BeginFrame(), R_DrawParticle(), R_DrawSpanlet33(), R_DrawSpanlet66(), R_DrawSpanletConstant33(), R_DrawSpanletTurbulentBlended33(), R_DrawSpanletTurbulentBlended66(), R_DrawSurfaceBlock8_mip0(), R_DrawSurfaceBlock8_mip1(), R_DrawSurfaceBlock8_mip2(), R_DrawSurfaceBlock8_mip3(), R_InitCaches(), R_PolysetDrawSpans8_33(), R_PolysetDrawSpans8_66(), R_PolysetDrawSpans8_Opaque(), R_PolysetDrawSpansConstant8_33(), R_PolysetDrawSpansConstant8_66(), R_PolysetDrawThreshSpans8(), R_ScreenShot_f(), R_SetGL2D(), R_SetMode(), R_SetupFrame(), R_SetupGL(), SWimp_EndFrame(), and SWimp_InitGraphics().
cvar_t* vid_fullscreen |
Definition at line 135 of file gl_rmain.c.
Referenced by GLimp_AppActivate(), R_BeginFrame(), R_Register(), R_SetMode(), SWimp_AppActivate(), VID_CreateWindow(), and VID_MenuInit().
cvar_t* vid_gamma |
Definition at line 136 of file gl_rmain.c.
Referenced by ApplyChanges(), R_BeginFrame(), R_Register(), and VID_MenuInit().
cvar_t* vid_ref |
Definition at line 137 of file gl_rmain.c.
Referenced by ApplyChanges(), BrightnessCallback(), R_Register(), and VID_MenuInit().
vec3_t vpn |
Definition at line 59 of file gl_rmain.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), GL_DrawParticles(), R_AliasSetUpTransform(), R_DrawParticles(), R_DrawSprite(), R_RenderDlight(), R_RotateBmodel(), R_SetFrustum(), R_SetupFrame(), R_TransformFrustum(), and TransformVector().
vec3_t vright |
Definition at line 60 of file gl_rmain.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), GL_DrawParticles(), R_AliasSetUpTransform(), R_DrawParticles(), R_DrawSprite(), R_DrawSpriteModel(), R_RenderDlight(), R_RotateBmodel(), R_SetFrustum(), R_SetupFrame(), R_TransformFrustum(), and TransformVector().
vec3_t vup |
Definition at line 58 of file gl_rmain.c.
Referenced by D_SolidSurf(), D_TurbulentSurf(), GL_DrawParticles(), R_AliasSetUpTransform(), R_DrawParticles(), R_DrawSprite(), R_DrawSpriteModel(), R_RenderDlight(), R_RotateBmodel(), R_SetFrustum(), R_SetupFrame(), R_TransformFrustum(), RotatePointAroundVector(), and TransformVector().