![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "svbsp.h"#include "r_stats.h"#include "r_modules.h"#include "meshqueue.h"#include "gl_backend.h"Go to the source code of this file.
Data Structures | |
| struct | r_framebufferstate_t |
| struct | r_refdef_scene_t |
| struct | r_refdef_t |
| struct | r_refdef_view_t |
| struct | r_refdef_viewcache_t |
| struct | r_rendertarget_t |
| struct | r_viewport_t |
| struct | r_waterstate_t |
| struct | r_waterstate_waterplane_t |
| struct | rmesh_t |
| struct | rsurfacestate_t |
Macros | |
| #define | BATCHNEED_ALLOWMULTIDRAW (1<<10) |
| #define | BATCHNEED_ALWAYSCOPY (1<< 9) |
| #define | BATCHNEED_ARRAY_LIGHTMAP (1<< 6) |
| #define | BATCHNEED_ARRAY_NORMAL (1<< 1) |
| #define | BATCHNEED_ARRAY_SKELETAL (1<< 7) |
| #define | BATCHNEED_ARRAY_TEXCOORD (1<< 5) |
| #define | BATCHNEED_ARRAY_VECTOR (1<< 2) |
| #define | BATCHNEED_ARRAY_VERTEX (1<< 0) |
| #define | BATCHNEED_ARRAY_VERTEXCOLOR (1<< 4) |
| #define | BATCHNEED_ARRAY_VERTEXTINTCOLOR (1<< 3) |
| #define | BATCHNEED_NOGAPS (1<< 8) |
| #define | BOTTOM_RANGE 96 |
| #define | FOGMASKTABLEWIDTH 1024 |
| #define | gl_alpha_format 4 |
| #define | gl_solid_format 3 |
| #define | SHADERPERMUTATION_ALPHAGEN_VERTEX (1u<<29) |
| alphaGen vertex | |
| #define | SHADERPERMUTATION_ALPHAKILL (1u<<22) |
| (deferredgeometry) discard pixel if diffuse texture alpha below 0.5, (generic) apply global alpha | |
| #define | SHADERPERMUTATION_BLOOM (1u<<12) |
| bloom (postprocessing only) | |
| #define | SHADERPERMUTATION_BOUNCEGRID (1u<<25) |
| (lightmap) use Texture_BounceGrid as an additional source of ambient light | |
| #define | SHADERPERMUTATION_BOUNCEGRIDDIRECTIONAL (1u<<26) |
| (lightmap) use 16-component pixels in bouncegrid texture for directional lighting rather than standard 4-component | |
| #define | SHADERPERMUTATION_COLORMAPPING (1u<<3) |
| indicates this is a colormapped skin | |
| #define | SHADERPERMUTATION_COUNT 32u |
| size of shaderpermutationinfo array | |
| #define | SHADERPERMUTATION_CUBEFILTER (1u<<10) |
| (lightsource) use cubemap light filter | |
| #define | SHADERPERMUTATION_DEFERREDLIGHTMAP (1u<<21) |
| (lightmap) read Texture_ScreenDiffuse/Specular textures and add them on top of lightmapping | |
| #define | SHADERPERMUTATION_DEPTHRGB (1u<<28) |
| read/write depth values in RGB color coded format for older hardware without depth samplers | |
| #define | SHADERPERMUTATION_DIFFUSE (1u<<0) |
| (lightsource) whether to use directional shading | |
| #define | SHADERPERMUTATION_FOGALPHAHACK (1u<<8) |
| fog color and density determined by texture mapped on vertical axis | |
| #define | SHADERPERMUTATION_FOGHEIGHTTEXTURE (1u<<7) |
| fog color and density determined by texture mapped on vertical axis | |
| #define | SHADERPERMUTATION_FOGINSIDE (1u<<5) |
| tint the color by fog color or black if using additive blend mode | |
| #define | SHADERPERMUTATION_FOGOUTSIDE (1u<<6) |
| tint the color by fog color or black if using additive blend mode | |
| #define | SHADERPERMUTATION_GAMMARAMPS (1u<<9) |
| gamma (postprocessing only) | |
| #define | SHADERPERMUTATION_GLOW (1u<<11) |
| (lightmap) blend in an additive glow texture | |
| #define | SHADERPERMUTATION_NORMALMAPSCROLLBLEND (1u<<24) |
| (water) counter-direction normalmaps scrolling | |
| #define | SHADERPERMUTATION_OCCLUDE (1u<<31) |
| use occlusion buffer for corona | |
| #define | SHADERPERMUTATION_OFFSETMAPPING (1u<<16) |
| adjust texcoords to roughly simulate a displacement mapped surface | |
| #define | SHADERPERMUTATION_OFFSETMAPPING_RELIEFMAPPING (1u<<17) |
| adjust texcoords to accurately simulate a displacement mapped surface (requires OFFSETMAPPING to also be set!) | |
| #define | SHADERPERMUTATION_POSTPROCESSING (1u<<14) |
| user defined postprocessing (postprocessing only) | |
| #define | SHADERPERMUTATION_REFLECTCUBE (1u<<23) |
| fake reflections using global cubemap (not HDRI light probe) | |
| #define | SHADERPERMUTATION_REFLECTION (1u<<15) |
| normalmap-perturbed reflection of the scene infront of the surface, preformed as an overlay on the surface | |
| #define | SHADERPERMUTATION_SATURATION (1u<<4) |
| saturation (postprocessing only) | |
| #define | SHADERPERMUTATION_SHADOWMAP2D (1u<<18) |
| (lightsource) use shadowmap texture as light filter | |
| #define | SHADERPERMUTATION_SHADOWMAPORTHO (1u<<20) |
| (lightsource) use orthographic shadowmap projection | |
| #define | SHADERPERMUTATION_SHADOWMAPVSDCT (1u<<19) |
| (lightsource) use virtual shadow depth cube texture for shadowmap indexing | |
| #define | SHADERPERMUTATION_SKELETAL (1u<<30) |
| (skeletal models) use skeletal matrices to deform vertices (gpu-skinning) | |
| #define | SHADERPERMUTATION_SPECULAR (1u<<13) |
| (lightsource or deluxemapping) render specular effects | |
| #define | SHADERPERMUTATION_TRIPPY (1u<<27) |
| use trippy vertex shader effect | |
| #define | SHADERPERMUTATION_VERTEXTEXTUREBLEND (1u<<1) |
| indicates this is a two-layer material blend based on vertex alpha (q3bsp) | |
| #define | SHADERPERMUTATION_VIEWTINT (1u<<2) |
| view tint (postprocessing only), use vertex colors (generic only) | |
| #define | TOP_RANGE 16 |
Functions | |
| void | CL_VM_DrawHud (double frametime) |
| qbool | CL_VM_UpdateView (double frametime) |
| dp_font_t * | FindFont (const char *title, qbool allocate_new) |
| void | FOG_clear (void) |
| void | Font_Init (void) |
| void | gl_backend_init (void) |
| void | GL_Draw_Init (void) |
| void | GL_Main_Init (void) |
| void | GL_Surf_Init (void) |
| void | LoadFont (qbool override, const char *name, dp_font_t *fnt, float scale, float voffset) |
| void | Mod_RenderInit (void) |
| void | R_AnimCache_CacheVisibleEntities (void) |
| generate animcache data for all entities marked visible | |
| void | R_AnimCache_ClearCache (void) |
| clear the animcache pointers on all known render entities | |
| void | R_AnimCache_Free (void) |
| free all R_AnimCache memory | |
| qbool | R_AnimCache_GetEntity (entity_render_t *ent, qbool wantnormals, qbool wanttangents) |
| get the skeletal data or cached animated mesh data for an entity (optionally with normals and tangents) | |
| void | R_BufferData_NewFrame (void) |
| begin a new frame (recycle old buffers) | |
| void | R_BufferData_Reset (void) |
| free all dynamic vertex/index/uniform buffers | |
| r_meshbuffer_t * | R_BufferData_Store (size_t size, const void *data, r_bufferdata_type_t type, int *returnbufferoffset) |
| request space in a vertex/index/uniform buffer for the chosen data, returns the buffer pointer and offset, always successful | |
| void | R_BuildLightMap (const entity_render_t *ent, msurface_t *surface, int combine) |
| void | R_CalcBeam_Vertex3f (float *vert, const float *org1, const float *org2, float width) |
| void | R_CalcSprite_Vertex3f (float *vertex3f, const vec3_t origin, const vec3_t left, const vec3_t up, float scalex1, float scalex2, float scaley1, float scaley2) |
| qbool | R_CanSeeBox (int numsamples, vec_t eyejitter, vec_t entboxenlarge, vec_t entboxexpand, vec_t pad, vec3_t eye, vec3_t entboxmins, vec3_t entboxmaxs) |
| qbool | R_CompileShader_CheckStaticParms (void) |
| qbool | R_CullBox (const vec3_t mins, const vec3_t maxs, int numplanes, const mplane_t *planes) |
| qbool | R_CullFrustum (const vec3_t mins, const vec3_t maxs) |
| void | R_DebugLine (vec3_t start, vec3_t end) |
| void | R_DecalSystem_Reset (decalsystem_t *decalsystem) |
| void | R_DecalSystem_SplatEntities (const vec3_t org, const vec3_t normal, float r, float g, float b, float a, float s1, float t1, float s2, float t2, float size) |
| void | R_DrawCustomSurface (skinframe_t *skinframe, const matrix4x4_t *texmatrix, int materialflags, int firstvertex, int numvertices, int firsttriangle, int numtriangles, qbool writedepth, qbool prepass, qbool ui) |
| void | R_DrawCustomSurface_Texture (texture_t *texture, const matrix4x4_t *texmatrix, int materialflags, int firstvertex, int numvertices, int firsttriangle, int numtriangles, qbool writedepth, qbool prepass, qbool ui) |
| void | R_DrawExplosions (void) |
| void | R_DrawModelSurfaces (entity_render_t *ent, qbool skysurfaces, qbool writedepth, qbool depthonly, qbool debug, qbool prepass, qbool ui) |
| void | R_DrawParticles (void) |
| void | R_DrawPortals (void) |
| void | R_Explosion_Init (void) |
| void | R_FillColors (float *out, int verts, float r, float g, float b, float a) |
| void * | R_FrameData_Alloc (size_t size) |
| allocate some temporary memory for your purposes | |
| void | R_FrameData_NewFrame (void) |
| prepare for a new frame, recycles old buffers if a resize occurred previously | |
| void | R_FrameData_Reset (void) |
| free all R_FrameData memory | |
| void | R_FrameData_ReturnToMark (void) |
| discard recent memory allocations (rewind to marker) | |
| void | R_FrameData_SetMark (void) |
| set a marker that allows you to discard the following temporary memory allocations | |
| void * | R_FrameData_Store (size_t size, void *data) |
| allocate some temporary memory and copy this data into it | |
| rtexture_t * | R_GetCubemap (const char *basename) |
| texture_t * | R_GetCurrentTexture (texture_t *t) |
| r_refdef_scene_t * | R_GetScenePointer (r_refdef_scene_type_t scenetype) |
| void | R_GLSL_Restart_f (cmd_state_t *cmd) |
| void | R_HDR_UpdateIrisAdaptation (const vec3_t point) |
| void | R_LightningBeams_Init (void) |
| void | R_Mesh_AddBrushMeshFromPlanes (rmesh_t *mesh, int numplanes, mplane_t *planes) |
| void | R_Mesh_AddPolygon3f (rmesh_t *mesh, int numvertices, float *vertex3f) |
| void | R_Model_Sprite_Draw (entity_render_t *ent) |
| void | R_ModulateColors (float *in, float *out, int verts, float r, float g, float b) |
| void | R_NewExplosion (const vec3_t org) |
| void | R_Particles_Init (void) |
| void | R_RenderScene (int viewfbo, rtexture_t *viewdepthtexture, rtexture_t *viewcolortexture, int viewx, int viewy, int viewwidth, int viewheight) |
| void | R_RenderTarget_FreeUnused (qbool force) |
| r_rendertarget_t * | R_RenderTarget_Get (int texturewidth, int textureheight, textype_t depthtextype, qbool depthisrenderbuffer, textype_t colortextype0, textype_t colortextype1, textype_t colortextype2, textype_t colortextype3) |
| void | R_RenderView (int fbo, rtexture_t *depthtexture, rtexture_t *colortexture, int x, int y, int width, int height) |
| void | R_RenderView_UpdateViewVectors (void) |
| void | R_RenderWaterPlanes (int viewfbo, rtexture_t *viewdepthtexture, rtexture_t *viewcolortexture, int viewx, int viewy, int viewwidth, int viewheight) |
| void | R_ResetSkyBox (void) |
| void | R_ResetViewRendering2D (int viewfbo, rtexture_t *viewdepthtexture, rtexture_t *viewcolortexture, int viewx, int viewy, int viewwidth, int viewheight) |
| void | R_ResetViewRendering2D_Common (int viewfbo, rtexture_t *viewdepthtexture, rtexture_t *viewcolortexture, int viewx, int viewy, int viewwidth, int viewheight, float x2, float y2) |
| void | R_ResetViewRendering3D (int viewfbo, rtexture_t *viewdepthtexture, rtexture_t *viewcolortexture, int viewx, int viewy, int viewwidth, int viewheight) |
| void | R_SelectScene (r_refdef_scene_type_t scenetype) |
| int | R_SetSkyBox (const char *sky) |
| void | R_SetupShader_DeferredLight (const rtlight_t *rtlight) |
| void | R_SetupShader_DepthOrShadow (qbool notrippy, qbool depthrgb, qbool skeletal) |
| void | R_SetupShader_Generic (rtexture_t *t, qbool usegamma, qbool notrippy, qbool suppresstexalpha) |
| void | R_SetupShader_Generic_NoTexture (qbool usegamma, qbool notrippy) |
| void | R_SetupShader_Surface (const float ambientcolor[3], const float diffusecolor[3], const float specularcolor[3], rsurfacepass_t rsurfacepass, int texturenumsurfaces, const msurface_t **texturesurfacelist, void *waterplane, qbool notrippy, qbool ui) |
| void | R_SetupView (qbool allowwaterclippingplane, int viewfbo, rtexture_t *viewdepthtexture, rtexture_t *viewcolortexture, int viewx, int viewy, int viewwidth, int viewheight) |
| void | R_Shadow_EditLights_DrawSelectedLightProperties (void) |
| int | R_Shadow_GetRTLightInfo (unsigned int lightindex, float *origin, float *radius, float *color) |
| void | R_Shadow_Init (void) |
| void | R_Shadow_UpdateBounceGridTexture (void) |
| skinframe_t * | R_SkinFrame_Find (const char *name, int textureflags, int comparewidth, int compareheight, int comparecrc, qbool add) |
| skinframe_t * | R_SkinFrame_FindNextByName (skinframe_t *last, const char *name) |
| skinframe_t * | R_SkinFrame_LoadExternal (const char *name, int textureflags, qbool complain, qbool fallbacknotexture) |
| skinframe_t * | R_SkinFrame_LoadExternal_SkinFrame (skinframe_t *skinframe, const char *name, int textureflags, qbool complain, qbool fallbacknotexture) |
| skinframe_t * | R_SkinFrame_LoadInternal8bit (const char *name, int textureflags, const unsigned char *skindata, int width, int height, const unsigned int *palette, const unsigned int *alphapalette) |
| skinframe_t * | R_SkinFrame_LoadInternalBGRA (const char *name, int textureflags, const unsigned char *skindata, int width, int height, int comparewidth, int compareheight, int comparecrc, qbool sRGB) |
| skinframe_t * | R_SkinFrame_LoadInternalQuake (const char *name, int textureflags, int loadpantsandshirt, int loadglowtexture, const unsigned char *skindata, int width, int height) |
| skinframe_t * | R_SkinFrame_LoadInternalUsingTexture (const char *name, int textureflags, rtexture_t *tex, int width, int height, qbool sRGB) |
| skinframe_t * | R_SkinFrame_LoadMissing (void) |
| skinframe_t * | R_SkinFrame_LoadNoTexture (void) |
| void | R_SkinFrame_MarkUsed (skinframe_t *skinframe) |
| void | R_SkinFrame_PrepareForPurge (void) |
| void | R_SkinFrame_Purge (void) |
| void | R_SkinFrame_PurgeSkinFrame (skinframe_t *skinframe) |
| void | R_Sky (void) |
| void | R_Sky_Init (void) |
| void | R_SkyStartFrame (void) |
| void | R_Stain (const vec3_t origin, float radius, int cr1, int cg1, int cb1, int ca1, int cr2, int cg2, int cb2, int ca2) |
| void | R_Textures_Init (void) |
| void | R_TimeReport (const char *name) |
| void | R_UpdateFog (void) |
| void | R_UpdateVariables (void) |
| void | R_View_WorldVisibility (qbool forcenovis) |
| void | R_Water_AddWaterPlane (msurface_t *surface, int entno) |
| void | Render_Init (void) |
| void | RSurf_ActiveCustomEntity (const matrix4x4_t *matrix, const matrix4x4_t *inversematrix, int entflags, double shadertime, float r, float g, float b, float a, int numvertices, const float *vertex3f, const float *texcoord2f, const float *normal3f, const float *svector3f, const float *tvector3f, const float *color4f, int numtriangles, const int *element3i, const unsigned short *element3s, qbool wantnormals, qbool wanttangents) |
| void | RSurf_ActiveModelEntity (const entity_render_t *ent, qbool wantnormals, qbool wanttangents, qbool prepass) |
| void | RSurf_DrawBatch (void) |
| float | RSurf_FogPoint (const float *v) |
| float | RSurf_FogVertex (const float *v) |
| void | RSurf_PrepareVerticesForBatch (int batchneed, int texturenumsurfaces, const msurface_t **texturesurfacelist) |
| void | RSurf_SetupDepthAndCulling (bool ui) |
| void | RSurf_UploadBuffersForBatch (void) |
| void | Sbar_Init (void) |
| void | SCR_DrawConsole (void) |
| void | SHOWLMP_decodehide (void) |
| void | SHOWLMP_decodeshow (void) |
| void | SHOWLMP_drawall (void) |
| #define BATCHNEED_ALLOWMULTIDRAW (1<<10) |
Definition at line 795 of file render.h.
Referenced by R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_DepthOnly(), R_DrawTextureSurfaceList_Sky(), R_Mod_DrawShadowMap(), R_SetupShader_Surface(), and RSurf_PrepareVerticesForBatch().
| #define BATCHNEED_ALWAYSCOPY (1<< 9) |
Definition at line 794 of file render.h.
Referenced by R_DrawTextureSurfaceList_ShowSurfaces(), and RSurf_PrepareVerticesForBatch().
| #define BATCHNEED_ARRAY_LIGHTMAP (1<< 6) |
Definition at line 791 of file render.h.
Referenced by R_SetupShader_Surface(), and RSurf_PrepareVerticesForBatch().
| #define BATCHNEED_ARRAY_NORMAL (1<< 1) |
Definition at line 786 of file render.h.
Referenced by R_DrawDebugModel(), R_SetupShader_Surface(), R_Water_AddWaterPlane(), and RSurf_PrepareVerticesForBatch().
| #define BATCHNEED_ARRAY_SKELETAL (1<< 7) |
Definition at line 792 of file render.h.
Referenced by RSurf_PrepareVerticesForBatch().
| #define BATCHNEED_ARRAY_TEXCOORD (1<< 5) |
Definition at line 790 of file render.h.
Referenced by R_SetupShader_Surface(), and RSurf_PrepareVerticesForBatch().
| #define BATCHNEED_ARRAY_VECTOR (1<< 2) |
Definition at line 787 of file render.h.
Referenced by R_DrawDebugModel(), R_SetupShader_Surface(), and RSurf_PrepareVerticesForBatch().
| #define BATCHNEED_ARRAY_VERTEX (1<< 0) |
Definition at line 785 of file render.h.
Referenced by R_DrawDebugModel(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_DepthOnly(), R_DrawTextureSurfaceList_ShowSurfaces(), R_DrawTextureSurfaceList_Sky(), R_Mod_DrawShadowMap(), R_SetupShader_Surface(), R_Shadow_RenderLighting_VisibleLighting(), R_Water_AddWaterPlane(), RSurf_FindWaterPlaneForSurface(), and RSurf_PrepareVerticesForBatch().
| #define BATCHNEED_ARRAY_VERTEXCOLOR (1<< 4) |
Definition at line 789 of file render.h.
Referenced by R_DrawTextureSurfaceList_ShowSurfaces(), R_SetupShader_Surface(), and RSurf_PrepareVerticesForBatch().
| #define BATCHNEED_NOGAPS (1<< 8) |
Definition at line 793 of file render.h.
Referenced by R_DrawDebugModel(), R_DrawTextureSurfaceList_Sky(), R_Shadow_RenderLighting_VisibleLighting(), R_Water_AddWaterPlane(), and RSurf_PrepareVerticesForBatch().
| #define BOTTOM_RANGE 96 |
Definition at line 183 of file render.h.
Referenced by M_Setup_Draw().
| #define FOGMASKTABLEWIDTH 1024 |
Definition at line 428 of file render.h.
Referenced by R_BuildFogTexture(), R_UpdateFog(), RSurf_ActiveCustomEntity(), RSurf_ActiveModelEntity(), RSurf_FogPoint(), and RSurf_FogVertex().
| #define SHADERPERMUTATION_ALPHAGEN_VERTEX (1u<<29) |
| #define SHADERPERMUTATION_ALPHAKILL (1u<<22) |
(deferredgeometry) discard pixel if diffuse texture alpha below 0.5, (generic) apply global alpha
Definition at line 95 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_BLOOM (1u<<12) |
| #define SHADERPERMUTATION_BOUNCEGRID (1u<<25) |
(lightmap) use Texture_BounceGrid as an additional source of ambient light
Definition at line 98 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_BOUNCEGRIDDIRECTIONAL (1u<<26) |
(lightmap) use 16-component pixels in bouncegrid texture for directional lighting rather than standard 4-component
Definition at line 99 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_COLORMAPPING (1u<<3) |
indicates this is a colormapped skin
Definition at line 76 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_COUNT 32u |
size of shaderpermutationinfo array
Definition at line 105 of file render.h.
Referenced by R_GLSL_CompilePermutation(), R_GLSL_DumpShader_f(), and R_SetupShader_SetPermutationGLSL().
| #define SHADERPERMUTATION_CUBEFILTER (1u<<10) |
(lightsource) use cubemap light filter
Definition at line 83 of file render.h.
Referenced by R_SetupShader_DeferredLight(), and R_SetupShader_Surface().
| #define SHADERPERMUTATION_DEFERREDLIGHTMAP (1u<<21) |
(lightmap) read Texture_ScreenDiffuse/Specular textures and add them on top of lightmapping
Definition at line 94 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_DEPTHRGB (1u<<28) |
read/write depth values in RGB color coded format for older hardware without depth samplers
Definition at line 101 of file render.h.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_DepthOrShadow(), and R_SetupShader_Surface().
| #define SHADERPERMUTATION_DIFFUSE (1u<<0) |
(lightsource) whether to use directional shading
Definition at line 73 of file render.h.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_Generic(), and R_SetupShader_Surface().
| #define SHADERPERMUTATION_FOGALPHAHACK (1u<<8) |
fog color and density determined by texture mapped on vertical axis
Definition at line 81 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_FOGHEIGHTTEXTURE (1u<<7) |
fog color and density determined by texture mapped on vertical axis
Definition at line 80 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_FOGINSIDE (1u<<5) |
tint the color by fog color or black if using additive blend mode
Definition at line 78 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_FOGOUTSIDE (1u<<6) |
tint the color by fog color or black if using additive blend mode
Definition at line 79 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_GAMMARAMPS (1u<<9) |
gamma (postprocessing only)
Definition at line 82 of file render.h.
Referenced by R_BlendView(), and R_SetupShader_Generic().
| #define SHADERPERMUTATION_GLOW (1u<<11) |
(lightmap) blend in an additive glow texture
Definition at line 84 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_NORMALMAPSCROLLBLEND (1u<<24) |
(water) counter-direction normalmaps scrolling
Definition at line 97 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_OCCLUDE (1u<<31) |
use occlusion buffer for corona
Definition at line 104 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_OFFSETMAPPING (1u<<16) |
adjust texcoords to roughly simulate a displacement mapped surface
Definition at line 89 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_OFFSETMAPPING_RELIEFMAPPING (1u<<17) |
adjust texcoords to accurately simulate a displacement mapped surface (requires OFFSETMAPPING to also be set!)
Definition at line 90 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_POSTPROCESSING (1u<<14) |
user defined postprocessing (postprocessing only)
Definition at line 87 of file render.h.
Referenced by R_BlendView().
| #define SHADERPERMUTATION_REFLECTCUBE (1u<<23) |
fake reflections using global cubemap (not HDRI light probe)
Definition at line 96 of file render.h.
Referenced by R_SetupShader_Generic(), and R_SetupShader_Surface().
| #define SHADERPERMUTATION_REFLECTION (1u<<15) |
normalmap-perturbed reflection of the scene infront of the surface, preformed as an overlay on the surface
Definition at line 88 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_SATURATION (1u<<4) |
saturation (postprocessing only)
Definition at line 77 of file render.h.
Referenced by R_BlendView().
| #define SHADERPERMUTATION_SHADOWMAP2D (1u<<18) |
(lightsource) use shadowmap texture as light filter
Definition at line 91 of file render.h.
Referenced by R_SetupShader_DeferredLight(), and R_SetupShader_Surface().
| #define SHADERPERMUTATION_SHADOWMAPORTHO (1u<<20) |
(lightsource) use orthographic shadowmap projection
Definition at line 93 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_SHADOWMAPVSDCT (1u<<19) |
(lightsource) use virtual shadow depth cube texture for shadowmap indexing
Definition at line 92 of file render.h.
Referenced by R_SetupShader_DeferredLight(), and R_SetupShader_Surface().
| #define SHADERPERMUTATION_SKELETAL (1u<<30) |
(skeletal models) use skeletal matrices to deform vertices (gpu-skinning)
Definition at line 103 of file render.h.
Referenced by R_SetupShader_DepthOrShadow(), and R_SetupShader_Surface().
| #define SHADERPERMUTATION_SPECULAR (1u<<13) |
(lightsource or deluxemapping) render specular effects
Definition at line 86 of file render.h.
Referenced by R_SetupShader_DeferredLight(), and R_SetupShader_Surface().
| #define SHADERPERMUTATION_TRIPPY (1u<<27) |
use trippy vertex shader effect
Definition at line 100 of file render.h.
Referenced by R_SetupShader_DepthOrShadow(), R_SetupShader_Generic(), and R_SetupShader_Surface().
| #define SHADERPERMUTATION_VERTEXTEXTUREBLEND (1u<<1) |
indicates this is a two-layer material blend based on vertex alpha (q3bsp)
Definition at line 74 of file render.h.
Referenced by R_SetupShader_Surface().
| #define SHADERPERMUTATION_VIEWTINT (1u<<2) |
view tint (postprocessing only), use vertex colors (generic only)
Definition at line 75 of file render.h.
Referenced by R_BlendView(), and R_SetupShader_Generic().
| #define TOP_RANGE 16 |
Definition at line 182 of file render.h.
Referenced by M_Setup_Draw().
| enum glsl_attrib |
Definition at line 27 of file render.h.
| enum r_bufferdata_type_t |
enum of the various types of hardware buffer object used in rendering note that the r_buffermegs[] array must be maintained to match this
Definition at line 523 of file render.h.
| Enumerator | |
|---|---|
| RST_CLIENT | |
| RST_MENU | |
| RST_COUNT | |
| enum r_viewport_type_t |
| Enumerator | |
|---|---|
| R_VIEWPORTTYPE_ORTHO | |
| R_VIEWPORTTYPE_PERSPECTIVE | |
| R_VIEWPORTTYPE_PERSPECTIVE_INFINITEFARCLIP | |
| R_VIEWPORTTYPE_PERSPECTIVECUBESIDE | |
| R_VIEWPORTTYPE_TOTAL | |
Definition at line 228 of file render.h.
| enum rsurfacepass_t |
| Enumerator | |
|---|---|
| RSURFPASS_BASE | |
| RSURFPASS_BACKGROUND | |
| RSURFPASS_RTLIGHT | |
| RSURFPASS_DEFERREDGEOMETRY | |
| enum shaderlanguage_t |
| enum shadermode_t |
this enum selects which of the glslshadermodeinfo entries should be used
Definition at line 50 of file render.h.
| void CL_VM_DrawHud | ( | double | frametime | ) |
Definition at line 541 of file csprogs.c.
References cl, cl_deathscoreboard, CLVM_prog, CSQC_SetGlobals(), prvm_prog_t::ExecuteProgram, frametime, key_dest, key_menu, OFS_PARM0, OFS_PARM1, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_G_FLOAT, PRVM_G_VECTOR, PRVM_GarbageCollection(), R_TimeReport(), sb_showscores, Sbar_DeathmatchOverlay(), self, STAT_HEALTH, time, VectorSet, vid_conheight, and vid_conwidth.
Referenced by SCR_DrawScreen().
| qbool CL_VM_UpdateView | ( | double | frametime | ) |
Definition at line 484 of file csprogs.c.
References cl, CL_VM_UpdateDmgGlobals(), CLVM_prog, csqc_lowres, csqc_main_r_refdef_view, csqc_original_r_refdef_view, CSQC_SetGlobals(), CSQC_UpdateView(), prvm_prog_t::ExecuteProgram, frametime, key_dest, key_game, prvm_prog_t::loaded, OFS_PARM0, OFS_PARM1, OFS_PARM2, prvm_prog_t::polygonbegin_guess2d, PRVM_clientfunction, PRVM_clientglobaledict, PRVM_clientglobalfloat, PRVM_G_FLOAT, PRVM_GarbageCollection(), r_refdef, R_RenderView_UpdateViewVectors(), R_TimeReport(), self, time, vid, vid_conheight, and vid_conwidth.
Referenced by SCR_DrawScreen().
Definition at line 481 of file gl_draw.c.
References Con_Printf(), developer_font, dp_fonts, dp_strlcpy, FONTS_EXPAND, fonts_mempool, Mem_Realloc, and NULL.
Referenced by LoadFont_f(), and VM_loadfont().
Definition at line 349 of file gl_rmain.c.
References Cvar_SetQuick(), GAME_NEHAHRA, gamemode, gl_fogblue, gl_fogdensity, gl_fogenable, gl_foggreen, gl_fogred, and r_refdef.
Referenced by CL_Fog_f(), CL_Fog_HeightTexture_f(), and CL_ParseEntityLump().
Definition at line 443 of file ft2.c.
References Cvar_RegisterVariable(), developer_font, Font_OpenLibrary(), r_font_compress, r_font_disable_freetype, r_font_disable_incmaps, r_font_diskcache, r_font_kerning, r_font_nonpoweroftwo, and r_font_size_snapping.
Referenced by Render_Init().
Definition at line 339 of file gl_backend.c.
References CF_CLIENT, Cmd_AddCommand(), Cvar_RegisterVariable(), gl_backend_devicelost(), gl_backend_devicerestored(), gl_backend_newmap(), gl_backend_shutdown(), gl_backend_start(), gl_debug, gl_paranoid, gl_polyblend, gl_printcheckerror, GL_VBOStats_f(), polygonelement3i, polygonelement3s, POLYGONELEMENTS_MAXPOINTS, quadelement3i, quadelement3s, QUADELEMENTS_MAXQUADS, R_RegisterModule(), r_render, r_renderview, r_waterwarp, and v_flipped.
Referenced by Render_Init().
Definition at line 747 of file gl_draw.c.
References CF_CLIENT, Cmd_AddCommand(), Cvar_RegisterVariable(), dp_fonts, dp_strlcpy, dpsnprintf(), FONT_CENTERPRINT, FONT_CHAT, FONT_CONSOLE, FONT_DEFAULT, FONT_INFOBAR, FONT_MENU, FONT_NOTIFY, FONT_SBAR, FONT_USER, fonts_mempool, gl_draw_newmap(), gl_draw_shutdown(), gl_draw_start(), LoadFont_f(), MAX_FONTS, MAX_USERFONTS, Mem_Alloc, Mem_AllocPool, NULL, r_font_always_reload, r_font_antialias, r_font_hinting, r_font_postprocess_blur, r_font_postprocess_outline, r_font_postprocess_shadow_x, r_font_postprocess_shadow_y, r_font_postprocess_shadow_z, r_nearest_2d, r_nearest_conchars, R_RegisterModule(), r_textbrightness, r_textcontrast, and r_textshadow.
Referenced by Render_Init().
Definition at line 3220 of file gl_rmain.c.
References CF_CLIENT, Cmd_AddCommand(), Cvar_RegisterVariable(), Cvar_SetQuick(), Cvar_SetValueQuick(), developer_texturelogging, GAME_NEHAHRA, GAME_TENEBRAE, gamemode, gl_fogblue, gl_fogdensity, gl_fogenable, gl_fogend, gl_foggreen, gl_fogred, gl_fogstart, gl_lightmaps, gl_main_newmap(), gl_main_shutdown(), gl_main_start(), gl_skyclip, Mem_AllocPool, NULL, r_batch_debugdynamicvertexpath, r_batch_dynamicbuffer, r_batch_multidraw, r_batch_multidraw_mintriangles, r_bloom, r_bloom_blur, r_bloom_brighten, r_bloom_colorexponent, r_bloom_colorscale, r_bloom_colorsubtract, r_bloom_resolution, r_bloom_scenebrightness, R_BUFFERDATA_COUNT, r_buffermegs, r_celoutlines, r_celshading, r_colorfringe, r_cullentities_trace, r_cullentities_trace_delay, r_cullentities_trace_enlarge, r_cullentities_trace_entityocclusion, r_cullentities_trace_expand, r_cullentities_trace_eyejitter, r_cullentities_trace_pad, r_cullentities_trace_samples, r_cullentities_trace_tempentitysamples, r_damageblur, r_deformvertexes, r_depthfirst, r_draw2d, r_drawentities, r_drawexteriormodel, r_drawfog, r_drawportals, r_drawviewmodel, r_drawworld, r_dynamic, r_farclip_base, r_farclip_world, r_fog_clear, r_fog_exp2, r_framedatasize, r_fullbright, r_fullbright_directed, r_fullbright_directed_ambient, r_fullbright_directed_diffuse, r_fullbright_directed_pitch, r_fullbright_directed_pitch_relative, r_fullbrights, r_fxaa, r_glsl_deluxemapping, R_GLSL_DumpShader_f(), r_glsl_offsetmapping, r_glsl_offsetmapping_lod, r_glsl_offsetmapping_lod_distance, r_glsl_offsetmapping_reliefmapping, r_glsl_offsetmapping_reliefmapping_refinesteps, r_glsl_offsetmapping_reliefmapping_steps, r_glsl_offsetmapping_scale, r_glsl_offsetmapping_steps, r_glsl_postprocess, r_glsl_postprocess_uservec1, r_glsl_postprocess_uservec1_enable, r_glsl_postprocess_uservec2, r_glsl_postprocess_uservec2_enable, r_glsl_postprocess_uservec3, r_glsl_postprocess_uservec3_enable, r_glsl_postprocess_uservec4, r_glsl_postprocess_uservec4_enable, R_GLSL_Restart_f(), r_glsl_saturation, r_glsl_saturation_redcompensate, r_glsl_skeletal, r_glsl_vertextextureblend_usebothalphas, r_hdr_glowintensity, r_hdr_irisadaptation, r_hdr_irisadaptation_fade_down, r_hdr_irisadaptation_fade_up, r_hdr_irisadaptation_maxvalue, r_hdr_irisadaptation_minvalue, r_hdr_irisadaptation_multiplier, r_hdr_irisadaptation_radius, r_hdr_irisadaptation_value, r_hdr_scenebrightness, R_InitShaderModeInfo(), r_lerplightstyles, r_lerpmodels, r_lerpsprites, r_main_mempool, r_motionblur, r_motionblur_averaging, r_motionblur_maxblur, r_motionblur_minblur, r_motionblur_mousefactor, r_motionblur_mousefactor_maxspeed, r_motionblur_mousefactor_minspeed, r_motionblur_randomize, r_motionblur_velocityfactor, r_motionblur_velocityfactor_maxspeed, r_motionblur_velocityfactor_minspeed, r_nearclip, r_nolerp_list, r_polygonoffset_decals_factor, r_polygonoffset_decals_offset, r_polygonoffset_submodel_factor, r_polygonoffset_submodel_offset, r_q1bsp_lightmap_updates_combine, r_q1bsp_lightmap_updates_enabled, r_q1bsp_lightmap_updates_hidden_surfaces, r_q1bsp_skymasking, R_RegisterModule(), r_rendertarget_debug, r_shadows, r_shadows_castfrombmodels, r_shadows_darken, r_shadows_drawafterrtlighting, r_shadows_focus, r_shadows_shadowmapbias, r_shadows_shadowmapscale, r_shadows_throwdirection, r_shadows_throwdistance, r_showbboxes, r_showbboxes_client, r_showcollisionbrushes, r_showcollisionbrushes_polygonfactor, r_showcollisionbrushes_polygonoffset, r_showdisabledepthtest, r_showlighting, r_shownormals, r_showoverdraw, r_showparticleedges, r_showspriteedges, r_showsurfaces, r_showtris, r_smoothnormals_areaweighting, r_sortentities, r_speeds, r_test, r_texture_dds_load, r_texture_dds_save, r_transparent, r_transparent_alphatocoverage, r_transparent_sortarraysize, r_transparent_sortmaxdist, r_transparent_sortmindist, r_transparent_sortsurfacesbynearest, r_transparent_useplanardistance, r_transparentdepthmasking, r_usedepthtextures, r_useinfinitefarclip, r_viewfbo, r_viewscale, r_viewscale_fpsscaling, r_viewscale_fpsscaling_min, r_viewscale_fpsscaling_multiply, r_viewscale_fpsscaling_stepmax, r_viewscale_fpsscaling_stepsize, r_viewscale_fpsscaling_target, r_water, r_water_cameraentitiesonly, r_water_clippingplanebias, r_water_hideplayer, r_water_lowquality, r_water_reflectdistort, r_water_refractdistort, r_water_resolutionmultiplier, r_water_scissormode, r_wateralpha, and r_waterscroll.
Referenced by Render_Init().
Definition at line 1564 of file gl_rsurf.c.
References CF_CLIENT, Cmd_AddCommand(), Cvar_RegisterVariable(), r_ambient, R_ListWorldTextures_f(), r_lockpvs, r_lockvisibility, r_q3bsp_renderskydepth, R_ReplaceWorldTexture_f(), r_useportalculling, r_usesurfaceculling, r_vis_trace, r_vis_trace_delay, r_vis_trace_enlarge, r_vis_trace_expand, r_vis_trace_eyejitter, r_vis_trace_pad, r_vis_trace_samples, and r_vis_trace_surfaces.
Referenced by Render_Init().
Definition at line 330 of file gl_draw.c.
References ft2_settings_t::antialias, ft2_settings_t::blur, CACHEPICFLAG_FAILONMISSING, CACHEPICFLAG_NEAREST, CACHEPICFLAG_NOCOMPRESSION, CACHEPICFLAG_QUIET, COM_ParseToken_Simple(), com_token, Con_DPrintf(), con_linewidth, dp_strlcpy, dpsnprintf(), Draw_CachePic_Flags(), Draw_IsPicLoaded(), drawtexturepool, dp_font_t::fallbacks, FONT_CONSOLE, Font_LoadFont(), Font_MapForIndex(), Font_SnapTo(), Font_UnloadFont(), FS_LoadFile(), dp_font_t::ft2, ft2_settings_t::hinting, max, MAX_FONT_FALLBACKS, MAX_FONT_SIZES, MAX_QPATH, dp_font_t::maxwidth, Mem_Free, name, NULL, ft2_settings_t::outline, dp_font_t::pic, r_font_antialias, r_font_hinting, r_font_postprocess_blur, r_font_postprocess_outline, r_font_postprocess_shadow_x, r_font_postprocess_shadow_y, r_font_postprocess_shadow_z, r_nearest_conchars, dp_font_t::req_face, ft2_settings_t::scale, scale, dp_font_t::settings, ft2_settings_t::shadowx, ft2_settings_t::shadowy, ft2_settings_t::shadowz, tempmempool, dp_font_t::texpath, ft2_settings_t::voffset, dp_font_t::width_of, and dp_font_t::width_of_ft2.
Referenced by gl_draw_start(), LoadFont_f(), and VM_loadfont().
Definition at line 206 of file model_shared.c.
References mod_newmap(), mod_shutdown(), mod_start(), NULL, and R_RegisterModule().
Referenced by Render_Init().
generate animcache data for all entities marked visible
Definition at line 3874 of file gl_rmain.c.
References R_AnimCache_GetEntity(), and r_refdef.
Referenced by R_RenderView(), and R_Water_ProcessPlanes().
clear the animcache pointers on all known render entities
Definition at line 3762 of file gl_rmain.c.
References entity_render_t::animcache_normal3f, entity_render_t::animcache_normal3f_bufferoffset, entity_render_t::animcache_normal3f_vertexbuffer, entity_render_t::animcache_skeletaltransform3x4, entity_render_t::animcache_skeletaltransform3x4buffer, entity_render_t::animcache_skeletaltransform3x4offset, entity_render_t::animcache_skeletaltransform3x4size, entity_render_t::animcache_svector3f, entity_render_t::animcache_svector3f_bufferoffset, entity_render_t::animcache_svector3f_vertexbuffer, entity_render_t::animcache_tvector3f, entity_render_t::animcache_tvector3f_bufferoffset, entity_render_t::animcache_tvector3f_vertexbuffer, entity_render_t::animcache_vertex3f, entity_render_t::animcache_vertex3f_bufferoffset, entity_render_t::animcache_vertex3f_vertexbuffer, NULL, and r_refdef.
Referenced by R_RenderView().
free all R_AnimCache memory
free all R_AnimCache memory
Definition at line 3758 of file gl_rmain.c.
Referenced by gl_main_shutdown(), and gl_main_start().
| qbool R_AnimCache_GetEntity | ( | entity_render_t * | ent, |
| qbool | wantnormals, | ||
| qbool | wanttangents ) |
get the skeletal data or cached animated mesh data for an entity (optionally with normals and tangents)
Definition at line 3789 of file gl_rmain.c.
References entity_render_t::animcache_normal3f, entity_render_t::animcache_skeletaltransform3x4, entity_render_t::animcache_skeletaltransform3x4buffer, entity_render_t::animcache_skeletaltransform3x4offset, entity_render_t::animcache_skeletaltransform3x4size, entity_render_t::animcache_svector3f, entity_render_t::animcache_tvector3f, entity_render_t::animcache_vertex3f, entity_render_t::frameblend, max, Mod_Skeletal_BuildTransforms(), entity_render_t::model, model, NULL, R_BufferData_Store(), R_BUFFERDATA_UNIFORM, R_FrameData_Alloc(), r_gpuskeletal, r_refdef, r_stat_animcache_shade_count, r_stat_animcache_shade_maxvertices, r_stat_animcache_shade_vertices, r_stat_animcache_shape_count, r_stat_animcache_shape_maxvertices, r_stat_animcache_shape_vertices, r_stat_animcache_skeletal_bones, r_stat_animcache_skeletal_count, r_stat_animcache_skeletal_maxbones, skeleton_t::relativetransforms, and entity_render_t::skeleton.
Referenced by R_AnimCache_CacheVisibleEntities(), R_Shadow_PrepareLight(), and R_Shadow_PrepareModelShadows().
begin a new frame (recycle old buffers)
Definition at line 3678 of file gl_rmain.c.
References r_bufferdata_buffer_t::buffer, Mem_Free, r_bufferdata_buffer_t::purge, r_bufferdata_buffer, R_BUFFERDATA_COUNT, R_BUFFERDATA_CYCLE, r_bufferdata_cycle, R_BufferData_Resize(), R_Mesh_DestroyMeshBuffer(), and type.
Referenced by CL_UpdateScreen().
free all dynamic vertex/index/uniform buffers
free all dynamic vertex/index/uniform buffers
Definition at line 3613 of file gl_rmain.c.
References r_bufferdata_buffer_t::buffer, Mem_Free, r_bufferdata_buffer_t::purge, r_bufferdata_buffer, R_BUFFERDATA_COUNT, R_BUFFERDATA_CYCLE, R_Mesh_DestroyMeshBuffer(), and type.
Referenced by gl_main_newmap(), gl_main_shutdown(), and gl_main_start().
| r_meshbuffer_t * R_BufferData_Store | ( | size_t | size, |
| const void * | data, | ||
| r_bufferdata_type_t | type, | ||
| int * | returnbufferoffset ) |
request space in a vertex/index/uniform buffer for the chosen data, returns the buffer pointer and offset, always successful
Definition at line 3707 of file gl_rmain.c.
References r_bufferdata_buffer_t::buffer, r_bufferdata_buffer_t::current, data, int(), max, NULL, offset, r_bufferdata_buffer, r_bufferdata_cycle, R_BufferData_Resize(), R_BUFFERDATA_UNIFORM, R_Mesh_UpdateMeshBuffer(), r_refdef, r_stat_bufferdatacurrent_vertex, r_stat_bufferdatasize_vertex, r_uniformbufferalignment, r_bufferdata_buffer_t::size, size, Sys_Error(), and type.
Referenced by Mod_Mesh_UploadDynamicBuffers(), R_AnimCache_GetEntity(), R_Mesh_Draw(), R_Mesh_PrepareVertices_Generic_Arrays(), R_Mesh_PrepareVertices_Mesh_Arrays(), R_Mesh_PrepareVertices_Vertex3f(), and RSurf_UploadBuffersForBatch().
| void R_BuildLightMap | ( | const entity_render_t * | ent, |
| msurface_t * | surface, | ||
| int | combine ) |
Definition at line 50 of file gl_rsurf.c.
References bound, cl, cls, msurface_t::deluxemaptexture, msurface_lightmapinfo_t::extents, Image_MakesRGBColorsFromLinear_Lightmap(), int(), msurface_t::lightmapinfo, msurface_lightmapinfo_t::lightmaporigin, msurface_t::lightmaptexture, MAXLIGHTMAPS, Mem_Alloc, Mem_Free, min, entity_render_t::model, model, n, msurface_lightmapinfo_t::nmapsamples, r_q1bsp_lightmap_updates_combine, r_refdef, r_stat_lightmapupdatepixels, r_stat_lightmapupdates, r_texture_blanknormalmap, R_UpdateTexture(), msurface_lightmapinfo_t::samples, scale, size, msurface_lightmapinfo_t::stainsamples, msurface_lightmapinfo_t::styles, VectorCopy, VectorLength, VectorNormalize, vid, vid_sRGB, and vid_sRGB_fallback.
Referenced by R_DrawModelSurfaces().
Definition at line 6253 of file gl_rmain.c.
References CrossProduct, normal, r_refdef, VectorNormalize, VectorSubtract, and width.
Referenced by R_DrawParticle_TransparentCallback().
| void R_CalcSprite_Vertex3f | ( | float * | vertex3f, |
| const vec3_t | origin, | ||
| const vec3_t | left, | ||
| const vec3_t | up, | ||
| float | scalex1, | ||
| float | scalex2, | ||
| float | scaley1, | ||
| float | scaley2 ) |
Definition at line 6283 of file gl_rmain.c.
Referenced by R_BeginCoronaQuery(), R_DrawCorona(), R_Model_Sprite_Draw_TransparentCallback(), R_Shadow_DrawCursor_TransparentCallback(), and R_Shadow_DrawLightSprite_TransparentCallback().
| qbool R_CanSeeBox | ( | int | numsamples, |
| vec_t | eyejitter, | ||
| vec_t | entboxenlarge, | ||
| vec_t | entboxexpand, | ||
| vec_t | pad, | ||
| vec3_t | eye, | ||
| vec3_t | entboxmins, | ||
| vec3_t | entboxmaxs ) |
Definition at line 3888 of file gl_rmain.c.
References BoxesOverlap, CL_Cache_TraceLineSurfaces(), CL_TraceLine(), trace_t::endpos, lhrandom, MATERIALFLAGMASK_TRANSLUCENT, model, MOVE_NORMAL, NULL, r_cullentities_trace_entityocclusion, r_refdef, SUPERCONTENTS_SKY, SUPERCONTENTS_SOLID, VectorCopy, VectorMAM, and VectorSet.
Referenced by R_Shadow_BounceGrid_AssignPhotons_Task(), R_Shadow_PrepareLight(), R_View_UpdateEntityVisible(), R_View_WorldVisibility(), and R_View_WorldVisibility_CullSurfaces().
Definition at line 861 of file gl_rmain.c.
References r_celoutlines, r_celshading, r_colorfringe, R_COMPILESHADER_STATICPARM_ENABLE, r_compileshader_staticparms, r_fxaa, r_glsl_offsetmapping_lod, r_glsl_offsetmapping_lod_distance, r_glsl_postprocess, r_glsl_postprocess_uservec1_enable, r_glsl_postprocess_uservec2_enable, r_glsl_postprocess_uservec3_enable, r_glsl_postprocess_uservec4_enable, r_glsl_saturation_redcompensate, r_glsl_vertextextureblend_usebothalphas, r_shadow_glossexact, r_shadow_shadowmappcf, r_shadow_shadowmapsampler, SHADERSTATICPARM_CELOUTLINES, SHADERSTATICPARM_CELSHADING, SHADERSTATICPARM_COLORFRINGE, SHADERSTATICPARM_EXACTSPECULARMATH, SHADERSTATICPARM_FXAA, SHADERSTATICPARM_OFFSETMAPPING_USELOD, SHADERSTATICPARM_POSTPROCESS_USERVEC1, SHADERSTATICPARM_POSTPROCESS_USERVEC2, SHADERSTATICPARM_POSTPROCESS_USERVEC3, SHADERSTATICPARM_POSTPROCESS_USERVEC4, SHADERSTATICPARM_SATURATION_REDCOMPENSATE, SHADERSTATICPARM_SHADOWMAPPCF_1, SHADERSTATICPARM_SHADOWMAPPCF_2, SHADERSTATICPARM_SHADOWSAMPLER, SHADERSTATICPARM_VERTEXTEXTUREBLEND_USEBOTHALPHAS, and SHADERSTATICPARMS_COUNT.
Referenced by R_RenderView(), and R_Shadow_SetShadowMode().
Definition at line 3470 of file gl_rmain.c.
References _R_CullBox(), maxs, and mins.
Referenced by R_Q1BSP_RecursiveGetLightInfo_BIH(), R_Q1BSP_RecursiveGetLightInfo_BSP(), and R_Shadow_PrepareLight().
Definition at line 3464 of file gl_rmain.c.
References _R_CullBox(), maxs, mins, and r_refdef.
Referenced by R_DrawDebugModel(), R_DrawPortals(), R_Shadow_BounceGrid_AssignPhotons_Task(), R_Shadow_BounceGrid_TracePhotons_Shot(), R_Shadow_PrepareLight(), R_View_UpdateEntityVisible(), R_View_WorldVisibility(), and R_View_WorldVisibility_CullSurfaces().
Definition at line 10107 of file gl_rmain.c.
References CL_Mesh_UI, fabs(), MATERIALFLAG_ALPHA, MATERIALFLAG_ALPHAGEN_VERTEX, MATERIALFLAG_BLENDED, MATERIALFLAG_NOSHADOW, MATERIALFLAG_VERTEXCOLOR, MATERIALFLAG_WALL, mod(), Mod_Mesh_AddSurface(), Mod_Mesh_AddTriangle(), Mod_Mesh_GetTexture(), Mod_Mesh_IndexForVertex(), r_refdef, R_Viewport_TransformToScreen(), Vector4Set, vid, vid_conheight, vid_conwidth, w, width, x1, x2, and y2.
Referenced by R_DrawParticle_TransparentCallback(), and R_Model_Sprite_Draw_TransparentCallback().
| void R_DecalSystem_Reset | ( | decalsystem_t * | decalsystem | ) |
Definition at line 9134 of file gl_rmain.c.
References decalsystem_t::decals, and Mem_Free.
Referenced by CL_UpdateNetworkEntities(), CLVM_free_edict(), R_DecalSystem_SplatEntity(), R_DrawModelDecals_Entity(), and R_DrawModelDecals_FadeEntity().
| void R_DecalSystem_SplatEntities | ( | const vec3_t | org, |
| const vec3_t | normal, | ||
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a, | ||
| float | s1, | ||
| float | t1, | ||
| float | s2, | ||
| float | t2, | ||
| float | size ) |
Definition at line 9506 of file gl_rmain.c.
References a, b, cl, r_decalsystem_splatqueue_t::color, r_decalsystem_splatqueue_t::decalsequence, g, MAX_DECALSYSTEM_QUEUE, r, r_decalsystem_numqueued, r_decalsystem_queue, r_decalsystem_splatqueue_t::tcrange, Vector4Set, VectorCopy, r_decalsystem_splatqueue_t::worldnormal, r_decalsystem_splatqueue_t::worldorigin, and r_decalsystem_splatqueue_t::worldsize.
Referenced by CL_ImmediateBloodStain(), and CL_SpawnDecalParticleForSurface().
| void R_DrawCustomSurface | ( | skinframe_t * | skinframe, |
| const matrix4x4_t * | texmatrix, | ||
| int | materialflags, | ||
| int | firstvertex, | ||
| int | numvertices, | ||
| int | firsttriangle, | ||
| int | numtriangles, | ||
| qbool | writedepth, | ||
| qbool | prepass, | ||
| qbool | ui ) |
Definition at line 10152 of file gl_rmain.c.
References MATERIALFLAG_CUSTOMSURFACE, MATERIALFLAG_WALL, OFFSETMAPPING_OFF, R_DrawCustomSurface_Texture(), texture, and TRANSPARENTSORT_DISTANCE.
Referenced by R_DrawCorona(), R_Shadow_DrawCursor_TransparentCallback(), R_Shadow_DrawLightSprite_TransparentCallback(), R_SkyBox(), and R_SkySphere().
| void R_DrawCustomSurface_Texture | ( | texture_t * | texture, |
| const matrix4x4_t * | texmatrix, | ||
| int | materialflags, | ||
| int | firstvertex, | ||
| int | numvertices, | ||
| int | firsttriangle, | ||
| int | numtriangles, | ||
| qbool | writedepth, | ||
| qbool | prepass, | ||
| qbool | ui ) |
Definition at line 10172 of file gl_rmain.c.
References NULL, msurface_t::num_firsttriangle, msurface_t::num_firstvertex, msurface_t::num_triangles, msurface_t::num_vertices, R_DrawModelTextureSurfaceList(), R_GetCurrentTexture(), rsurface, msurface_t::texture, and texture.
Referenced by R_DrawCustomSurface(), and R_Model_Sprite_Draw_TransparentCallback().
Definition at line 264 of file r_explosion.c.
References alpha, explosion, NULL, numexplosions, origin, R_DrawExplosion_TransparentCallback(), r_drawexplosions, R_MeshQueue_AddTransparent(), R_MoveExplosion(), and TRANSPARENTSORT_DISTANCE.
Referenced by R_RenderScene().
| void R_DrawModelSurfaces | ( | entity_render_t * | ent, |
| qbool | skysurfaces, | ||
| qbool | writedepth, | ||
| qbool | depthonly, | ||
| qbool | debug, | ||
| qbool | prepass, | ||
| qbool | ui ) |
Definition at line 9970 of file gl_rmain.c.
References MATERIALFLAG_SKY, MATERIALFLAG_WALL, Mem_Alloc, Mem_Free, entity_render_t::model, model, NULL, R_BuildLightMap(), R_DrawDebugModel(), r_main_mempool, r_maxsurfacelist, r_q1bsp_lightmap_updates_combine, r_q1bsp_lightmap_updates_enabled, r_q1bsp_lightmap_updates_hidden_surfaces, R_QueueModelSurfaceList(), r_refdef, r_showsurfaces, r_speeds, r_stat_entities_surfaces, r_stat_entities_triangles, r_surfacelist, RSurf_ActiveModelEntity(), rsurface, and style.
Referenced by DrawQ_FlushUI(), R_Mod_Draw(), R_Mod_DrawDebug(), R_Mod_DrawDepth(), R_Mod_DrawPrepass(), and R_Mod_DrawSky().
Definition at line 2907 of file cl_particles.c.
References a, particle_t::airfriction, particle_t::alpha, particle_t::alphafade, particle_t::bounce, bound, CHECKPVSBIT, cl, cl_decals, cl_decals_newsystem_bloodsmears, cl_particles_blood_decal_alpha, cl_particles_blood_decal_scalemax, cl_particles_blood_decal_scalemin, cl_particles_collisions, cl_particles_visculling, CL_PointSuperContents, CL_SpawnDecalParticleForSurface(), CL_TraceLine(), cls, mleaf_t::clusterindex, collision_extendmovelength, color, particle_t::color, particle_t::delayedspawn, particle_t::die, DotProduct, trace_t::endpos, f, trace_t::fraction, frametime, particle_t::gravity, trace_t::hitq3surfaceflags, trace_t::hitsupercontents, int(), lhrandom, particle_t::liquidfriction, MAX_PARTICLES, Mem_Alloc, Mem_Free, min, MOVE_NORMAL, plane_t::normal, NULL, particle_t::org, particle_t::orientation, PARTICLE_HBEAM, PARTICLE_SPARK, PARTICLE_VBEAM, particlepalette, trace_t::plane, pt_beam, pt_blood, pt_bubble, pt_entityparticle, pt_explode, pt_explode2, pt_rain, pt_snow, pt_static, Q3SURFACEFLAG_NOIMPACT, Q3SURFACEFLAG_NOMARKS, R_DrawParticle_TransparentCallback(), r_drawparticles, r_drawparticles_drawdistance, r_drawparticles_nearclip_min, R_MeshQueue_AddTransparent(), r_refdef, R_Stain(), ramp1, ramp2, particle_t::size, particle_t::sizeincrease, particle_t::sortorigin, particle_t::stainalpha, particle_t::staincolor, particle_t::stainsize, particle_t::staintexnum, trace_t::startsupercontents, SUPERCONTENTS_LAVA, SUPERCONTENTS_LIQUIDSMASK, SUPERCONTENTS_NODROP, SUPERCONTENTS_SLIME, SUPERCONTENTS_SOLID, SUPERCONTENTS_WATER, tex_blooddecal, particle_t::time2, TRANSPARENTSORT_DISTANCE, particle_t::typeindex, VectorClear, VectorCopy, VectorDistance2, VectorLength, VectorLength2, VectorMA, VectorNormalize, VectorScale, and particle_t::vel.
Referenced by R_RenderScene().
Definition at line 381 of file gl_rsurf.c.
References f, ixtable, mportal_t::maxs, mportal_t::mins, model, mportal_t::next, NULL, mportal_t::numpoints, mportal_t::points, POLYGONELEMENTS_MAXPOINTS, mvertex_t::position, R_CullFrustum(), R_DrawPortal_Callback(), R_MeshQueue_AddTransparent(), r_refdef, rsurface, TRANSPARENTSORT_DISTANCE, VectorAdd, VectorClear, and VectorScale.
Referenced by R_RenderScene().
Definition at line 131 of file r_explosion.c.
References Cvar_RegisterVariable(), EXPLOSIONGRID, explosiontris, NULL, r_drawexplosions, r_explosion_newmap(), r_explosion_shutdown(), r_explosion_start(), r_explosionclip, R_ExplosionVert(), R_RegisterModule(), x, and y.
Referenced by Render_Init().
| void * R_FrameData_Alloc | ( | size_t | size | ) |
allocate some temporary memory for your purposes
Definition at line 3539 of file gl_rmain.c.
References bound, Cvar_SetValueQuick(), data, max, r_framedata_mem, R_FrameData_Resize(), r_framedatasize, r_refdef, r_stat_framedatacurrent, r_stat_framedatasize, and size.
Referenced by R_AnimCache_GetEntity(), R_FrameData_Store(), R_Q1BSP_CallRecursiveGetLightInfo(), RSurf_ActiveCustomEntity(), RSurf_ActiveModelEntity(), and RSurf_PrepareVerticesForBatch().
prepare for a new frame, recycles old buffers if a resize occurred previously
Definition at line 3521 of file gl_rmain.c.
References Mem_Free, r_framedata_mem, and R_FrameData_Resize().
Referenced by CL_UpdateScreen().
free all R_FrameData memory
Definition at line 3493 of file gl_rmain.c.
References Mem_Free, and r_framedata_mem.
Referenced by gl_main_newmap(), gl_main_shutdown(), and gl_main_start().
discard recent memory allocations (rewind to marker)
Definition at line 3588 of file gl_rmain.c.
References r_framedata_mem.
Referenced by R_Mod_DrawLight(), R_Mod_DrawShadowMap(), R_Q1BSP_DrawLight_TransparentCallback(), R_QueueModelSurfaceList(), and R_RTLight_Compile().
set a marker that allows you to discard the following temporary memory allocations
Definition at line 3581 of file gl_rmain.c.
References r_framedata_mem.
Referenced by R_Mod_DrawLight(), R_Mod_DrawShadowMap(), R_Q1BSP_DrawLight_TransparentCallback(), R_QueueModelSurfaceList(), and R_RTLight_Compile().
allocate some temporary memory and copy this data into it
Definition at line 3573 of file gl_rmain.c.
References data, R_FrameData_Alloc(), and size.
Referenced by R_Shadow_PrepareLight(), and RSurf_PrepareVerticesForBatch().
| rtexture_t * R_GetCubemap | ( | const char * | basename | ) |
Definition at line 2982 of file gl_rmain.c.
References dp_strlcpy, MAX_CUBEMAPS, Mem_Alloc, NULL, R_LoadCubemap(), r_main_mempool, r_texture_cubemaps, r_texture_numcubemaps, and r_texture_whitecube.
Referenced by Mod_LoadTextureFromQ3Shader(), R_Shadow_PrepareLight(), and VM_CL_loadcubemap().
Definition at line 6549 of file gl_rmain.c.
References texture_t::anim_frames, texture_t::anim_total, texture_t::animated, texture_t::backgroundbasetexture, texture_t::backgroundcurrentskinframe, texture_t::backgroundglosstexture, texture_t::backgroundglowtexture, texture_t::backgroundnmaptexture, texture_t::backgroundshaderpass, texture_t::basealpha, texture_t::basematerialflags, texture_t::basetexture, BLENDFUNC_ALLOWS_COLORMOD, texture_t::camera_entity, cl, cl_meshentities, texture_t::colormapping, texture_t::currentalpha, texture_t::currentbackgroundtexmatrix, texture_t::currentblendfunc, texture_t::currentframe, texture_t::currentmaterialflags, texture_t::currentskinframe, texture_t::currenttexmatrix, texture_t::customblendfunc, entity_render_t::entitynumber, texture_t::fogtexture, framegroupblend_t::frame, entity_render_t::framegroupblend, texture_shaderpass_t::framerate, gl_lightmaps, GL_ONE, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, GL_ZERO, texture_t::glosstexture, texture_t::glowtexture, int(), LoopingFrameNumberFromDouble(), MATERIALFLAG_ADD, MATERIALFLAG_ALPHA, MATERIALFLAG_ALPHATEST, MATERIALFLAG_BLENDED, MATERIALFLAG_CAMERA, MATERIALFLAG_CUSTOMBLEND, MATERIALFLAG_CUSTOMSURFACE, MATERIALFLAG_FULLBRIGHT, MATERIALFLAG_LIGHTGRID, MATERIALFLAG_MODELLIGHT, MATERIALFLAG_NOCULLFACE, MATERIALFLAG_NODEPTHTEST, MATERIALFLAG_NORTLIGHT, MATERIALFLAG_NOSHADOW, MATERIALFLAG_REFLECTION, MATERIALFLAG_REFRACTION, MATERIALFLAG_SHORTDEPTHRANGE, MATERIALFLAG_TRANSDEPTH, MATERIALFLAG_VERTEXCOLOR, MATERIALFLAG_VERTEXTEXTUREBLEND, MATERIALFLAG_WALL, MATERIALFLAG_WATERALPHA, MATERIALFLAG_WATERSCROLL, MATERIALFLAG_WATERSHADER, texture_t::materialshaderpass, Matrix4x4_CreateIdentity(), MAX_EDICTS, Mem_Alloc, Mem_Free, MESH_UI, entity_render_t::model, model, name, texture_t::nmaptexture, NULL, texture_shaderpass_t::numframes, texture_t::pantstexture, R_BlendFuncFlags(), r_fb, R_LoadQWSkin(), r_main_mempool, r_novis, r_qwskincache, r_qwskincache_size, r_refdef, r_shadow_gloss, r_shadow_gloss2exponent, r_shadow_gloss2intensity, r_shadow_glossexponent, r_shadow_glossintensity, R_SkinFrame_GenerateTexturesFromQPixels(), R_tcMod_ApplyToMatrix(), r_texture_black, r_texture_blanknormalmap, r_texture_grey128, r_texture_notexture, r_texture_white, r_textureframe, r_transparent_alphatocoverage, r_transparentdepthmasking, r_trippy, r_water, r_wateralpha, r_waterscrollmatrix, texture_t::reflectmasktexture, RENDER_ADDITIVE, texture_t::render_colormap_pants, texture_t::render_colormap_shirt, RENDER_CUSTOMIZEDMODELLIGHT, RENDER_DOUBLESIDED, RENDER_DYNAMICMODELLIGHT, texture_t::render_glowmod, RENDER_LIGHT, texture_t::render_lightmap_ambient, texture_t::render_lightmap_diffuse, texture_t::render_lightmap_specular, texture_t::render_modellight_ambient, texture_t::render_modellight_diffuse, texture_t::render_modellight_lightdir_local, texture_t::render_modellight_lightdir_world, texture_t::render_modellight_specular, RENDER_NODEPTHTEST, texture_t::render_rtlight_diffuse, texture_t::render_rtlight_specular, RENDER_VIEWMODEL, rsurface, texture_t::shirttexture, texture_shaderpass_t::skinframes, texture_t::specularpower, texture_t::specularpowermod, texture_t::specularscalemod, texture_shaderpass_t::tcmods, texture, texture_t::update_lastrenderentity, texture_t::update_lastrenderframe, VectorLength2, and vid.
Referenced by R_DrawCustomSurface_Texture(), R_DrawDebugModel(), R_DrawSurface_TransparentCallback(), R_Mod_DrawLight(), R_Mod_DrawShadowMap(), R_Model_Sprite_Draw_TransparentCallback(), R_Q1BSP_DrawLight_TransparentCallback(), R_Q1BSP_RecursiveGetLightInfo_BIH(), R_Q1BSP_RecursiveGetLightInfo_BSP(), R_QueueModelSurfaceList(), and R_Water_AddWaterPlane().
| r_refdef_scene_t * R_GetScenePointer | ( | r_refdef_scene_type_t | scenetype | ) |
Definition at line 5588 of file gl_rmain.c.
References r_currentscenetype, r_refdef, and r_scenes_store.
Referenced by MVM_init_cmd().
| void R_GLSL_Restart_f | ( | cmd_state_t * | cmd | ) |
Definition at line 1394 of file gl_rmain.c.
References cmd(), GL_Backend_FreeProgram(), int(), Mem_ExpandableArray_FreeRecord(), Mem_ExpandableArray_IndexRange(), Mem_ExpandableArray_RecordAtIndex(), NULL, r_glsl_permutation_t::program, r_glsl_permutation, r_glsl_permutationarray, r_glsl_permutationhash, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by GL_Main_Init(), gl_main_shutdown(), R_RenderView(), and R_Shadow_SetShadowMode().
Definition at line 4144 of file gl_rmain.c.
References bound, cl, Cvar_SetValueQuick(), DotProduct, fabs(), forward, int(), irisvecs, LP_DYNLIGHT, LP_LIGHTMAP, LP_RTWORLD, max, min, R_CompleteLightPoint(), r_hdr_irisadaptation, r_hdr_irisadaptation_fade_down, r_hdr_irisadaptation_fade_up, r_hdr_irisadaptation_maxvalue, r_hdr_irisadaptation_minvalue, r_hdr_irisadaptation_multiplier, r_hdr_irisadaptation_radius, r_hdr_irisadaptation_value, r_refdef, VectorCopy, and VectorLength.
Referenced by CL_UpdateScreen().
Definition at line 96 of file r_lightning.c.
References Cvar_RegisterVariable(), NULL, r_lightningbeam_color_blue, r_lightningbeam_color_green, r_lightningbeam_color_red, r_lightningbeam_qmbtexture, r_lightningbeam_repeatdistance, r_lightningbeam_scroll, r_lightningbeam_thickness, r_lightningbeams_newmap(), r_lightningbeams_shutdown(), r_lightningbeams_start(), and R_RegisterModule().
Referenced by Render_Init().
Definition at line 6364 of file gl_rmain.c.
References mplane_t::dist, fabs(), floor(), max, mplane_t::normal, NULL, PolygonD_Divide(), PolygonD_QuadForPlane(), R_Mesh_AddPolygon3d(), R_MESH_PLANE_DIST_EPSILON, and w.
Definition at line 6321 of file gl_rmain.c.
References rmesh_t::element3i, rmesh_t::maxtriangles, rmesh_t::numtriangles, and R_Mesh_AddVertex().
| void R_Model_Sprite_Draw | ( | entity_render_t * | ent | ) |
Definition at line 430 of file r_sprites.c.
References entity_render_t::flags, entity_render_t::frameblend, entity_render_t::matrix, Matrix4x4_OriginFromMatrix(), R_MeshQueue_AddTransparent(), R_Model_Sprite_Draw_TransparentCallback(), RENDER_NODEPTHTEST, RENDER_WORLDOBJECT, rsurface, frameblend_t::subframe, TRANSPARENTSORT_DISTANCE, TRANSPARENTSORT_HUD, and TRANSPARENTSORT_SKY.
Referenced by Mod_IDS2_Load(), and Mod_IDSP_Load().
Definition at line 160 of file r_explosion.c.
References explosion_t::alpha, cl, cl_explosions_alpha_end, cl_explosions_alpha_start, cl_explosions_lifetime, cl_explosions_size_end, cl_explosions_size_start, CL_TraceLine(), explosion_t::clipping, collision_extendmovelength, trace_t::endpos, explosion_t::endtime, explosion, EXPLOSIONGRID, explosionnoiseindex, explosionpoint, EXPLOSIONVERTS, explosion_t::fade, fractalnoisequick(), max, MAX_EXPLOSIONS, MOVE_NOMONSTERS, n, noise, NULL, numexplosions, explosion_t::origin, r_explosionclip, explosion_t::starttime, SUPERCONTENTS_SOLID, explosion_t::time, VectorCopy, VectorMA, VectorScale, explosion_t::vert, and explosion_t::vertvel.
Referenced by CL_ParticleExplosion().
Definition at line 2602 of file cl_particles.c.
References Cvar_RegisterVariable(), MESHQUEUE_TRANSPARENT_BATCHSIZE, NULL, particle_elements, r_drawdecals, r_drawdecals_drawdistance, r_drawparticles, r_drawparticles_drawdistance, r_drawparticles_nearclip_max, r_drawparticles_nearclip_min, r_part_newmap(), r_part_shutdown(), r_part_start(), and R_RegisterModule().
Referenced by Render_Init().
| void R_RenderScene | ( | int | viewfbo, |
| rtexture_t * | viewdepthtexture, | ||
| rtexture_t * | viewcolortexture, | ||
| int | viewx, | ||
| int | viewy, | ||
| int | viewwidth, | ||
| int | viewheight ) |
Definition at line 5830 of file gl_rmain.c.
References cl, cl_locs_show, CLVM_prog, Matrix4x4_CreateTranslate(), r_depthfirst, R_DrawBrushModelsSky(), R_DrawEntityBBoxes(), R_DrawExplosions(), R_DrawLocs(), R_DrawModelDecals(), R_DrawModels(), R_DrawModelsDebug(), R_DrawModelsDepth(), R_DrawParticles(), R_DrawPortals(), r_drawportals, R_MeshQueue_BeginScene(), R_MeshQueue_RenderTransparent(), r_refdef, R_SetupView(), R_Shadow_DrawCoronas(), R_Shadow_DrawLights(), R_Shadow_DrawPrepass(), R_Shadow_DrawShadowMaps(), R_Shadow_PrepareLights(), R_Shadow_PrepareModelShadows(), r_shadow_shadowmapatlas_modelshadows_size, R_Shadow_ShadowMappingEnabled(), r_shadow_usingdeferredprepass, r_shadow_viewcolortexture, r_shadow_viewdepthtexture, r_shadow_viewfbo, r_shadow_viewheight, r_shadow_viewwidth, r_shadow_viewx, r_shadow_viewy, r_showbboxes, r_showbboxes_client, r_showcollisionbrushes, r_shownormals, r_showoverdraw, r_showtris, R_Sky(), R_SkyStartFrame(), r_stat_renders, R_TimeReport(), r_timereport_active, r_transparent, R_UpdateFog(), r_waterscroll, r_waterscrollmatrix, sin(), skyrenderlater, skyrendermasked, and SVVM_prog.
Referenced by R_RenderView(), and R_Water_ProcessPlanes().
Definition at line 4523 of file gl_rmain.c.
References host, int(), Mem_ExpandableArray_FreeRecord(), Mem_ExpandableArray_IndexRange(), Mem_ExpandableArray_RecordAtIndex(), r, r_fb, R_FreeTexture(), and R_Mesh_DestroyFramebufferObject().
Referenced by gl_main_shutdown(), and SCR_DrawScreen().
| r_rendertarget_t * R_RenderTarget_Get | ( | int | texturewidth, |
| int | textureheight, | ||
| textype_t | depthtextype, | ||
| qbool | depthisrenderbuffer, | ||
| textype_t | colortextype0, | ||
| textype_t | colortextype1, | ||
| textype_t | colortextype2, | ||
| textype_t | colortextype3 ) |
Definition at line 4564 of file gl_rmain.c.
References host, int(), Mem_ExpandableArray_AllocRecord(), Mem_ExpandableArray_IndexRange(), Mem_ExpandableArray_RecordAtIndex(), NULL, r, R_CalcTexCoordsForView(), r_fb, R_LoadTexture2D(), R_LoadTextureRenderBuffer(), r_main_texturepool, R_Mesh_CreateFramebufferObject(), r_refdef, r_stat_rendertargets_pixels, r_stat_rendertargets_used, TEXF_CLAMP, TEXF_FORCELINEAR, TEXF_RENDERTARGET, and va().
Referenced by R_Bloom_MakeTexture(), R_Bloom_StartFrame(), R_Envmap_f(), and R_Water_ProcessPlanes().
| void R_RenderView | ( | int | fbo, |
| rtexture_t * | depthtexture, | ||
| rtexture_t * | colortexture, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height ) |
Definition at line 5637 of file gl_rmain.c.
References CHECKGLERROR, cl_videoplaying, cmd_local, DrawQ_Finish(), DrawQ_Start(), GL_Clear(), GL_DEPTH_BUFFER_BIT, GL_Scissor(), GL_ScissorTest(), height, Image_sRGBFloatFromLinearFloat, Matrix4x4_Concat(), Matrix4x4_CreateFromQuakeEntity(), NULL, R_AnimCache_CacheVisibleEntities(), R_AnimCache_ClearCache(), R_BlendView(), R_BlendView_IsTrivial(), r_bloom_scenebrightness, R_Bloom_StartFrame(), R_ClearScreen(), R_CompileShader_CheckStaticParms(), r_drawentities, r_fb, R_GLSL_Restart_f(), r_hdr_irisadaptation_value, r_hdr_scenebrightness, R_Mesh_SetRenderTargets(), R_MotionBlurView(), r_refdef, R_RenderScene(), r_renderview, R_RenderView_UpdateViewVectors(), R_RenderWaterPlanes(), R_ResetViewRendering3D(), R_Shadow_UpdateBounceGridTexture(), R_Shadow_UpdateWorldLightSelection(), R_SortEntities(), r_sortentities, R_Stereo_Active(), r_stereo_angle, r_stereo_separation, r_stereo_side, r_textureframe, R_TimeReport(), r_timereport_active, r_trippy, R_View_Update(), R_Water_StartFrame(), rsurface, v_isometric, V_MakeViewIsometric(), vid, vid_sRGB, vid_sRGB_fallback, width, x, and y.
Referenced by R_Envmap_f(), SCR_DrawScreen(), and VM_CL_R_RenderScene().
Definition at line 4512 of file gl_rmain.c.
References Matrix4x4_Invert_Full(), Matrix4x4_ToVectors(), r_refdef, and VectorNegate.
Referenced by CL_VM_UpdateView(), R_RenderView(), and R_Water_ProcessPlanes().
| void R_RenderWaterPlanes | ( | int | viewfbo, |
| rtexture_t * | viewdepthtexture, | ||
| rtexture_t * | viewcolortexture, | ||
| int | viewx, | ||
| int | viewy, | ||
| int | viewwidth, | ||
| int | viewheight ) |
Definition at line 5803 of file gl_rmain.c.
References cl, R_DrawModelsAddWaterPlanes(), r_fb, r_refdef, R_TimeReport(), r_timereport_active, and R_Water_ProcessPlanes().
Referenced by R_RenderView().
Definition at line 440 of file r_sky.c.
References MAX_QPATH, R_LoadSkyBox(), R_UnloadSkyBox(), and skyname.
Referenced by CL_ClearState().
| void R_ResetViewRendering2D | ( | int | viewfbo, |
| rtexture_t * | viewdepthtexture, | ||
| rtexture_t * | viewcolortexture, | ||
| int | viewx, | ||
| int | viewy, | ||
| int | viewwidth, | ||
| int | viewheight ) |
Definition at line 4477 of file gl_rmain.c.
References R_ResetViewRendering2D_Common().
Referenced by R_BlendView(), and R_MotionBlurView().
| void R_ResetViewRendering2D_Common | ( | int | viewfbo, |
| rtexture_t * | viewdepthtexture, | ||
| rtexture_t * | viewcolortexture, | ||
| int | viewx, | ||
| int | viewy, | ||
| int | viewwidth, | ||
| int | viewheight, | ||
| float | x2, | ||
| float | y2 ) |
Definition at line 4439 of file gl_rmain.c.
References CHECKGLERROR, GL_BlendFunc(), GL_Color(), GL_ColorMask(), GL_CullFace(), GL_DepthFunc(), GL_DepthMask(), GL_DepthRange(), GL_DepthTest(), GL_LEQUAL, GL_NONE, GL_ONE, GL_POLYGON_OFFSET_FILL, GL_PolygonOffset(), GL_Scissor(), GL_ScissorTest(), GL_ZERO, r_viewport_t::height, identitymatrix, NULL, R_EntityMatrix(), R_Mesh_ResetTextureState(), R_Mesh_SetRenderTargets(), r_refdef, R_SetViewport(), R_Viewport_InitOrtho(), RENDERPATH_GL32, RENDERPATH_GLES2, vid, r_viewport_t::width, r_viewport_t::x, x2, r_viewport_t::y, and y2.
Referenced by DrawQ_Start(), and R_ResetViewRendering2D().
| void R_ResetViewRendering3D | ( | int | viewfbo, |
| rtexture_t * | viewdepthtexture, | ||
| rtexture_t * | viewcolortexture, | ||
| int | viewx, | ||
| int | viewy, | ||
| int | viewwidth, | ||
| int | viewheight ) |
Definition at line 4482 of file gl_rmain.c.
References CHECKGLERROR, GL_BlendFunc(), GL_Color(), GL_ColorMask(), GL_CullFace(), GL_DepthFunc(), GL_DepthMask(), GL_DepthRange(), GL_DepthTest(), GL_LEQUAL, GL_ONE, GL_POLYGON_OFFSET_FILL, GL_PolygonOffset(), GL_Scissor(), GL_ScissorTest(), GL_ZERO, identitymatrix, R_EntityMatrix(), R_Mesh_ResetTextureState(), r_refdef, R_SetupView(), RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_RenderView(), and R_Water_ProcessPlanes().
| void R_SelectScene | ( | r_refdef_scene_type_t | scenetype | ) |
Definition at line 5573 of file gl_rmain.c.
References r_currentscenetype, r_refdef, and r_scenes_store.
Referenced by MP_Draw(), and MVM_error_cmd().
| int R_SetSkyBox | ( | const char * | sky | ) |
Definition at line 149 of file r_sky.c.
References Con_Printf(), dp_strlcpy, R_LoadSkyBox(), skyname, and strlen().
Referenced by CL_ParseEntityLump(), CL_ParseServerMessage(), and LoadSky_f().
Definition at line 2091 of file gl_rmain.c.
References rtlight_t::ambientscale, rtlight_t::currentcolor, rtlight_t::currentcubemap, rtlight_t::diffusescale, GL_AlphaToCoverage(), Matrix4x4_Concat(), Matrix4x4_Invert_Full(), Matrix4x4_ToArrayFloatGL(), Matrix4x4_Transform(), rtlight_t::matrix_lighttoworld, mode, r_fb, r_glsl_permutation, R_Mesh_TexBind(), r_refdef, R_SetupShader_SetPermutationGLSL(), r_shadow_attenuationgradienttexture, r_shadow_gloss, r_shadow_gloss2exponent, r_shadow_glossexact, r_shadow_glossexponent, r_shadow_lightshadowmap_parameters, r_shadow_lightshadowmap_texturescale, r_shadow_prepassgeometrynormalmaptexture, r_shadow_shadowmap2ddepthbuffer, r_shadow_shadowmap2ddepthtexture, r_shadow_shadowmapvsdct, r_shadow_shadowmapvsdcttexture, r_shadow_usingshadowmap2d, r_texture_whitecube, RENDERPATH_GL32, RENDERPATH_GLES2, rsurface, SHADERMODE_DEFERREDLIGHTSOURCE, SHADERPERMUTATION_CUBEFILTER, SHADERPERMUTATION_DEPTHRGB, SHADERPERMUTATION_DIFFUSE, SHADERPERMUTATION_SHADOWMAP2D, SHADERPERMUTATION_SHADOWMAPVSDCT, SHADERPERMUTATION_SPECULAR, rtlight_t::shadoworigin, rtlight_t::specularscale, and vid.
Referenced by R_Shadow_RenderMode_DrawDeferredLight().
Definition at line 1493 of file gl_rmain.c.
References GL_AlphaToCoverage(), GL_UNIFORM_BUFFER, r_glsl_permutation, R_SetupShader_SetPermutationGLSL(), r_trippy, RENDERPATH_GL32, RENDERPATH_GLES2, rsurface, SHADERMODE_DEPTH_OR_SHADOW, SHADERPERMUTATION_DEPTHRGB, SHADERPERMUTATION_SKELETAL, SHADERPERMUTATION_TRIPPY, and vid.
Referenced by R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_DepthOnly(), R_DrawTextureSurfaceList_Sky(), R_Shadow_ClearShadowMapTexture(), and R_Shadow_RenderMode_ShadowMap().
| void R_SetupShader_Generic | ( | rtexture_t * | t, |
| qbool | usegamma, | ||
| qbool | notrippy, | ||
| qbool | suppresstexalpha ) |
Definition at line 1461 of file gl_rmain.c.
References GL_AlphaToCoverage(), r_glsl_permutation, R_Mesh_TexBind(), R_SetupShader_SetPermutationGLSL(), r_texture_gammaramps, r_trippy, RENDERPATH_GL32, RENDERPATH_GLES2, SHADERMODE_GENERIC, SHADERPERMUTATION_DIFFUSE, SHADERPERMUTATION_GAMMARAMPS, SHADERPERMUTATION_REFLECTCUBE, SHADERPERMUTATION_TRIPPY, SHADERPERMUTATION_VIEWTINT, v_glslgamma_2d, vid, and vid_gammatables_trivial.
Referenced by R_Bloom_MakeTexture(), R_DrawExplosion_TransparentCallback(), R_DrawModelDecals_Entity(), R_DrawParticle_TransparentCallback(), R_MotionBlurView(), R_SetupShader_Generic_NoTexture(), and SCR_DrawLoadingScreen().
Definition at line 1488 of file gl_rmain.c.
References NULL, and R_SetupShader_Generic().
Referenced by R_DrawBBoxMesh(), R_DrawDebugModel(), R_DrawEntityBBoxes_Callback(), R_DrawLoc_Callback(), R_DrawNoModel_TransparentCallback(), R_DrawPortal_Callback(), R_DrawTextureSurfaceList_ShowSurfaces(), R_DrawTextureSurfaceList_Sky(), R_Shadow_DrawCoronas(), R_Shadow_RenderMode_Reset(), and SCR_DrawLoadingStack().
| void R_SetupShader_Surface | ( | const float | ambientcolor[3], |
| const float | diffusecolor[3], | ||
| const float | specularcolor[3], | ||
| rsurfacepass_t | rsurfacepass, | ||
| int | texturenumsurfaces, | ||
| const msurface_t ** | texturesurfacelist, | ||
| void * | waterplane, | ||
| qbool | notrippy, | ||
| qbool | ui ) |
Definition at line 1563 of file gl_rmain.c.
References texture_t::backgroundbasetexture, texture_t::backgroundglosstexture, texture_t::backgroundglowtexture, texture_t::backgroundnmaptexture, texture_t::basematerialflags, texture_t::basetexture, BATCHNEED_ALLOWMULTIDRAW, BATCHNEED_ARRAY_LIGHTMAP, BATCHNEED_ARRAY_NORMAL, BATCHNEED_ARRAY_TEXCOORD, BATCHNEED_ARRAY_VECTOR, BATCHNEED_ARRAY_VERTEX, BATCHNEED_ARRAY_VERTEXCOLOR, BLENDFUNC_ALLOWS_ANYFOG, BLENDFUNC_ALLOWS_FOG_HACK0, BLENDFUNC_ALLOWS_FOG_HACKALPHA, CHECKGLERROR, cl, texture_t::colormapping, r_rendertarget_t::colortexture, texture_t::currentalpha, texture_t::currentbackgroundtexmatrix, texture_t::currentblendfunc, texture_t::currentmaterialflags, texture_t::currenttexmatrix, GL_AlphaToCoverage(), GL_BlendFunc(), gl_lightmaps, GL_ONE, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, GL_UNIFORM_BUFFER, GL_ZERO, texture_t::glosstexture, texture_t::glowtexture, MATERIALFLAG_ALPHAGEN_VERTEX, MATERIALFLAG_ALPHATEST, MATERIALFLAG_BLENDED, MATERIALFLAG_LIGHTGRID, MATERIALFLAG_MODELLIGHT, MATERIALFLAG_OCCLUDE, MATERIALFLAG_REFLECTION, MATERIALFLAG_REFRACTION, MATERIALFLAG_VERTEXTEXTUREBLEND, MATERIALFLAG_WATERALPHA, MATERIALFLAG_WATERSHADER, Matrix4x4_Concat(), Matrix4x4_Normalize3(), Matrix4x4_ToArrayFloatGL(), max, mode, texture_t::nmaptexture, texture_t::offsetbias, texture_t::offsetmapping, OFFSETMAPPING_DEFAULT, OFFSETMAPPING_LINEAR, OFFSETMAPPING_OFF, OFFSETMAPPING_RELIEF, texture_t::offsetscale, texture_t::pantstexture, R_BlendFuncFlags(), r_fb, r_glsl_deluxemapping, r_glsl_offsetmapping, r_glsl_offsetmapping_lod_distance, r_glsl_offsetmapping_reliefmapping, r_glsl_offsetmapping_reliefmapping_refinesteps, r_glsl_offsetmapping_reliefmapping_steps, r_glsl_offsetmapping_scale, r_glsl_offsetmapping_steps, r_glsl_permutation, r_hdr_glowintensity, R_Mesh_TexBind(), r_refdef, R_SetupShader_SetPermutationGLSL(), r_shadow_attenuationgradienttexture, r_shadow_bouncegrid_state, r_shadow_glossexact, r_shadow_lightshadowmap_parameters, r_shadow_lightshadowmap_texturescale, r_shadow_modelshadowmap_parameters, r_shadow_modelshadowmap_texturescale, r_shadow_prepassgeometrynormalmaptexture, r_shadow_prepasslightingdiffusetexture, r_shadow_prepasslightingspeculartexture, r_shadow_shadowmap2ddepthbuffer, r_shadow_shadowmap2ddepthtexture, r_shadow_shadowmapmatrix, r_shadow_shadowmapvsdct, r_shadow_shadowmapvsdcttexture, r_shadow_usingdeferredprepass, r_shadow_usingshadowmap2d, r_shadow_usingshadowmaportho, r_texture_black, r_texture_blanknormalmap, r_texture_fogattenuation, r_texture_fogheighttexture, r_texture_gammaramps, r_texture_white, r_texture_whitecube, R_TextureFlags(), r_transparent_alphatocoverage, r_trippy, r_water_reflectdistort, r_water_refractdistort, texture_t::r_water_wateralpha, texture_t::r_water_waterscroll, r_wateralpha, texture_t::reflectcolor4f, texture_t::reflectcubetexture, texture_t::reflectfactor, texture_t::reflectmasktexture, texture_t::reflectmax, texture_t::reflectmin, texture_t::refractcolor4f, texture_t::refractfactor, texture_t::render_colormap_pants, texture_t::render_colormap_shirt, texture_t::render_glowmod, texture_t::render_lightmap_ambient, texture_t::render_lightmap_diffuse, texture_t::render_lightmap_specular, texture_t::render_modellight_ambient, texture_t::render_modellight_diffuse, texture_t::render_modellight_lightdir_local, texture_t::render_modellight_specular, RENDER_NOSELFSHADOW, texture_t::render_rtlight_diffuse, texture_t::render_rtlight_specular, RENDERPATH_GL32, RENDERPATH_GLES2, RSurf_PrepareVerticesForBatch(), RSurf_UploadBuffersForBatch(), rsurface, RSURFPASS_BACKGROUND, RSURFPASS_DEFERREDGEOMETRY, RSURFPASS_RTLIGHT, r_waterstate_waterplane_t::rt_camera, r_waterstate_waterplane_t::rt_reflection, r_waterstate_waterplane_t::rt_refraction, SHADERMODE_DEFERREDGEOMETRY, SHADERMODE_FLATCOLOR, SHADERMODE_GENERIC, SHADERMODE_LIGHTDIRECTION, SHADERMODE_LIGHTDIRECTIONMAP_FORCED_LIGHTMAP, SHADERMODE_LIGHTDIRECTIONMAP_FORCED_VERTEXCOLOR, SHADERMODE_LIGHTDIRECTIONMAP_MODELSPACE, SHADERMODE_LIGHTDIRECTIONMAP_TANGENTSPACE, SHADERMODE_LIGHTGRID, SHADERMODE_LIGHTMAP, SHADERMODE_LIGHTSOURCE, SHADERMODE_REFRACTION, SHADERMODE_VERTEXCOLOR, SHADERMODE_WATER, SHADERPERMUTATION_ALPHAGEN_VERTEX, SHADERPERMUTATION_ALPHAKILL, SHADERPERMUTATION_BOUNCEGRID, SHADERPERMUTATION_BOUNCEGRIDDIRECTIONAL, SHADERPERMUTATION_COLORMAPPING, SHADERPERMUTATION_CUBEFILTER, SHADERPERMUTATION_DEFERREDLIGHTMAP, SHADERPERMUTATION_DEPTHRGB, SHADERPERMUTATION_DIFFUSE, SHADERPERMUTATION_FOGALPHAHACK, SHADERPERMUTATION_FOGHEIGHTTEXTURE, SHADERPERMUTATION_FOGINSIDE, SHADERPERMUTATION_FOGOUTSIDE, SHADERPERMUTATION_GLOW, SHADERPERMUTATION_NORMALMAPSCROLLBLEND, SHADERPERMUTATION_OCCLUDE, SHADERPERMUTATION_OFFSETMAPPING, SHADERPERMUTATION_OFFSETMAPPING_RELIEFMAPPING, SHADERPERMUTATION_REFLECTCUBE, SHADERPERMUTATION_REFLECTION, SHADERPERMUTATION_SHADOWMAP2D, SHADERPERMUTATION_SHADOWMAPORTHO, SHADERPERMUTATION_SHADOWMAPVSDCT, SHADERPERMUTATION_SKELETAL, SHADERPERMUTATION_SPECULAR, SHADERPERMUTATION_TRIPPY, SHADERPERMUTATION_VERTEXTEXTUREBLEND, texture_t::shirttexture, texture_t::specularpower, TEXF_ALPHA, VectorLength2, and vid.
Referenced by R_DrawTextureSurfaceList_GL20(), and R_Shadow_RenderLighting_Light_GLSL().
| void R_SetupView | ( | qbool | allowwaterclippingplane, |
| int | viewfbo, | ||
| rtexture_t * | viewdepthtexture, | ||
| rtexture_t * | viewcolortexture, | ||
| int | viewx, | ||
| int | viewy, | ||
| int | viewwidth, | ||
| int | viewheight ) |
Definition at line 4384 of file gl_rmain.c.
References DotProduct, NULL, R_Mesh_SetRenderTargets(), r_refdef, R_SetViewport(), r_useinfinitefarclip, R_Viewport_InitOrtho3D(), R_Viewport_InitPerspective(), R_Viewport_InitPerspectiveInfinite(), r_water_clippingplanebias, and vid.
Referenced by R_RenderScene(), R_ResetViewRendering3D(), and R_Water_ProcessPlanes().
Definition at line 5713 of file r_shadow.c.
References Cvar_SetQuick(), Cvar_SetValueQuick(), dpsnprintf(), DrawQ_Pic(), DrawQ_String(), FONT_DEFAULT, int(), LIGHTFLAG_NORMALMODE, LIGHTFLAG_REALTIMEMODE, Mem_ExpandableArray_IndexRange(), Mem_ExpandableArray_RecordAtIndex(), NULL, r_editlights, r_editlights_current_ambient, r_editlights_current_angles, r_editlights_current_color, r_editlights_current_corona, r_editlights_current_coronasize, r_editlights_current_cubemap, r_editlights_current_diffuse, r_editlights_current_normalmode, r_editlights_current_origin, r_editlights_current_radius, r_editlights_current_realtimemode, r_editlights_current_shadows, r_editlights_current_specular, r_editlights_current_style, r_editlights_cursorlocation, r_editlights_drawproperties, r_shadow_selectedlight, r_shadow_worldlightsarray, vid_conwidth, x, and y.
Referenced by SCR_DrawScreen().
| int R_Shadow_GetRTLightInfo | ( | unsigned int | lightindex, |
| float * | origin, | ||
| float * | radius, | ||
| float * | color ) |
Definition at line 4777 of file r_shadow.c.
References color, rtlight_t::color, int(), Mem_ExpandableArray_IndexRange(), Mem_ExpandableArray_RecordAtIndex(), origin, r_shadow_worldlightsarray, rtlight_t::radius, dlight_t::rtlight, rtlight_t::shadoworigin, and VectorCopy.
Referenced by Mod_GenerateLightmaps_CreateLights(), and Mod_GenerateLightmaps_LightPoint().
Definition at line 601 of file r_shadow.c.
References Cvar_RegisterVariable(), gl_flashblend, maxshadowmark, maxshadowsides, maxshadowtriangles, maxshadowvertices, maxvertexupdate, Mem_ExpandableArray_NewArray(), NULL, numshadowmark, numshadowsides, r_coronas, r_coronas_occlusionquery, r_coronas_occlusionsizescale, r_main_mempool, R_RegisterModule(), r_shadow_bouncegrid, r_shadow_bouncegrid_blur, r_shadow_bouncegrid_dynamic_bounceminimumintensity, r_shadow_bouncegrid_dynamic_culllightpaths, r_shadow_bouncegrid_dynamic_directionalshading, r_shadow_bouncegrid_dynamic_dlightparticlemultiplier, r_shadow_bouncegrid_dynamic_hitmodels, r_shadow_bouncegrid_dynamic_lightradiusscale, r_shadow_bouncegrid_dynamic_maxbounce, r_shadow_bouncegrid_dynamic_maxphotons, r_shadow_bouncegrid_dynamic_quality, r_shadow_bouncegrid_dynamic_spacing, r_shadow_bouncegrid_dynamic_updateinterval, r_shadow_bouncegrid_dynamic_x, r_shadow_bouncegrid_dynamic_y, r_shadow_bouncegrid_dynamic_z, r_shadow_bouncegrid_floatcolors, r_shadow_bouncegrid_includedirectlighting, r_shadow_bouncegrid_intensity, r_shadow_bouncegrid_lightpathsize, r_shadow_bouncegrid_normalizevectors, r_shadow_bouncegrid_particlebounceintensity, r_shadow_bouncegrid_particleintensity, r_shadow_bouncegrid_rng_seed, r_shadow_bouncegrid_rng_type, r_shadow_bouncegrid_static, r_shadow_bouncegrid_static_bounceminimumintensity, r_shadow_bouncegrid_static_directionalshading, r_shadow_bouncegrid_static_lightradiusscale, r_shadow_bouncegrid_static_maxbounce, r_shadow_bouncegrid_static_maxphotons, r_shadow_bouncegrid_static_quality, r_shadow_bouncegrid_static_spacing, r_shadow_bouncegrid_subsamples, r_shadow_bouncegrid_threaded, r_shadow_buffer_leaflist, r_shadow_buffer_leafpvs, r_shadow_buffer_lighttrispvs, r_shadow_buffer_numleafpvsbytes, r_shadow_buffer_numsurfacepvsbytes, r_shadow_buffer_shadowtrispvs, r_shadow_buffer_surfacelist, r_shadow_buffer_surfacepvs, r_shadow_buffer_surfacesides, r_shadow_buffer_visitingleafpvs, r_shadow_bumpscale_basetexture, r_shadow_bumpscale_bumpmap, r_shadow_culllights_pvs, r_shadow_culllights_trace, r_shadow_culllights_trace_delay, r_shadow_culllights_trace_enlarge, r_shadow_culllights_trace_expand, r_shadow_culllights_trace_eyejitter, r_shadow_culllights_trace_pad, r_shadow_culllights_trace_samples, r_shadow_culllights_trace_tempsamples, r_shadow_debuglight, r_shadow_deferred, R_Shadow_EditLights_Init(), r_shadow_frontsidecasting, r_shadow_gloss, r_shadow_gloss2exponent, r_shadow_gloss2intensity, r_shadow_glossexact, r_shadow_glossexponent, r_shadow_glossintensity, r_shadow_lightattenuationdividebias, r_shadow_lightattenuationlinearscale, r_shadow_lightintensityscale, r_shadow_lightradiusscale, r_shadow_newmap(), r_shadow_projectdistance, r_shadow_realtime_dlight, r_shadow_realtime_dlight_portalculling, r_shadow_realtime_dlight_shadows, r_shadow_realtime_dlight_svbspculling, r_shadow_realtime_world, r_shadow_realtime_world_compile, r_shadow_realtime_world_compileportalculling, r_shadow_realtime_world_compileshadow, r_shadow_realtime_world_compilesvbsp, r_shadow_realtime_world_importlightentitiesfrommap, r_shadow_realtime_world_lightmaps, r_shadow_realtime_world_shadows, r_shadow_scenelightlist, r_shadow_scenemaxlights, r_shadow_scenenumlights, r_shadow_scissor, r_shadow_shadowmapping, r_shadow_shadowmapping_bias, r_shadow_shadowmapping_bordersize, r_shadow_shadowmapping_depthbits, r_shadow_shadowmapping_filterquality, r_shadow_shadowmapping_maxsize, r_shadow_shadowmapping_minsize, r_shadow_shadowmapping_nearclip, r_shadow_shadowmapping_polygonfactor, r_shadow_shadowmapping_polygonoffset, r_shadow_shadowmapping_precision, r_shadow_shadowmapping_texturesize, r_shadow_shadowmapping_useshadowsampler, r_shadow_shadowmapping_vsdct, r_shadow_shutdown(), r_shadow_sortsurfaces, r_shadow_start(), r_shadow_usebihculling, r_shadow_usenormalmap, r_shadow_worldlightsarray, shadowelements, shadowmark, shadowmarkcount, shadowmarklist, shadowsides, shadowsideslist, shadowvertex3f, vertexremap, vertexupdate, and vertexupdatenum.
Referenced by Render_Init().
Definition at line 2755 of file r_shadow.c.
References host, LIGHTFLAG_NORMALMODE, LIGHTFLAG_REALTIMEMODE, Mem_Alloc, NULL, R_FreeTexture(), r_main_mempool, r_refdef, R_Shadow_BounceGrid_AssignPhotons_Task(), R_Shadow_BounceGrid_BlurPixels_Task(), R_Shadow_BounceGrid_CheckEnable(), R_Shadow_BounceGrid_ClearTex_Task(), R_Shadow_BounceGrid_ConvertPixelsAndUpload(), r_shadow_bouncegrid_dynamic_updateinterval, R_Shadow_BounceGrid_EnqueuePhotons_Task(), R_Shadow_BounceGrid_EnqueueSlices_Task(), R_Shadow_BounceGrid_FreeHighPixels(), R_Shadow_BounceGrid_GenerateSettings(), r_shadow_bouncegrid_intensity, r_shadow_bouncegrid_state, R_Shadow_BounceGrid_UpdateSpacing(), R_TimeReport(), r_shadow_bouncegrid_settings_t::staticmode, TaskQueue_Enqueue(), TaskQueue_Setup(), and TaskQueue_WaitForTaskDone().
Referenced by R_RenderView().
| skinframe_t * R_SkinFrame_Find | ( | const char * | name, |
| int | textureflags, | ||
| int | comparewidth, | ||
| int | compareheight, | ||
| int | comparecrc, | ||
| qbool | add ) |
Definition at line 2240 of file gl_rmain.c.
References skinframe_t::basename, skinframe_t::comparecrc, skinframe_t::compareheight, skinframe_t::comparewidth, CRC_Block(), dp_strlcpy, Image_StripImageExtension(), MAX_QPATH, Mem_ExpandableArray_AllocRecord(), name, skinframe_t::next, NULL, r_skinframe, R_SkinFrame_MarkUsed(), R_SkinFrame_PurgeSkinFrame(), SKINFRAME_HASH, strlen(), TEXF_FORCE_RELOAD, TEXF_IMPORTANTBITS, and skinframe_t::textureflags.
Referenced by R_LoadQWSkin(), R_SkinFrame_LoadExternal(), R_SkinFrame_LoadExternal_SkinFrame(), R_SkinFrame_LoadInternal8bit(), R_SkinFrame_LoadInternalBGRA(), R_SkinFrame_LoadInternalQuake(), R_SkinFrame_LoadInternalUsingTexture(), and R_SkinFrame_LoadMissing().
| skinframe_t * R_SkinFrame_FindNextByName | ( | skinframe_t * | last, |
| const char * | name ) |
Definition at line 2217 of file gl_rmain.c.
References skinframe_t::basename, CRC_Block(), Image_StripImageExtension(), MAX_QPATH, name, skinframe_t::next, NULL, r_skinframe, SKINFRAME_HASH, and strlen().
| skinframe_t * R_SkinFrame_LoadExternal | ( | const char * | name, |
| int | textureflags, | ||
| qbool | complain, | ||
| qbool | fallbacknotexture ) |
Definition at line 2314 of file gl_rmain.c.
References skinframe_t::base, ca_dedicated, cls, name, NULL, R_SkinFrame_Find(), and R_SkinFrame_LoadExternal_SkinFrame().
Referenced by Draw_CachePic_Flags(), Draw_GetPicTexture(), Draw_IsPicLoaded(), Mod_CreateShaderPassFromQ3ShaderLayer(), Mod_IDP0_Load(), Mod_IDS2_Load(), Mod_LoadTextureFromQ3Shader(), Mod_Q1BSP_LoadTextures(), Mod_Sprite_SharedSetup(), R_InitParticleTexture(), and R_ReplaceWorldTexture_f().
| skinframe_t * R_SkinFrame_LoadExternal_SkinFrame | ( | skinframe_t * | skinframe, |
| const char * | name, | ||
| int | textureflags, | ||
| qbool | complain, | ||
| qbool | fallbacknotexture ) |
Definition at line 2331 of file gl_rmain.c.
References skinframe_t::avgcolor, skinframe_t::base, skinframe_t::basename, ca_dedicated, cls, Con_Printf(), developer_loading, skinframe_t::fog, gl_texturecompression, gl_texturecompression_color, gl_texturecompression_gloss, gl_texturecompression_glow, gl_texturecompression_normal, gl_texturecompression_reflectmask, skinframe_t::gloss, skinframe_t::glow, skinframe_t::hasalpha, Image_GenerateNoTexture(), image_height, Image_HeightmapToNormalmap_BGRA(), Image_StripImageExtension(), image_width, loadimagepixelsbgra(), MAX_QPATH, Mem_Alloc, Mem_Free, skinframe_t::merged, name, skinframe_t::nmap, NULL, skinframe_t::pants, pixels, r_loaddds, r_loadfog, r_loadgloss, r_loadnormalmap, R_LoadTexture2D(), R_LoadTextureDDSFile(), r_main_texturepool, r_mipnormalmaps, R_PicmipForFlags(), r_savedds, R_SaveTextureDDSFile(), r_shadow_bumpscale_basetexture, r_shadow_bumpscale_bumpmap, R_SkinFrame_Find(), R_SKINFRAME_LOAD_AVERAGE_COLORS, r_texture_dds_save, skinframe_t::reflect, skinframe_t::shirt, skinframe_t::stain, tempmempool, TEXF_ALPHA, TEXF_COMPRESS, TEXF_FORCE_RELOAD, TEXF_MIPMAP, TEXTYPE_BGRA, TEXTYPE_SRGB_BGRA, va(), VectorCopy, and vid.
Referenced by Draw_CachePic_Flags(), and R_SkinFrame_LoadExternal().
| skinframe_t * R_SkinFrame_LoadInternal8bit | ( | const char * | name, |
| int | textureflags, | ||
| const unsigned char * | skindata, | ||
| int | width, | ||
| int | height, | ||
| const unsigned int * | palette, | ||
| const unsigned int * | alphapalette ) |
Definition at line 2749 of file gl_rmain.c.
References skinframe_t::base, skinframe_t::basename, ca_dedicated, cls, Con_Printf(), CRC_Block(), developer_loading, skinframe_t::fog, skinframe_t::gloss, skinframe_t::glow, skinframe_t::hasalpha, height, skinframe_t::merged, name, skinframe_t::nmap, NULL, skinframe_t::pants, r_loadfog, R_LoadTexture2D(), r_main_texturepool, R_SkinFrame_Find(), R_SKINFRAME_LOAD_AVERAGE_COLORS, skinframe_t::reflect, skinframe_t::shirt, skinframe_t::stain, TEXF_ALPHA, TEXF_FORCE_RELOAD, TEXTYPE_PALETTE, va(), and width.
Referenced by R_Shadow_MakeTextures().
| skinframe_t * R_SkinFrame_LoadInternalBGRA | ( | const char * | name, |
| int | textureflags, | ||
| const unsigned char * | skindata, | ||
| int | width, | ||
| int | height, | ||
| int | comparewidth, | ||
| int | compareheight, | ||
| int | comparecrc, | ||
| qbool | sRGB ) |
Definition at line 2546 of file gl_rmain.c.
References a, b, skinframe_t::base, skinframe_t::basename, ca_dedicated, cls, Con_Printf(), developer_loading, skinframe_t::fog, skinframe_t::gloss, skinframe_t::glow, skinframe_t::hasalpha, height, Image_HeightmapToNormalmap_BGRA(), Mem_Alloc, Mem_Free, skinframe_t::merged, name, skinframe_t::nmap, NULL, skinframe_t::pants, r_loadfog, r_loadnormalmap, R_LoadTexture2D(), r_main_texturepool, r_mipnormalmaps, r_shadow_bumpscale_basetexture, R_SkinFrame_Find(), R_SKINFRAME_LOAD_AVERAGE_COLORS, skinframe_t::reflect, skinframe_t::shirt, skinframe_t::stain, tempmempool, TEXF_ALPHA, TEXF_FORCE_RELOAD, TEXF_MIPMAP, TEXTYPE_BGRA, TEXTYPE_SRGB_BGRA, va(), and width.
Referenced by CL_Beams_SetupBuiltinTexture(), Curl_EndDownload(), Draw_NewPic(), Mod_Q1BSP_LoadSplitSky(), Mod_Q1BSP_LoadTextures(), Mod_Sprite_SharedSetup(), R_InitParticleTexture(), R_LoadSkyBox(), R_Shadow_MakeTextures_MakeCorona(), and R_SkinFrame_LoadNoTexture().
| skinframe_t * R_SkinFrame_LoadInternalQuake | ( | const char * | name, |
| int | textureflags, | ||
| int | loadpantsandshirt, | ||
| int | loadglowtexture, | ||
| const unsigned char * | skindata, | ||
| int | width, | ||
| int | height ) |
Definition at line 2616 of file gl_rmain.c.
References skinframe_t::base, ca_dedicated, cls, Con_Printf(), CRC_Block(), developer_loading, skinframe_t::fog, skinframe_t::gloss, skinframe_t::glow, skinframe_t::hasalpha, height, Mem_Alloc, skinframe_t::merged, name, skinframe_t::nmap, NULL, palette_bgra_complete, palette_featureflags, PALETTEFEATURE_GLOW, PALETTEFEATURE_PANTS, PALETTEFEATURE_SHIRT, skinframe_t::pants, skinframe_t::qgeneratebase, skinframe_t::qgenerateglow, skinframe_t::qgeneratemerged, skinframe_t::qgeneratenmap, skinframe_t::qhascolormapping, skinframe_t::qheight, skinframe_t::qpixels, skinframe_t::qwidth, r_main_mempool, r_shadow_bumpscale_basetexture, R_SkinFrame_Find(), R_SKINFRAME_LOAD_AVERAGE_COLORS, skinframe_t::reflect, skinframe_t::shirt, skinframe_t::stain, and width.
Referenced by Mod_IDP0_Load(), Mod_Q1BSP_LoadTextures(), and R_LoadQWSkin().
| skinframe_t * R_SkinFrame_LoadInternalUsingTexture | ( | const char * | name, |
| int | textureflags, | ||
| rtexture_t * | tex, | ||
| int | width, | ||
| int | height, | ||
| qbool | sRGB ) |
Definition at line 2840 of file gl_rmain.c.
References skinframe_t::avgcolor, skinframe_t::base, ca_dedicated, cls, Con_Printf(), developer_loading, skinframe_t::fog, skinframe_t::gloss, skinframe_t::glow, skinframe_t::hasalpha, height, skinframe_t::merged, name, skinframe_t::nmap, NULL, skinframe_t::pants, R_SkinFrame_Find(), skinframe_t::reflect, skinframe_t::shirt, skinframe_t::stain, TEXF_ALPHA, TEXF_FORCE_RELOAD, Vector4Set, and width.
| skinframe_t * R_SkinFrame_LoadMissing | ( | void | ) |
Definition at line 2804 of file gl_rmain.c.
References skinframe_t::avgcolor, skinframe_t::base, ca_dedicated, cls, skinframe_t::fog, skinframe_t::gloss, skinframe_t::glow, skinframe_t::hasalpha, skinframe_t::merged, skinframe_t::nmap, NULL, skinframe_t::pants, R_SkinFrame_Find(), skinframe_t::reflect, skinframe_t::shirt, skinframe_t::stain, and TEXF_FORCENEAREST.
Referenced by Mod_BuildAliasSkinsFromSkinFiles(), Mod_IDP2_Load(), Mod_IDS2_Load(), Mod_LoadTextureFromQ3Shader(), Mod_Q1BSP_LoadTextures(), Mod_Sprite_SharedSetup(), and Mod_SpriteSetupTexture().
| skinframe_t * R_SkinFrame_LoadNoTexture | ( | void | ) |
Definition at line 2832 of file gl_rmain.c.
References ca_dedicated, cls, Image_GenerateNoTexture(), NULL, R_SkinFrame_LoadInternalBGRA(), and TEXF_FORCENEAREST.
| void R_SkinFrame_MarkUsed | ( | skinframe_t * | skinframe | ) |
Definition at line 2176 of file gl_rmain.c.
References skinframe_t::loadsequence, and r_skinframe.
Referenced by Draw_CachePic_Flags(), Draw_NewPic(), gl_draw_newmap(), mod_newmap(), r_lightningbeams_newmap(), r_part_newmap(), r_shadow_newmap(), and R_SkinFrame_Find().
Definition at line 2168 of file gl_rmain.c.
References r_skinframe.
Referenced by R_Modules_NewMap().
Definition at line 2203 of file gl_rmain.c.
References skinframe_t::loadsequence, skinframe_t::next, r_skinframe, R_SkinFrame_PurgeSkinFrame(), and SKINFRAME_HASH.
Referenced by R_Modules_NewMap().
| void R_SkinFrame_PurgeSkinFrame | ( | skinframe_t * | skinframe | ) |
Definition at line 2184 of file gl_rmain.c.
References skinframe_t::base, skinframe_t::fog, skinframe_t::gloss, skinframe_t::glow, skinframe_t::loadsequence, skinframe_t::merged, skinframe_t::nmap, NULL, skinframe_t::pants, R_PurgeTexture(), skinframe_t::reflect, skinframe_t::shirt, and skinframe_t::stain.
Referenced by Draw_CachePic_Flags(), Draw_Frame(), Draw_FreePic(), Draw_NewPic(), Mod_UnloadCustomMaterial(), R_SkinFrame_Find(), R_SkinFrame_Purge(), and R_UnloadSkyBox().
Definition at line 403 of file r_sky.c.
References GL_Scissor(), GL_ScissorTest(), Matrix4x4_CreateFromQuakeEntity(), Matrix4x4_Invert_Simple(), r_refdef, r_sky_scissor, R_SkyBox(), R_SkySphere(), skyinversematrix, skymatrix, skyrenderbox, skyrendersphere, and skyscissor.
Referenced by R_RenderScene().
Definition at line 464 of file r_sky.c.
References CF_CLIENT, Cmd_AddCommand(), Cvar_RegisterVariable(), LoadSky_f(), NULL, R_RegisterModule(), r_sky, r_sky_newmap(), r_sky_scissor, r_sky_shutdown(), r_sky_start(), r_skyscroll1, r_skyscroll2, skyboxskinframe, and skyname.
Referenced by Render_Init().
Definition at line 57 of file r_sky.c.
References r_refdef, r_sky, skyboxskinframe, skyrenderbox, skyrenderlater, skyrendermasked, skyrendersphere, skyscissor, and Vector4Clear.
Referenced by R_RenderScene().
| void R_Stain | ( | const vec3_t | origin, |
| float | radius, | ||
| int | cr1, | ||
| int | cg1, | ||
| int | cb1, | ||
| int | ca1, | ||
| int | cr2, | ||
| int | cg2, | ||
| int | cb2, | ||
| int | ca2 ) |
Definition at line 298 of file gl_rsurf.c.
References cl, entity_render_t::inversematrix, Matrix4x4_Transform(), entity_render_t::model, model, n, NULL, origin, r_refdef, and R_StainNode().
Referenced by CL_ParticleEffect_Fallback(), CL_ParticleExplosion(), and R_DrawParticles().
Definition at line 720 of file gl_textures.c.
References CF_CLIENT, Cmd_AddCommand(), Cvar_RegisterVariable(), gl_max_lightmapsize, gl_max_size, gl_picmip, gl_picmip_other, gl_picmip_sprites, gl_picmip_world, gl_texture_anisotropy, gl_texturecompression, gl_texturecompression_2d, gl_texturecompression_color, gl_texturecompression_gloss, gl_texturecompression_glow, gl_texturecompression_lightcubemaps, gl_texturecompression_normal, gl_texturecompression_q3bspdeluxemaps, gl_texturecompression_q3bsplightmaps, gl_texturecompression_reflectmask, gl_texturecompression_sky, gl_texturecompression_sprites, GL_TextureMode_f(), r_lerpimages, r_picmipsprites, r_picmipworld, R_RegisterModule(), r_texture_dds_load_alphamode, r_texture_dds_load_logfailure, r_texture_dds_swdecode, r_textures_devicelost(), r_textures_devicerestored(), r_textures_newmap(), r_textures_shutdown(), r_textures_start(), and R_TextureStats_f().
Referenced by Render_Init().
| void R_TimeReport | ( | const char * | name | ) |
Definition at line 193 of file r_stats.c.
References CHECKGLERROR, dp_strlcat, dpsnprintf(), GL_Finish(), int(), length, r_speeds, r_speeds_longestitem, r_speeds_timestring, r_timereport_active, r_timereport_current, r_timereport_temp, speedstringcount, Sys_DirtyTime(), and vid_conwidth.
Referenced by CL_Frame(), CL_VM_DrawHud(), CL_VM_UpdateView(), Host_Frame(), R_RenderScene(), R_RenderView(), R_RenderWaterPlanes(), R_Shadow_DrawPrepass(), R_Shadow_UpdateBounceGridTexture(), S_PaintAndSubmit(), S_Update(), SCR_DrawScreen(), and SV_Frame().
Definition at line 5396 of file gl_rmain.c.
References bound, DotProduct, FOGMASKTABLEWIDTH, GAME_NEHAHRA, gamemode, gl_fogblue, gl_fogdensity, gl_fogenable, gl_foggreen, gl_fogred, gl_skyclip, max, R_BuildFogHeightTexture(), R_BuildFogTexture(), r_drawfog, r_fog_exp2, r_refdef, Vector4Set, VectorCopy, and VectorScale.
Referenced by R_ClearScreen(), and R_RenderScene().
Definition at line 5483 of file gl_rmain.c.
References bound, cl, Cvar_SetValueQuick(), gl_flashblend, mod_brushq3, NULL, r_ambient, r_dynamic, r_farclip_base, r_farclip_world, r_glsl_skeletal, r_gpuskeletal, R_LoadTexture2D(), r_main_texturepool, r_nearclip, r_refdef, r_shadow_frontsidecasting, r_shadow_realtime_dlight, r_shadow_realtime_dlight_shadows, r_shadow_realtime_world, r_shadow_realtime_world_lightmaps, r_shadow_realtime_world_shadows, r_showsurfaces, r_texture_gammaramps, r_texture_gammaramps_serial, R_Textures_Frame(), R_UpdateTexture(), RAMPWIDTH, RENDERPATH_GL32, RENDERPATH_GLES2, TEXF_CLAMP, TEXF_FORCELINEAR, TEXF_PERSISTENT, TEXTYPE_BGRA, vid, VID_BuildGammaTables(), vid_gammatables_serial, and vid_gammatables_trivial.
Referenced by R_Envmap_f(), and SCR_DrawScreen().
Definition at line 436 of file gl_rsurf.c.
References CHECKPVSBIT, mleaf_t::clusterindex, mleaf_t::firstleafsurface, host, mleaf_t::maxs, mportal_t::maxs, mleaf_t::mins, mportal_t::mins, model, mportal_t::next, NULL, mleaf_t::numleafsurfaces, mportal_t::past, mleaf_t::portals, R_CanSeeBox(), R_CullFrustum(), r_lockpvs, r_lockvisibility, r_main_mempool, r_nearclip, r_novis, r_refdef, r_stat_world_leafs, r_stat_world_portals, r_useportalculling, R_View_WorldVisibility_CullSurfaces(), r_vis_trace, r_vis_trace_delay, r_vis_trace_enlarge, r_vis_trace_expand, r_vis_trace_eyejitter, r_vis_trace_pad, r_vis_trace_samples, and mportal_t::tracetime.
Referenced by R_View_Update().
| void R_Water_AddWaterPlane | ( | msurface_t * | surface, |
| int | entno ) |
Definition at line 4640 of file gl_rmain.c.
References BATCHNEED_ARRAY_NORMAL, BATCHNEED_ARRAY_VERTEX, BATCHNEED_NOGAPS, r_waterstate_waterplane_t::camera_entity, texture_t::camera_entity, texture_t::currentmaterialflags, mplane_t::dist, DotProduct, fabs(), MATERIALFLAG_CAMERA, MATERIALFLAG_REFLECTION, MATERIALFLAG_REFRACTION, MATERIALFLAG_WATERSHADER, r_waterstate_waterplane_t::materialflags, Matrix4x4_Transform(), Matrix4x4_Transform3x3(), max, maxs, r_waterstate_waterplane_t::maxs, min, mins, r_waterstate_waterplane_t::mins, n, mplane_t::normal, normal, r_waterstate_waterplane_t::plane, PlaneClassify(), PlaneDiff, r_waterstate_waterplane_t::pvsbits, r_waterstate_waterplane_t::pvsvalid, r_fb, R_GetCurrentTexture(), r_main_mempool, r_refdef, RSurf_PrepareVerticesForBatch(), rsurface, msurface_t::texture, v, VectorAdd, VectorCopy, VectorMAM, VectorNegate, and VectorNormalize.
Referenced by R_Mod_DrawAddWaterPlanes().
Definition at line 3420 of file gl_rmain.c.
References CL_MeshEntities_Init(), Font_Init(), gl_backend_init(), GL_Draw_Init(), GL_Main_Init(), GL_Surf_Init(), Mod_RenderInit(), R_Explosion_Init(), R_LightningBeams_Init(), R_Particles_Init(), R_Shadow_Init(), R_Sky_Init(), R_Textures_Init(), and Sbar_Init().
Referenced by CL_Init().
| void RSurf_ActiveCustomEntity | ( | const matrix4x4_t * | matrix, |
| const matrix4x4_t * | inversematrix, | ||
| int | entflags, | ||
| double | shadertime, | ||
| float | r, | ||
| float | g, | ||
| float | b, | ||
| float | a, | ||
| int | numvertices, | ||
| const float * | vertex3f, | ||
| const float * | texcoord2f, | ||
| const float * | normal3f, | ||
| const float * | svector3f, | ||
| const float * | tvector3f, | ||
| const float * | color4f, | ||
| int | numtriangles, | ||
| const int * | element3i, | ||
| const unsigned short * | element3s, | ||
| qbool | wantnormals, | ||
| qbool | wanttangents ) |
Definition at line 7146 of file gl_rmain.c.
References a, entity_render_t::alpha, b, colormod, FOGMASKTABLEWIDTH, g, Matrix4x4_ScaleFromMatrix(), Matrix4x4_Transform(), Matrix4x4_TransformStandardPlane(), Mod_BuildNormals(), Mod_BuildTextureVectorsFromNormals(), NULL, r, R_EntityMatrix(), R_FrameData_Alloc(), r_refdef, r_smoothnormals_areaweighting, r_stat_batch_entitycustom_count, r_stat_batch_entitycustom_surfaces, r_stat_batch_entitycustom_triangles, r_stat_batch_entitycustom_vertices, entity_render_t::render_fullbright, entity_render_t::render_lightmap_ambient, entity_render_t::render_lightmap_diffuse, entity_render_t::render_modellight_ambient, entity_render_t::render_modellight_diffuse, entity_render_t::render_rtlight_diffuse, and rsurface.
Referenced by R_DrawCorona(), R_DrawModelDecals_Entity(), R_DrawNoModel_TransparentCallback(), R_Model_Sprite_Draw_TransparentCallback(), R_Shadow_DrawCursor_TransparentCallback(), R_Shadow_DrawLightSprite_TransparentCallback(), R_SkyBox(), and R_SkySphere().
| void RSurf_ActiveModelEntity | ( | const entity_render_t * | ent, |
| qbool | wantnormals, | ||
| qbool | wanttangents, | ||
| qbool | prepass ) |
Definition at line 6921 of file gl_rmain.c.
References entity_render_t::animcache_normal3f, entity_render_t::animcache_normal3f_bufferoffset, entity_render_t::animcache_normal3f_vertexbuffer, entity_render_t::animcache_skeletaltransform3x4, entity_render_t::animcache_skeletaltransform3x4buffer, entity_render_t::animcache_skeletaltransform3x4offset, entity_render_t::animcache_skeletaltransform3x4size, entity_render_t::animcache_svector3f, entity_render_t::animcache_svector3f_bufferoffset, entity_render_t::animcache_svector3f_vertexbuffer, entity_render_t::animcache_tvector3f, entity_render_t::animcache_tvector3f_bufferoffset, entity_render_t::animcache_tvector3f_vertexbuffer, entity_render_t::animcache_vertex3f, entity_render_t::animcache_vertex3f_bufferoffset, entity_render_t::animcache_vertex3f_vertexbuffer, model_t::brush, cl, cls, entity_render_t::entitynumber, entity_render_t::flags, FOGMASKTABLEWIDTH, framegroupblend_t::frame, entity_render_t::frameblend, entity_render_t::framegroupblend, entity_render_t::inversematrix, entity_render_t::matrix, Matrix4x4_ScaleFromMatrix(), Matrix4x4_Transform(), Matrix4x4_TransformStandardPlane(), entity_render_t::model, model, model_t::name, NULL, PROTOCOL_QUAKEWORLD, R_EntityMatrix(), R_FrameData_Alloc(), r_fullbright, r_fullbright_directed, r_polygonoffset_submodel_factor, r_polygonoffset_submodel_offset, r_refdef, r_stat_batch_entityanimate_count, r_stat_batch_entityanimate_surfaces, r_stat_batch_entityanimate_triangles, r_stat_batch_entityanimate_vertices, r_stat_batch_entitycache_count, r_stat_batch_entitycache_surfaces, r_stat_batch_entitycache_triangles, r_stat_batch_entitycache_vertices, r_stat_batch_entityskeletal_count, r_stat_batch_entityskeletal_surfaces, r_stat_batch_entityskeletal_triangles, r_stat_batch_entityskeletal_vertices, r_stat_batch_entitystatic_count, r_stat_batch_entitystatic_surfaces, r_stat_batch_entitystatic_triangles, r_stat_batch_entitystatic_vertices, RENDER_DYNAMICMODELLIGHT, RENDER_LIGHT, rsurface, entity_render_t::shadertime, entity_render_t::skeleton, entity_render_t::skinnum, model_brush_t::submodel, and entity_render_t::userwavefunc_param.
Referenced by R_DecalSystem_SplatEntity(), R_DrawBBoxMesh(), R_DrawModelDecals_Entity(), R_DrawModelSurfaces(), R_DrawParticle_TransparentCallback(), R_DrawSurface_TransparentCallback(), R_Mod_DrawAddWaterPlanes(), R_Mod_GetLightInfo(), R_Shadow_DrawCoronas(), R_Shadow_DrawEntityShadow(), R_Shadow_DrawModelShadowMaps(), R_Shadow_DrawWorldLight(), R_Shadow_DrawWorldShadow_ShadowMap(), and R_Shadow_SetupEntityLight().
Definition at line 8477 of file gl_rmain.c.
References msurface_t::num_firsttriangle, msurface_t::num_firstvertex, msurface_t::num_triangles, msurface_t::num_vertices, R_Mesh_Draw(), r_refdef, r_test, rsurface, and Sys_Error().
Referenced by R_DrawDebugModel(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_DepthOnly(), R_DrawTextureSurfaceList_GL20(), R_DrawTextureSurfaceList_ShowSurfaces(), R_DrawTextureSurfaceList_Sky(), R_Mod_DrawShadowMap(), R_Shadow_RenderLighting_Light_GLSL(), and R_Shadow_RenderLighting_VisibleLighting().
Definition at line 7308 of file gl_rmain.c.
References DotProduct, fogfrac, FogHeightFade, FOGMASKTABLEWIDTH, FogPlaneVertexDist, FogPlaneViewDist, int(), max, min, r_refdef, v, and VectorDistance.
Definition at line 7324 of file gl_rmain.c.
References DotProduct, fogfrac, FogHeightFade, FOGMASKTABLEWIDTH, FogPlaneVertexDist, FogPlaneViewDist, int(), max, min, r_refdef, rsurface, v, and VectorDistance.
Referenced by R_DrawBBoxMesh(), R_DrawModelDecals_Entity(), R_DrawNoModel_TransparentCallback(), and R_DrawParticle_TransparentCallback().
| void RSurf_PrepareVerticesForBatch | ( | int | batchneed, |
| int | texturenumsurfaces, | ||
| const msurface_t ** | texturesurfacelist ) |
Definition at line 7388 of file gl_rmain.c.
References b, BATCHNEED_ALLOWMULTIDRAW, BATCHNEED_ALWAYSCOPY, BATCHNEED_ARRAY_LIGHTMAP, BATCHNEED_ARRAY_NORMAL, BATCHNEED_ARRAY_SKELETAL, BATCHNEED_ARRAY_TEXCOORD, BATCHNEED_ARRAY_VECTOR, BATCHNEED_ARRAY_VERTEX, BATCHNEED_ARRAY_VERTEXCOLOR, BATCHNEED_NOGAPS, CrossProduct, q3shaderinfo_deform_t::deform, DotProduct, msurface_lightmapinfo_t::extents, f, forward, msurface_t::lightmapinfo, M_PI, Matrix4x4_Transform3x3(), min, Mod_BuildNormals(), Mod_BuildTextureVectorsFromNormals(), n, noise4f(), normal, NULL, msurface_t::num_firsttriangle, msurface_t::num_firstvertex, msurface_t::num_triangles, msurface_t::num_vertices, offsets, q3shaderinfo_deform_t::parms, Q3DEFORM_AUTOSPRITE, Q3DEFORM_AUTOSPRITE2, Q3DEFORM_BULGE, Q3DEFORM_MOVE, Q3DEFORM_NONE, Q3DEFORM_NORMAL, Q3DEFORM_PROJECTIONSHADOW, Q3DEFORM_TEXT0, Q3DEFORM_TEXT1, Q3DEFORM_TEXT2, Q3DEFORM_TEXT3, Q3DEFORM_TEXT4, Q3DEFORM_TEXT5, Q3DEFORM_TEXT6, Q3DEFORM_TEXT7, Q3DEFORM_WAVE, Q3TCGEN_ENVIRONMENT, Q3TCGEN_LIGHTMAP, Q3TCGEN_TEXTURE, Q3TCGEN_VECTOR, Q3TCMOD_TURBULENT, quadedges, r_batch_debugdynamicvertexpath, r_batch_multidraw, r_batch_multidraw_mintriangles, r_deformvertexes, R_EvaluateQ3WaveFunc(), R_FrameData_Alloc(), R_FrameData_Store(), r_refdef, r_smoothnormals_areaweighting, r_stat_batch_batches, r_stat_batch_copytriangles_batches, r_stat_batch_copytriangles_surfaces, r_stat_batch_copytriangles_triangles, r_stat_batch_copytriangles_vertices, r_stat_batch_dynamic_batches, r_stat_batch_dynamic_batches_because_cvar, r_stat_batch_dynamic_batches_because_deformvertexes_autosprite, r_stat_batch_dynamic_batches_because_deformvertexes_autosprite2, r_stat_batch_dynamic_batches_because_deformvertexes_bulge, r_stat_batch_dynamic_batches_because_deformvertexes_move, r_stat_batch_dynamic_batches_because_deformvertexes_normal, r_stat_batch_dynamic_batches_because_deformvertexes_wave, r_stat_batch_dynamic_batches_because_lightmapvertex, r_stat_batch_dynamic_batches_because_nogaps, r_stat_batch_dynamic_batches_because_tcgen_environment, r_stat_batch_dynamic_batches_because_tcgen_lightmap, r_stat_batch_dynamic_batches_because_tcgen_vector, r_stat_batch_dynamic_batches_because_tcmod_turbulent, r_stat_batch_dynamic_surfaces, r_stat_batch_dynamic_surfaces_because_cvar, r_stat_batch_dynamic_surfaces_because_deformvertexes_autosprite, r_stat_batch_dynamic_surfaces_because_deformvertexes_autosprite2, r_stat_batch_dynamic_surfaces_because_deformvertexes_bulge, r_stat_batch_dynamic_surfaces_because_deformvertexes_move, r_stat_batch_dynamic_surfaces_because_deformvertexes_normal, r_stat_batch_dynamic_surfaces_because_deformvertexes_wave, r_stat_batch_dynamic_surfaces_because_lightmapvertex, r_stat_batch_dynamic_surfaces_because_nogaps, r_stat_batch_dynamic_surfaces_because_tcgen_environment, r_stat_batch_dynamic_surfaces_because_tcgen_lightmap, r_stat_batch_dynamic_surfaces_because_tcgen_vector, r_stat_batch_dynamic_surfaces_because_tcmod_turbulent, r_stat_batch_dynamic_triangles, r_stat_batch_dynamic_triangles_because_cvar, r_stat_batch_dynamic_triangles_because_deformvertexes_autosprite, r_stat_batch_dynamic_triangles_because_deformvertexes_autosprite2, r_stat_batch_dynamic_triangles_because_deformvertexes_bulge, r_stat_batch_dynamic_triangles_because_deformvertexes_move, r_stat_batch_dynamic_triangles_because_deformvertexes_normal, r_stat_batch_dynamic_triangles_because_deformvertexes_wave, r_stat_batch_dynamic_triangles_because_lightmapvertex, r_stat_batch_dynamic_triangles_because_nogaps, r_stat_batch_dynamic_triangles_because_tcgen_environment, r_stat_batch_dynamic_triangles_because_tcgen_lightmap, r_stat_batch_dynamic_triangles_because_tcgen_vector, r_stat_batch_dynamic_triangles_because_tcmod_turbulent, r_stat_batch_dynamic_vertices, r_stat_batch_dynamic_vertices_because_cvar, r_stat_batch_dynamic_vertices_because_deformvertexes_autosprite, r_stat_batch_dynamic_vertices_because_deformvertexes_autosprite2, r_stat_batch_dynamic_vertices_because_deformvertexes_bulge, r_stat_batch_dynamic_vertices_because_deformvertexes_move, r_stat_batch_dynamic_vertices_because_deformvertexes_normal, r_stat_batch_dynamic_vertices_because_deformvertexes_wave, r_stat_batch_dynamic_vertices_because_lightmapvertex, r_stat_batch_dynamic_vertices_because_nogaps, r_stat_batch_dynamic_vertices_because_tcgen_environment, r_stat_batch_dynamic_vertices_because_tcgen_lightmap, r_stat_batch_dynamic_vertices_because_tcgen_vector, r_stat_batch_dynamic_vertices_because_tcmod_turbulent, r_stat_batch_dynamicskeletal_batches, r_stat_batch_dynamicskeletal_surfaces, r_stat_batch_dynamicskeletal_triangles, r_stat_batch_dynamicskeletal_vertices, r_stat_batch_fast_batches, r_stat_batch_fast_surfaces, r_stat_batch_fast_triangles, r_stat_batch_fast_vertices, r_stat_batch_surfaces, r_stat_batch_triangles, r_stat_batch_vertices, r_stat_batch_withgaps, R_TestQ3WaveFunc(), right, RSurf_RenumberElements(), rsurface, msurface_lightmapinfo_t::samples, scale, sin(), msurface_lightmapinfo_t::styles, sw, up, v, v1, v2, Vector4Set, VectorAdd, VectorClear, VectorCopy, VectorDistance2, VectorLength2, VectorLerp, VectorMA, VectorMAMAM, VectorMAMAMAM, VectorNegate, VectorNormalize, VectorReflect, VectorScale, VectorSubtract, w, q3shaderinfo_deform_t::wavefunc, and q3shaderinfo_deform_t::waveparms.
Referenced by R_DrawDebugModel(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_DepthOnly(), R_DrawTextureSurfaceList_ShowSurfaces(), R_DrawTextureSurfaceList_Sky(), R_Mod_DrawShadowMap(), R_SetupShader_Surface(), R_Shadow_RenderLighting_VisibleLighting(), R_Water_AddWaterPlane(), and RSurf_FindWaterPlaneForSurface().
| void RSurf_SetupDepthAndCulling | ( | bool | ui | ) |
Definition at line 8576 of file gl_rmain.c.
References GL_CullFace(), GL_DepthRange(), GL_DepthTest(), GL_NONE, GL_PolygonOffset(), MATERIALFLAG_NOCULLFACE, MATERIALFLAG_NODEPTHTEST, MATERIALFLAG_SHORTDEPTHRANGE, r_refdef, and rsurface.
Referenced by R_DrawModelTextureSurfaceList(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_DepthOnly(), R_DrawTextureSurfaceList_Sky(), and R_Shadow_RenderLighting().
Definition at line 7340 of file gl_rmain.c.
References GL_FLOAT, GL_UNSIGNED_BYTE, NULL, R_BUFFERDATA_INDEX16, R_BUFFERDATA_INDEX32, R_BufferData_Store(), R_BUFFERDATA_VERTEX, R_Mesh_ColorPointer(), R_Mesh_TexCoordPointer(), R_Mesh_VertexPointer(), and rsurface.
Referenced by R_SetupShader_Surface().
Definition at line 359 of file sbar.c.
References CF_CLIENT, cl_deathscoreboard, cl_showblur, cl_showdate, cl_showdate_format, cl_showfps, cl_showsound, cl_showspeed, cl_showspeed_factor, cl_showtex, cl_showtime, cl_showtime_format, cl_showtopspeed, Cmd_AddCommand(), crosshair_color_alpha, crosshair_color_blue, crosshair_color_green, crosshair_color_red, crosshair_size, Cvar_RegisterVariable(), Cvar_RegisterVirtual(), NULL, R_RegisterModule(), sbar_alpha_bg, sbar_alpha_fg, Sbar_DontShowScores_f(), sbar_flagstatus_pos, sbar_flagstatus_right, sbar_gametime, sbar_hudselector, sbar_info_pos, sbar_miniscoreboard_size, sbar_newmap(), sbar_scorerank, Sbar_ShowScores_f(), sbar_shutdown(), and sbar_start().
Referenced by Render_Init().
Definition at line 750 of file cl_screen.c.
References Con_DrawConsole(), con_vislines, key_consoleactive, KEY_CONSOLEACTIVE_FORCED, min, scr_con_current, scr_con_margin_bottom, SCR_InfobarHeight(), scr_loading, scr_loadingscreen_barheight, and vid_conheight.
Referenced by SCR_DrawScreen().
Definition at line 1368 of file cl_screen.c.
References cl, cl_message, cl_readstring, and MSG_ReadString().
Referenced by CL_ParseServerMessage().
Definition at line 1381 of file cl_screen.c.
References cl, cl_message, cl_readstring, cls, dp_strlcpy, GAME_NEHAHRA, gamemode, max, Mem_Alloc, Mem_Free, MSG_ReadByte, MSG_ReadShort, MSG_ReadString(), x, and y.
Referenced by CL_ParseServerMessage().
Definition at line 1425 of file cl_screen.c.
References CACHEPICFLAG_NOTPERSISTENT, cl, Draw_CachePic_Flags(), and DrawQ_Pic().
Referenced by SCR_DrawScreen().
|
extern |
Definition at line 83 of file cl_main.c.
Referenced by CL_Init(), and V_CalcViewBlend().
|
extern |
Definition at line 231 of file gl_rmain.c.
Referenced by GL_Main_Init(), and loadimagepixelsbgra().
|
extern |
Definition at line 236 of file r_shadow.c.
|
extern |
Definition at line 17 of file gl_backend.c.
Referenced by gl_backend_init(), M_Menu_Options_Effects_AdjustSliders(), M_Options_Effects_Draw(), and V_CalcViewBlend().
|
extern |
Definition at line 27 of file mathlib.c.
Referenced by Mathlib_Init(), Portal_CheckPolygon(), Portal_RecursiveFlow(), Portal_RecursiveFlowSearch(), and R_DrawPortals().
|
extern |
|
extern |
Definition at line 97 of file gl_rmain.c.
Referenced by DrawQ_FlushUI(), DrawQ_String_Scale(), and GL_Main_Init().
|
extern |
Definition at line 795 of file gl_draw.c.
Referenced by Con_DrawConsole(), DrawQ_FlushUI(), DrawQ_String_Scale(), R_TimeReport_EndFrame(), and Sbar_ShowFPS().
|
extern |
|
extern |
Definition at line 99 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_View_UpdateEntityVisible().
|
extern |
Definition at line 98 of file gl_rmain.c.
Referenced by CL_ClearState(), GL_Main_Init(), VM_CL_R_ClearScene(), and VM_CL_R_SetView().
|
extern |
Definition at line 121 of file gl_rmain.c.
Referenced by CL_RelinkLightFlashes(), GL_Main_Init(), R_UpdateVariables(), and R_Water_ProcessPlanes().
|
extern |
Definition at line 265 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_BlendView(), R_BlendView_IsTrivial(), R_Bloom_MakeTexture(), R_Bloom_StartFrame(), R_DrawTextureSurfaceList_DepthOnly(), R_DrawTextureSurfaceList_GL20(), R_GetCurrentTexture(), R_Mod_DrawLight(), R_Model_Sprite_Draw_TransparentCallback(), R_MotionBlurView(), R_RenderTarget_FreeUnused(), R_RenderTarget_Get(), R_RenderView(), R_RenderWaterPlanes(), R_SetupShader_DeferredLight(), R_SetupShader_Surface(), R_Shadow_DrawCoronas(), R_Shadow_MakeShadowMap(), R_Shadow_PrepareLights(), R_Shadow_SetShadowMode(), R_View_UpdateEntityVisible(), R_Water_AddWaterPlane(), R_Water_ProcessPlanes(), R_Water_StartFrame(), and RSurf_FindWaterPlaneForSurface().
|
extern |
Definition at line 112 of file gl_rmain.c.
Referenced by CL_RelinkStaticEntities(), CL_RelinkWorld(), CL_UpdateEntityShading_Entity(), CL_UpdateNetworkEntity(), CSQC_AddRenderEdict(), GL_Main_Init(), RSurf_ActiveModelEntity(), and VM_CL_makestatic().
|
extern |
Definition at line 190 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_BlendView_IsTrivial(), and R_CompileShader_CheckStaticParms().
|
extern |
Definition at line 171 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_SetupShader_Surface().
|
extern |
Definition at line 172 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_SetupShader_Surface().
|
extern |
Definition at line 178 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_CompileShader_CheckStaticParms().
|
extern |
Definition at line 179 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_CompileShader_CheckStaticParms(), and R_SetupShader_Surface().
|
extern |
Definition at line 174 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_SetupShader_Surface().
|
extern |
Definition at line 177 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_SetupShader_Surface().
|
extern |
Definition at line 205 of file gl_rmain.c.
Referenced by CL_RelinkLightFlashes(), GL_Main_Init(), M_Menu_Options_Effects_AdjustSliders(), and M_Options_Effects_Draw().
|
extern |
Definition at line 203 of file gl_rmain.c.
Referenced by GL_Main_Init(), M_Menu_Options_Effects_AdjustSliders(), M_Options_Effects_Draw(), and VM_FrameBlendFromFrameGroupBlend().
|
extern |
Definition at line 202 of file gl_rmain.c.
Referenced by GL_Main_Init(), M_Menu_Options_Effects_AdjustSliders(), M_Options_Effects_Draw(), and VM_FrameBlendFromFrameGroupBlend().
|
extern |
Definition at line 42 of file gl_rmain.c.
Referenced by CL_Beams_SetupBuiltinTexture(), CL_Beams_SetupExternalTexture(), gl_backend_start(), GL_Main_Init(), gl_main_start(), R_BufferData_Resize(), R_BuildFogHeightTexture(), R_DrawModelSurfaces(), R_FrameData_Resize(), R_GetCubemap(), R_GetCurrentTexture(), R_InitShaderModeInfo(), R_Main_ResizeViewCache(), R_Mod_CompileShadowMap(), R_RTLight_Compile(), R_ShaderStrCat(), R_Shadow_BounceGrid_ConvertPixelsAndUpload(), R_Shadow_EnlargeLeafSurfaceTrisBuffer(), R_Shadow_Init(), R_Shadow_PrepareLights_AddSceneLight(), R_Shadow_PrepareShadowMark(), R_Shadow_PrepareShadowSides(), R_Shadow_ResizeShadowArrays(), R_Shadow_SetShadowMode(), R_Shadow_UpdateBounceGridTexture(), R_SkinFrame_LoadInternalQuake(), R_View_WorldVisibility(), R_Water_AddWaterPlane(), R_Water_ProcessPlanes(), and ShaderModeInfo_GetShaderText().
|
extern |
Definition at line 299 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_BeginCoronaQuery(), and R_Shadow_DrawCoronas().
|
extern |
Definition at line 76 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_UpdateVariables(), and R_View_WorldVisibility().
|
extern |
Definition at line 31 of file model_brush.c.
Referenced by Mod_BrushInit(), Mod_BSP_FatPVS(), R_GetCurrentTexture(), R_View_UpdateEntityVisible(), R_View_WorldVisibility(), and SV_MarkWriteEntityStateToClient().
|
extern |
Definition at line 298 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_BeginCoronaQuery(), and R_Shadow_DrawCoronas().
|
extern |
Definition at line 258 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_BuildLightMap(), and R_DrawModelSurfaces().
|
extern |
|
extern |
Definition at line 257 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_DrawModelSurfaces().
|
extern |
Definition at line 259 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_DrawModelSurfaces().
|
extern |
Definition at line 41 of file gl_rsurf.c.
Referenced by GL_Surf_Init(), and R_DrawTextureSurfaceList_Sky().
|
extern |
Definition at line 297 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_BeginCoronaQuery(), and R_Shadow_DrawCoronas().
|
extern |
Definition at line 57 of file gl_rmain.c.
Referenced by CL_Beam_AddPolygons(), CL_Beam_CalculatePositions(), CL_ClearTempEntities(), CL_ExpandCSQCRenderEntities(), CL_Fog_f(), CL_Fog_HeightTexture_f(), CL_Frame(), CL_GetEntityMatrix(), CL_GetTagMatrix(), CL_Init(), CL_LinkNetworkEntity(), CL_Locs_RemoveNearest_f(), CL_MeshEntities_Scene_AddRenderEntity(), CL_NewParticlesFromEffectinfo(), CL_NewTempEntity(), CL_ParseEntityLump(), CL_ParticleEffect_Fallback(), CL_RelinkBeams(), CL_RelinkLightFlashes(), CL_RelinkStaticEntities(), CL_RelinkWorld(), CL_TimeRefresh_f(), CL_UpdateEntityShading(), CL_UpdateEntityShading_Entity(), CL_UpdatePrydonCursor(), CL_UpdateScreen(), CL_UpdateWorld(), CL_VM_UpdateView(), Collision_Cache_Lookup(), CSQC_AddRenderEdict(), CSQC_R_RecalcView(), DrawQ_Finish(), DrawQ_FlushUI(), DrawQ_RecalcView(), DrawQ_SetClipArea(), DrawQ_Start(), FOG_clear(), gl_main_start(), Mod_BSP_LightPoint_RecursiveBSPNode(), Mod_Mesh_Finalize(), MP_Draw(), R_AnimCache_CacheVisibleEntities(), R_AnimCache_ClearCache(), R_AnimCache_GetEntity(), R_BeginCoronaQuery(), R_BlendView(), R_BlendView_IsTrivial(), R_Bloom_MakeTexture(), R_Bloom_StartFrame(), R_BufferData_Store(), R_BuildFogHeightTexture(), R_BuildFogTexture(), R_BuildLightMap(), R_CalcBeam_Vertex3f(), R_CanSeeBox(), R_ClearScreen(), R_CompleteLightPoint(), R_CullFrustum(), R_DebugLine(), R_DecalSystem_ApplySplatEntities(), R_DrawBBoxMesh(), R_DrawBrushModelsSky(), R_DrawCorona(), R_DrawDebugModel(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawModelDecals(), R_DrawModelDecals_Entity(), R_DrawModelDecals_FadeEntity(), R_DrawModels(), R_DrawModelsAddWaterPlanes(), R_DrawModelsDebug(), R_DrawModelsDepth(), R_DrawModelSurfaces(), R_DrawModelTextureSurfaceList(), R_DrawNoModel_TransparentCallback(), R_DrawParticle_TransparentCallback(), R_DrawParticles(), R_DrawPortal_Callback(), R_DrawPortals(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_ShowSurfaces(), R_DrawTextureSurfaceList_Sky(), R_Envmap_f(), R_FrameData_Alloc(), R_GetCurrentTexture(), R_GetScenePointer(), R_HDR_UpdateIrisAdaptation(), R_ListWorldTextures_f(), R_Main_FreeViewCache(), R_Main_ResizeViewCache(), R_Mesh_Draw(), R_Mesh_UpdateMeshBuffer(), R_MeshQueue_AddTransparent(), R_MeshQueue_BeginScene(), R_Mod_DrawAddWaterPlanes(), R_Mod_DrawDepth(), R_Mod_DrawLight(), R_Mod_DrawShadowMap(), R_Mod_GetLightInfo(), R_Model_Sprite_Draw_TransparentCallback(), R_MotionBlurView(), R_ProcessTransparentTextureSurfaceList(), R_RenderScene(), R_RenderTarget_Get(), R_RenderView(), R_RenderView_UpdateViewVectors(), R_RenderWaterPlanes(), R_ReplaceWorldTexture_f(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_RTLight_Compile(), R_ScissorForBBox(), R_SelectScene(), R_SetupShader_DeferredLight(), R_SetupShader_Surface(), R_SetupView(), R_Shadow_BounceGrid_AssignPhotons_Task(), R_Shadow_BounceGrid_CheckEnable(), R_Shadow_BounceGrid_UpdateSpacing(), R_Shadow_ClearShadowMapTexture(), R_Shadow_ClearStencil(), R_Shadow_ComputeShadowCasterCullingPlanes(), R_Shadow_CullFrustumSides(), R_Shadow_DrawCoronas(), R_Shadow_DrawCursor_TransparentCallback(), R_Shadow_DrawLight(), R_Shadow_DrawLightShadowMaps(), R_Shadow_DrawLightSprite_TransparentCallback(), R_Shadow_DrawModelShadowMaps(), R_Shadow_DrawPrepass(), R_Shadow_DrawWorldLight(), R_Shadow_DrawWorldShadow_ShadowMap(), R_Shadow_PrepareLight(), R_Shadow_PrepareLights(), R_Shadow_PrepareModelShadows(), R_Shadow_RenderMode_Begin(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_End(), R_Shadow_RenderMode_Lighting(), R_Shadow_RenderMode_Reset(), R_Shadow_RenderMode_ShadowMap(), R_Shadow_RenderMode_VisibleLighting(), R_Shadow_ScissorForBBox(), R_Shadow_SelectLightInView(), R_Shadow_SetCursorLocationForView(), R_Shadow_UpdateBounceGridTexture(), R_Sky(), R_SkySphere(), R_SkyStartFrame(), R_SortEntities(), R_Stain(), R_TimeReport_BeginFrame(), R_TimeReport_EndFrame(), R_TrackSprite(), R_UpdateFog(), R_UpdateVariables(), R_View_SetFrustum(), R_View_Update(), R_View_UpdateEntityVisible(), R_View_WorldVisibility(), R_View_WorldVisibility_CullSurfaces(), R_Water_AddWaterPlane(), R_Water_ProcessPlanes(), RSurf_ActiveCustomEntity(), RSurf_ActiveModelEntity(), RSurf_DrawBatch(), RSurf_FogPoint(), RSurf_FogVertex(), RSurf_PrepareVerticesForBatch(), RSurf_SetupDepthAndCulling(), Sbar_ShowFPS(), SCR_DrawScreen(), V_CalcIntermissionRefdef(), V_CalcRefdef(), V_CalcRefdefUsing(), V_CalcViewBlend(), V_MakeViewIsometric(), VM_CL_getlight(), VM_CL_project(), VM_CL_R_AddDynamicLight(), VM_CL_R_ClearScene(), VM_CL_R_RenderScene(), VM_CL_R_SetView(), and VM_CL_unproject().
|
extern |
|
extern |
|
extern |
vertex coordinates for a quad that covers the screen exactly
Definition at line 313 of file gl_rmain.c.
Referenced by R_BlendView(), R_Bloom_MakeTexture(), and R_MotionBlurView().
|
extern |
|
extern |
|
extern |
Definition at line 108 of file r_shadow.c.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_Surface(), R_Shadow_MakeTextures(), r_shadow_shutdown(), and r_shadow_start().
|
extern |
Definition at line 41 of file r_shadow.c.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_Surface(), and R_Shadow_SetShadowmapParametersForLight().
|
extern |
Definition at line 40 of file r_shadow.c.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_Surface(), and R_Shadow_SetShadowmapParametersForLight().
|
extern |
Definition at line 43 of file r_shadow.c.
Referenced by R_SetupShader_Surface(), and R_Shadow_DrawModelShadowMaps().
|
extern |
Definition at line 42 of file r_shadow.c.
Referenced by R_SetupShader_Surface(), and R_Shadow_DrawModelShadowMaps().
|
extern |
Definition at line 118 of file r_shadow.c.
Referenced by R_Shadow_PrepareLights(), r_shadow_shutdown(), and r_shadow_start().
|
extern |
Definition at line 117 of file r_shadow.c.
Referenced by R_Shadow_PrepareLights(), r_shadow_shutdown(), and r_shadow_start().
|
extern |
Definition at line 119 of file r_shadow.c.
Referenced by R_Shadow_FreeDeferred(), and R_Shadow_PrepareLights().
|
extern |
Definition at line 120 of file r_shadow.c.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_Surface(), R_Shadow_FreeDeferred(), and R_Shadow_PrepareLights().
|
extern |
Definition at line 121 of file r_shadow.c.
|
extern |
Definition at line 122 of file r_shadow.c.
|
extern |
Definition at line 110 of file r_shadow.c.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_Surface(), R_Shadow_ClearShadowMapTexture(), R_Shadow_FreeShadowMaps(), R_Shadow_MakeShadowMap(), R_Shadow_RenderMode_ShadowMap(), R_Shadow_SetShadowmapParametersForLight(), and r_shadow_start().
|
extern |
Definition at line 111 of file r_shadow.c.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_Surface(), R_Shadow_ClearShadowMapTexture(), R_Shadow_FreeShadowMaps(), R_Shadow_MakeShadowMap(), R_Shadow_SetShadowmapParametersForLight(), and r_shadow_start().
|
extern |
Definition at line 62 of file r_shadow.c.
Referenced by R_SetupShader_Surface(), and R_Shadow_DrawModelShadowMaps().
|
extern |
Definition at line 57 of file r_shadow.c.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_Surface(), R_Shadow_ClearShadowMapTexture(), R_Shadow_PrepareLights(), R_Shadow_SetShadowmapParametersForLight(), R_Shadow_SetShadowMode(), and r_shadow_start().
|
extern |
Definition at line 112 of file r_shadow.c.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_Surface(), R_Shadow_ClearShadowMapTexture(), R_Shadow_FreeShadowMaps(), R_Shadow_MakeVSDCT(), and r_shadow_start().
|
extern |
Definition at line 64 of file r_shadow.c.
|
extern |
Definition at line 37 of file r_shadow.c.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_Surface(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_Lighting(), and R_Shadow_RenderMode_Reset().
|
extern |
Definition at line 38 of file r_shadow.c.
Referenced by R_SetupShader_Surface(), R_Shadow_DrawModelShadowMaps(), and R_Shadow_PrepareLights().
|
extern |
Definition at line 126 of file r_shadow.c.
Referenced by R_RenderScene().
|
extern |
Definition at line 125 of file r_shadow.c.
Referenced by R_RenderScene().
|
extern |
Definition at line 124 of file r_shadow.c.
Referenced by R_RenderScene(), and R_Shadow_RenderMode_Reset().
|
extern |
Definition at line 130 of file r_shadow.c.
Referenced by R_RenderScene().
|
extern |
Definition at line 129 of file r_shadow.c.
Referenced by R_RenderScene().
|
extern |
Definition at line 127 of file r_shadow.c.
Referenced by R_RenderScene().
|
extern |
Definition at line 128 of file r_shadow.c.
Referenced by R_RenderScene().
|
extern |
Definition at line 123 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_Shadow_PrepareModelShadows(), and R_Water_ProcessPlanes().
|
extern |
Definition at line 128 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_Shadow_PrepareModelShadows().
|
extern |
Definition at line 124 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_Shadow_DrawModelShadowMaps().
|
extern |
Definition at line 127 of file gl_rmain.c.
Referenced by GL_Main_Init().
|
extern |
Definition at line 129 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_Shadow_DrawModelShadowMaps(), and R_Shadow_PrepareModelShadows().
|
extern |
Definition at line 131 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_Shadow_DrawModelShadowMaps().
|
extern |
Definition at line 130 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_Shadow_DrawModelShadowMaps(), and R_Shadow_PrepareModelShadows().
|
extern |
Definition at line 126 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_Shadow_DrawModelShadowMaps(), and R_Shadow_PrepareModelShadows().
|
extern |
Definition at line 125 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_Shadow_DrawModelShadowMaps(), and R_Shadow_PrepareModelShadows().
|
extern |
Definition at line 89 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_DrawDebugModel(), and R_RenderScene().
|
extern |
Definition at line 90 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_DrawDebugModel().
|
extern |
Definition at line 91 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_DrawDebugModel().
|
extern |
Definition at line 92 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_DrawDebugModel(), R_DrawEntityBBoxes_Callback(), and R_Shadow_RenderLighting().
|
extern |
Definition at line 88 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_Shadow_DrawLight(), and R_Shadow_RenderMode_VisibleLighting().
|
extern |
Definition at line 87 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_DrawDebugModel(), and R_RenderScene().
|
extern |
Definition at line 82 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_DrawDebugModel(), and R_RenderScene().
|
extern |
Definition at line 94 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_DrawParticle_TransparentCallback().
|
extern |
Definition at line 93 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_Model_Sprite_Draw_TransparentCallback().
|
extern |
Definition at line 86 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_DrawDebugModel(), and R_RenderScene().
|
extern |
|
extern |
Definition at line 9 of file r_sky.c.
Referenced by R_DrawTextureSurfaceList_Sky(), R_Sky(), and R_Sky_Init().
|
extern |
Definition at line 7 of file r_sky.c.
Referenced by M_Menu_Options_Effects_AdjustSliders(), M_Options_Effects_Draw(), R_Sky_Init(), and R_SkySphere().
|
extern |
Definition at line 8 of file r_sky.c.
Referenced by M_Menu_Options_Effects_AdjustSliders(), M_Options_Effects_Draw(), R_Sky_Init(), and R_SkySphere().
|
extern |
Definition at line 229 of file gl_rmain.c.
Referenced by GL_Main_Init(), Mod_Alias_MorphMesh_CompileFrames(), Mod_DARKPLACESMODEL_Load(), Mod_INTERQUAKEMODEL_Load(), Mod_OBJ_Load(), Mod_PSKMODEL_Load(), Mod_Q1BSP_LoadFaces(), Mod_Q3BSP_LoadFaces(), Mod_VBSP_LoadFaces(), Mod_ZYMOTICMODEL_Load(), RSurf_ActiveCustomEntity(), and RSurf_PrepareVerticesForBatch().
|
extern |
Definition at line 111 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_DrawModelSurfaces(), R_TimeReport(), R_TimeReport_BeginFrame(), R_TimeReport_EndFrame(), and VID_Finish().
|
extern |
shadow volume bsp struct with automatically growing nodes buffer
Definition at line 268 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_Q1BSP_CallRecursiveGetLightInfo(), R_Q1BSP_RecursiveGetLightInfo_BIH(), and R_Q1BSP_RecursiveGetLightInfo_BSP().
|
extern |
Definition at line 235 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_Shadow_DrawModelShadowMaps(), and RSurf_DrawBatch().
|
extern |
Definition at line 275 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_BuildBlankTextures(), R_GetCurrentTexture(), and R_SetupShader_Surface().
|
extern |
Definition at line 272 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), Mod_Q1BSP_LoadFaces(), Mod_Q3BSP_LoadFaces(), Mod_VBSP_LoadFaces(), R_BuildBlankTextures(), R_BuildLightMap(), R_GetCurrentTexture(), and R_SetupShader_Surface().
|
extern |
Definition at line 279 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_BuildFogTexture(), and R_SetupShader_Surface().
|
extern |
Definition at line 280 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_BuildFogHeightTexture(), and R_SetupShader_Surface().
|
extern |
Definition at line 274 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_BuildBlankTextures(), and R_GetCurrentTexture().
|
extern |
Definition at line 278 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), and R_BuildNormalizationCube().
|
extern |
Definition at line 276 of file gl_rmain.c.
Referenced by R_BuildNoTexture(), and R_GetCurrentTexture().
|
extern |
Definition at line 273 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_BuildBlankTextures(), R_GetCurrentTexture(), R_RealGetTexture(), and R_SetupShader_Surface().
|
extern |
Definition at line 277 of file gl_rmain.c.
Referenced by gl_main_shutdown(), gl_main_start(), R_BuildWhiteCube(), R_GetCubemap(), R_SetupShader_DeferredLight(), R_SetupShader_Surface(), and R_Shadow_PrepareLight().
|
extern |
used only by R_GetCurrentTexture, incremented per view and per UI render
Definition at line 45 of file gl_rmain.c.
Referenced by DrawQ_FlushUI(), R_GetCurrentTexture(), and R_RenderView().
|
extern |
Definition at line 189 of file r_stats.c.
Referenced by R_RenderScene(), R_RenderView(), R_RenderWaterPlanes(), R_Shadow_DrawPrepass(), R_TimeReport(), R_TimeReport_BeginFrame(), R_TimeReport_EndFrame(), and SCR_DrawScreen().
|
extern |
Definition at line 79 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_GetCurrentTexture(), and R_SetupShader_Surface().
|
extern |
Definition at line 143 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_MeshQueue_RenderTransparent().
|
extern |
Definition at line 142 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_MeshQueue_RenderTransparent().
|
extern |
Definition at line 141 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_MeshQueue_RenderTransparent().
|
extern |
Definition at line 80 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_Mod_DrawLight(), and R_ProcessTransparentTextureSurfaceList().
|
extern |
Definition at line 81 of file gl_rmain.c.
Referenced by GL_Main_Init(), and R_MeshQueue_AddTransparent().
|
extern |
Definition at line 29 of file model_brush.c.
Referenced by _R_CullBox(), Mod_BrushInit(), Mod_BSP_FatPVS(), R_DrawTextureSurfaceList_Sky(), R_GetCurrentTexture(), R_RenderView(), R_SetupShader_DepthOrShadow(), R_SetupShader_Generic(), R_SetupShader_Surface(), R_Shadow_ComputeShadowCasterCullingPlanes(), R_Shadow_ScissorForBBox(), R_View_WorldVisibility_CullSurfaces(), SV_MarkWriteEntityStateToClient(), and V_MakeViewIsometric().
|
extern |
Definition at line 160 of file gl_rmain.c.
Referenced by GL_Main_Init(), R_BlendView_IsTrivial(), R_Bloom_StartFrame(), and VID_Mode().
|
extern |
Definition at line 120 of file gl_rmain.c.
Referenced by GL_Main_Init(), M_Menu_Options_Effects_AdjustSliders(), M_Options_Effects_Draw(), R_DrawTextureSurfaceList_ShowSurfaces(), R_GetCurrentTexture(), and R_SetupShader_Surface().
|
extern |
Definition at line 206 of file gl_rmain.c.
Referenced by GL_Main_Init(), M_Menu_Options_Effects_AdjustSliders(), M_Options_Effects_Draw(), and R_RenderScene().
|
extern |
Definition at line 13 of file gl_backend.c.
Referenced by gl_backend_init(), M_Menu_Options_Effects_AdjustSliders(), M_Options_Effects_Draw(), and V_CalcViewBlend().
|
extern |
Definition at line 6919 of file gl_rmain.c.
Referenced by R_DecalSystem_SplatEntity(), R_DecalSystem_SplatTriangle(), R_DrawCustomSurface_Texture(), R_DrawDebugModel(), R_DrawModelDecals_Entity(), R_DrawModelSurfaces(), R_DrawNoModel(), R_DrawNoModel_TransparentCallback(), R_DrawPortals(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_DepthOnly(), R_DrawTextureSurfaceList_GL20(), R_DrawTextureSurfaceList_ShowSurfaces(), R_DrawTextureSurfaceList_Sky(), R_EvaluateQ3WaveFunc(), R_GetCurrentTexture(), R_Mod_DrawAddWaterPlanes(), R_Mod_DrawLight(), R_Mod_DrawShadowMap(), R_Mod_GetLightInfo(), R_Model_Sprite_Draw(), R_Model_Sprite_Draw_TransparentCallback(), R_ProcessModelTextureSurfaceList(), R_ProcessTransparentTextureSurfaceList(), R_Q1BSP_DrawLight_TransparentCallback(), R_QueueModelSurfaceList(), R_RenderView(), R_SetupShader_DeferredLight(), R_SetupShader_DepthOrShadow(), R_SetupShader_Surface(), R_Shadow_DrawEntityLight(), R_Shadow_DrawEntityShadow(), R_Shadow_DrawModelShadowMaps(), R_Shadow_DrawWorldLight(), R_Shadow_DrawWorldShadow_ShadowMap(), R_Shadow_RenderLighting(), R_Shadow_RenderLighting_VisibleLighting(), R_Shadow_RenderMode_ActiveLight(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_ShadowMap(), R_Shadow_SetShadowmapParametersForLight(), R_Shadow_SetupEntityLight(), R_tcMod_ApplyToMatrix(), R_TestQ3WaveFunc(), R_Water_AddWaterPlane(), RSurf_ActiveCustomEntity(), RSurf_ActiveModelEntity(), RSurf_DrawBatch(), RSurf_FindWaterPlaneForSurface(), RSurf_FogVertex(), RSurf_PrepareVerticesForBatch(), RSurf_SetupDepthAndCulling(), and RSurf_UploadBuffersForBatch().
|
extern |
Definition at line 10 of file r_sky.c.
Referenced by R_DrawTextureSurfaceList_Sky(), R_RenderScene(), and R_SkyStartFrame().
|
extern |
Definition at line 12 of file r_sky.c.
Referenced by R_DrawTextureSurfaceList_Sky(), R_Sky(), and R_SkyStartFrame().