![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
struct | gl_state_t |
struct | gltextureunit_t |
Macros | |
#define | BACKENDACTIVECHECK if (!gl_state.active) Sys_Error("GL backend function called when backend is not active"); |
#define | MAX_RENDERTARGETS 4 |
Variables | |
static int | bboxedges [12][2] |
static const char * | buffertypename [R_BUFFERDATA_COUNT] = {"vertex", "index16", "index32", "uniform"} |
float | cubeviewmatrix [6][16] |
static const GLuint | drawbuffers [4] = {GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1, GL_COLOR_ATTACHMENT2, GL_COLOR_ATTACHMENT3} |
cvar_t | gl_debug = {CF_CLIENT, "gl_debug", "0", "enables OpenGL 4.3 debug output, 0 = off, 1 = HIGH severity only, 2 = also MEDIUM severity, 3 = also LOW severity messages. (note: enabling may not take effect until vid_restart on some drivers, and only X11 and Windows are known to support the debug context)"} |
matrix4x4_t | gl_modelmatrix |
qbool | gl_modelmatrixchanged |
float | gl_modelview16f [16] |
matrix4x4_t | gl_modelviewmatrix |
float | gl_modelviewprojection16f [16] |
matrix4x4_t | gl_modelviewprojectionmatrix |
cvar_t | gl_paranoid = {CF_CLIENT, "gl_paranoid", "0", "enables OpenGL error checking and other tests"} |
cvar_t | gl_polyblend = {CF_CLIENT | CF_ARCHIVE, "gl_polyblend", "1", "tints view while underwater, hurt, etc"} |
cvar_t | gl_printcheckerror = {CF_CLIENT, "gl_printcheckerror", "0", "prints all OpenGL error checks, useful to identify location of driver crashes"} |
matrix4x4_t | gl_projectionmatrix |
static gl_state_t | gl_state |
matrix4x4_t | gl_viewmatrix |
r_viewport_t | gl_viewport |
int | polygonelement3i [(POLYGONELEMENTS_MAXPOINTS-2) *3] |
unsigned short | polygonelement3s [(POLYGONELEMENTS_MAXPOINTS-2) *3] |
int | quadelement3i [QUADELEMENTS_MAXQUADS *6] |
unsigned short | quadelement3s [QUADELEMENTS_MAXQUADS *6] |
cvar_t | r_render = {CF_CLIENT, "r_render", "1", "enables rendering 3D views (you want this on!)"} |
cvar_t | r_renderview = {CF_CLIENT, "r_renderview", "1", "enables rendering 3D views (you want this on!)"} |
cvar_t | r_waterwarp = {CF_CLIENT | CF_ARCHIVE, "r_waterwarp", "1", "warp view while underwater"} |
float | rectviewmatrix [6][16] |
cvar_t | v_flipped = {CF_CLIENT, "v_flipped", "0", "mirror the screen (poor man's left handed mode)"} |
qbool | v_flipped_state = false |
#define BACKENDACTIVECHECK if (!gl_state.active) Sys_Error("GL backend function called when backend is not active"); |
Definition at line 110 of file gl_backend.c.
Referenced by R_Mesh_ResetTextureState(), and R_Mesh_Start().
#define MAX_RENDERTARGETS 4 |
Definition at line 5 of file gl_backend.c.
Definition at line 1141 of file gl_backend.c.
References CHECKGLERROR, gl_state, GL_TEXTURE0, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, gl_state_t::unit, and vid.
Referenced by GL_TextureMode_f(), R_LoadTextureDDSFile(), R_Mesh_CopyToTexture(), R_Mesh_TexBind(), R_SaveTextureDDSFile(), R_Textures_Frame(), R_UploadFullTexture(), and R_UploadPartialTexture().
Definition at line 1374 of file gl_backend.c.
References gl_state_t::alphatocoverage, CHECKGLERROR, GL_SAMPLE_ALPHA_TO_COVERAGE, gl_state, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_SetupShader_DeferredLight(), R_SetupShader_DepthOrShadow(), R_SetupShader_Generic(), and R_SetupShader_Surface().
unsigned int GL_Backend_CompileProgram | ( | int | vertexstrings_count, |
const char ** | vertexstrings_list, | ||
int | geometrystrings_count, | ||
const char ** | geometrystrings_list, | ||
int | fragmentstrings_count, | ||
const char ** | fragmentstrings_list ) |
Definition at line 1690 of file gl_backend.c.
References CHECKGLERROR, Con_DPrintf(), developer_extra, GL_Backend_CompileShader(), GL_FRAGMENT_SHADER, GL_LINK_STATUS, GL_VERTEX_SHADER, GLSLATTRIB_COLOR, GLSLATTRIB_POSITION, GLSLATTRIB_TEXCOORD0, GLSLATTRIB_TEXCOORD1, GLSLATTRIB_TEXCOORD2, GLSLATTRIB_TEXCOORD3, GLSLATTRIB_TEXCOORD4, GLSLATTRIB_TEXCOORD5, GLSLATTRIB_TEXCOORD6, GLSLATTRIB_TEXCOORD7, cvar_t::integer, MAX_INPUTLINE, and NULL.
Referenced by R_GLSL_CompilePermutation().
|
static |
Definition at line 1659 of file gl_backend.c.
References CHECKGLERROR, Con_Printf(), developer, developer_extra, GL_COMPILE_STATUS, i, cvar_t::integer, MAX_INPUTLINE, and NULL.
Referenced by GL_Backend_CompileProgram().
Definition at line 304 of file gl_backend.c.
References buffer, gl_state, i, int(), Mem_ExpandableArray_IndexRange(), Mem_ExpandableArray_RecordAtIndex(), gl_state_t::meshbufferarray, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by gl_backend_init().
Definition at line 329 of file gl_backend.c.
References viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by gl_backend_init().
Definition at line 1756 of file gl_backend.c.
References CHECKGLERROR.
Referenced by R_GLSL_Restart_f().
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(), i, 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 1075 of file gl_backend.c.
References gl_state_t::active, gl_state_t::alphatocoverage, viddef_support_t::arb_debug_output, gl_state_t::blend, gl_state_t::blendfunc1, gl_state_t::blendfunc2, CHECKGLERROR, gl_state_t::color4f, gl_state_t::colormask, Con_Print(), gl_state_t::cullface, gl_state_t::cullfaceenable, gl_state_t::defaultframebufferobject, gl_state_t::depthfunc, gl_state_t::depthmask, gl_state_t::depthtest, gl_state_t::framebufferobject, GL_ARRAY_BUFFER, GL_BLEND, GL_CULL_FACE, gl_debug, GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB, GL_DEBUG_SEVERITY_HIGH_ARB, GL_DEBUG_SEVERITY_LOW_ARB, GL_DEBUG_SEVERITY_MEDIUM_ARB, GL_DebugOutputCallback(), GL_DEPTH_TEST, GL_DONT_CARE, GL_ELEMENT_ARRAY_BUFFER, GL_FALSE, GL_FRAMEBUFFER, GL_FRONT, GL_LEQUAL, GL_ONE, gl_state, GL_TRUE, GL_ZERO, GLSLATTRIB_COLOR, GLSLATTRIB_POSITION, cvar_t::integer, gl_state_t::lockrange_count, gl_state_t::lockrange_first, MAX_TEXTUREUNITS, NULL, gl_state_t::polygonoffset, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, viddef_t::support, gl_state_t::unit, and vid.
Referenced by gl_backend_start().
Definition at line 281 of file gl_backend.c.
References Con_Print(), gl_state, Mem_ExpandableArray_FreeArray(), Mem_Free, gl_state_t::meshbufferarray, gl_state_t::preparevertices_tempdata, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by gl_backend_init().
Definition at line 252 of file gl_backend.c.
References CHECKGLERROR, Con_Printf(), gl_state_t::defaultframebufferobject, gl_state_t::defaultvao, GL_Backend_ResetState(), GL_FRAMEBUFFER_BINDING, gl_state, Mem_ExpandableArray_NewArray(), gl_state_t::meshbufferarray, r_main_mempool, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by gl_backend_init().
Definition at line 937 of file gl_backend.c.
References CHECKGLERROR, gl_state_t::elementbufferobject, GL_ELEMENT_ARRAY_BUFFER, and gl_state.
Referenced by R_Mesh_Draw(), and R_Mesh_UpdateMeshBuffer().
Definition at line 947 of file gl_backend.c.
References CHECKGLERROR, gl_state, GL_UNIFORM_BUFFER, and gl_state_t::uniformbufferobject.
Referenced by R_Mesh_UpdateMeshBuffer().
Definition at line 927 of file gl_backend.c.
References CHECKGLERROR, GL_ARRAY_BUFFER, gl_state, and gl_state_t::vertexbufferobject.
Referenced by R_Mesh_ColorPointer(), R_Mesh_TexCoordPointer(), R_Mesh_UpdateMeshBuffer(), and R_Mesh_VertexPointer().
Definition at line 2303 of file gl_backend.c.
References CHECKGLERROR, GL_FUNC_ADD, GL_FUNC_REVERSE_SUBTRACT, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_DrawCorona(), and R_Shadow_RenderLighting().
Definition at line 1157 of file gl_backend.c.
References gl_state_t::blend, gl_state_t::blendfunc1, gl_state_t::blendfunc2, CHECKGLERROR, GL_BLEND, GL_ONE, gl_state, GL_ZERO, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_BlendView(), R_Bloom_MakeTexture(), R_DrawBBoxMesh(), R_DrawDebugModel(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawModelDecals_Entity(), R_DrawNoModel_TransparentCallback(), R_DrawParticle_TransparentCallback(), R_DrawPortal_Callback(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_ShowSurfaces(), R_DrawTextureSurfaceList_Sky(), R_Mod_DrawDepth(), R_MotionBlurView(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_SetupShader_Surface(), R_Shadow_DrawCoronas(), R_Shadow_DrawPrepass(), R_Shadow_RenderMode_Begin(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_Lighting(), R_Shadow_RenderMode_Reset(), R_Shadow_RenderMode_VisibleLighting(), SCR_DrawLoadingScreen(), and SCR_DrawLoadingStack().
Definition at line 1471 of file gl_backend.c.
References CHECKGLERROR, GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_STENCIL_BUFFER_BIT, mask, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, viddef_t::stencil, and vid.
Referenced by R_Bloom_MakeTexture(), R_ClearScreen(), R_RenderView(), R_Shadow_ClearShadowMapTexture(), R_Shadow_ClearStencil(), R_Shadow_DrawPrepass(), and VID_InitModeGL().
Definition at line 1421 of file gl_backend.c.
References CHECKGLERROR, gl_state_t::color4f, gl_state, GLSLATTRIB_COLOR, gl_state_t::pointer_color_enabled, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_BlendView(), R_Bloom_MakeTexture(), R_DrawDebugModel(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawPortal_Callback(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_Sky(), R_Mod_DrawDepth(), R_MotionBlurView(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Shadow_DrawPrepass(), R_Shadow_RenderMode_Begin(), R_Shadow_RenderMode_Reset(), R_Shadow_RenderMode_VisibleLighting(), and SCR_DrawLoadingScreen().
Definition at line 1403 of file gl_backend.c.
References a, b, CHECKGLERROR, gl_state_t::colormask, g, gl_state, r, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by CL_UpdateScreen(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_Sky(), R_Mod_DrawDepth(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawCoronas(), R_Shadow_DrawPrepass(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_Lighting(), R_Shadow_RenderMode_Reset(), and R_Shadow_RenderMode_ShadowMap().
Definition at line 1333 of file gl_backend.c.
References CHECKGLERROR, gl_state_t::cullface, gl_state_t::cullfaceenable, GL_BACK, GL_CULL_FACE, GL_FRONT, GL_NONE, gl_state, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, v_flipped_state, and vid.
Referenced by R_Bloom_MakeTexture(), R_DrawDebugModel(), R_DrawEntityBBoxes_Callback(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawModelDecals_Entity(), R_DrawNoModel_TransparentCallback(), R_DrawParticle_TransparentCallback(), R_DrawPortal_Callback(), R_Mod_DrawShadowMap(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawCoronas(), R_Shadow_DrawWorldShadow_ShadowMap(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_Reset(), R_Shadow_RenderMode_ShadowMap(), and RSurf_SetupDepthAndCulling().
|
static |
Definition at line 80 of file gl_backend.c.
References CON_ERROR, Con_Printf(), CON_WARN, GL_DEBUG_SEVERITY_HIGH_ARB, GL_DEBUG_SEVERITY_LOW_ARB, GL_DEBUG_SEVERITY_MEDIUM_ARB, GL_DEBUG_SOURCE_API_ARB, GL_DEBUG_SOURCE_APPLICATION_ARB, GL_DEBUG_SOURCE_OTHER_ARB, GL_DEBUG_SOURCE_SHADER_COMPILER_ARB, GL_DEBUG_SOURCE_THIRD_PARTY_ARB, GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB, GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB, GL_DEBUG_TYPE_ERROR_ARB, GL_DEBUG_TYPE_OTHER_ARB, GL_DEBUG_TYPE_PERFORMANCE_ARB, GL_DEBUG_TYPE_PORTABILITY_ARB, GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB, message, severity, source, src, and type.
Referenced by GL_Backend_ResetState().
Definition at line 1234 of file gl_backend.c.
References CHECKGLERROR, gl_state_t::depthfunc, gl_state, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_BeginCoronaQuery(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_Lighting(), R_Shadow_RenderMode_Reset(), and R_Shadow_RenderMode_VisibleLighting().
Definition at line 1195 of file gl_backend.c.
References CHECKGLERROR, gl_state_t::depthmask, gl_state, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by CL_UpdateScreen(), DrawQ_FlushUI(), R_DrawBBoxMesh(), R_DrawDebugModel(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawModelDecals_Entity(), R_DrawNoModel_TransparentCallback(), R_DrawParticle_TransparentCallback(), R_DrawPortal_Callback(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_GL20(), R_DrawTextureSurfaceList_ShowSurfaces(), R_DrawTextureSurfaceList_Sky(), R_Mod_DrawDepth(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawCoronas(), R_Shadow_DrawPrepass(), R_Shadow_RenderMode_Begin(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_End(), R_Shadow_RenderMode_Reset(), and R_Shadow_RenderMode_ShadowMap().
Definition at line 1250 of file gl_backend.c.
References CHECKGLERROR, gl_state_t::depthrange, gl_state, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_DrawBBoxMesh(), R_DrawDebugModel(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawModelDecals_Entity(), R_DrawNoModel_TransparentCallback(), R_DrawParticle_TransparentCallback(), R_DrawPortal_Callback(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Shadow_DrawCoronas(), R_Shadow_RenderMode_Begin(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_Reset(), R_Shadow_RenderMode_VisibleLighting(), RSurf_SetupDepthAndCulling(), SCR_DrawLoadingScreen(), and SCR_DrawLoadingStack().
Definition at line 1211 of file gl_backend.c.
References CHECKGLERROR, gl_state_t::depthtest, GL_DEPTH_TEST, gl_state, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_Bloom_MakeTexture(), R_DrawDebugModel(), R_DrawEntityBBoxes_Callback(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawModelDecals_Entity(), R_DrawNoModel_TransparentCallback(), R_DrawParticle_TransparentCallback(), R_DrawPortal_Callback(), R_DrawSurface_TransparentCallback(), R_Mod_DrawDepth(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawCoronas(), R_Shadow_DrawPrepass(), R_Shadow_RenderLighting(), R_Shadow_RenderMode_Begin(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_Reset(), R_Shadow_RenderMode_ShadowMap(), R_Shadow_RenderMode_VisibleLighting(), RSurf_SetupDepthAndCulling(), SCR_DrawLoadingScreen(), and SCR_DrawLoadingStack().
Definition at line 399 of file gl_backend.c.
References CHECKGLERROR, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_TimeReport(), and VID_Finish().
Definition at line 1952 of file gl_backend.c.
References buffer, buffertypename, Con_Printf(), gl_state, i, int(), Mem_ExpandableArray_IndexRange(), Mem_ExpandableArray_RecordAtIndex(), gl_state_t::meshbufferarray, R_BUFFERDATA_COUNT, R_BUFFERDATA_INDEX16, R_BUFFERDATA_INDEX32, R_BUFFERDATA_UNIFORM, R_BUFFERDATA_VERTEX, and type.
Referenced by GL_VBOStats_f().
Definition at line 1294 of file gl_backend.c.
References CHECKGLERROR, gl_state, gl_state_t::polygonoffset, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_DrawBBoxMesh(), R_DrawDebugModel(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawModelDecals_Entity(), R_DrawNoModel_TransparentCallback(), R_DrawParticle_TransparentCallback(), R_DrawPortal_Callback(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawCoronas(), R_Shadow_RenderMode_Begin(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_Reset(), R_Shadow_RenderMode_ShadowMap(), RSurf_SetupDepthAndCulling(), SCR_DrawLoadingScreen(), and SCR_DrawLoadingStack().
Definition at line 1509 of file gl_backend.c.
References b, CHECKGLERROR, GL_BGRA, GL_RGBA, GL_UNSIGNED_BYTE, height, i, r, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, vid, width, x, and y.
Referenced by SCR_ScreenShot().
Definition at line 1439 of file gl_backend.c.
References CHECKGLERROR, height, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, vid, width, x, and y.
Referenced by DrawQ_SetClipArea(), R_RenderView(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawModelShadowMaps(), R_Shadow_RenderMode_Begin(), R_Shadow_RenderMode_End(), R_Shadow_RenderMode_Reset(), R_Shadow_RenderMode_ShadowMap(), R_Sky(), and R_Water_ProcessPlanes().
Definition at line 1451 of file gl_backend.c.
References CHECKGLERROR, GL_SCISSOR_TEST, gl_state, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, gl_state_t::scissortest, and vid.
Referenced by CL_UpdateScreen(), DrawQ_ResetClipArea(), DrawQ_SetClipArea(), R_RenderView(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Sky(), and R_Water_ProcessPlanes().
Definition at line 1311 of file gl_backend.c.
References CHECKGLERROR, gl_state_t::cullface, GL_BACK, GL_FRONT, gl_state, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, v_flipped_state, and vid.
Referenced by R_SetViewport().
|
static |
Definition at line 245 of file gl_backend.c.
References GL_Mesh_ListVBOs().
Referenced by gl_backend_init().
void R_GetViewport | ( | r_viewport_t * | v | ) |
Definition at line 2151 of file gl_backend.c.
References gl_state, MAX_TEXTUREUNITS, NULL, R_Mesh_TexBind(), rtexture_t::texnum, gltextureunit_t::texture, and gl_state_t::units.
Referenced by R_FreeTexture().
void R_Mesh_ColorPointer | ( | int | components, |
int | gltype, | ||
size_t | stride, | ||
const void * | pointer, | ||
const r_meshbuffer_t * | vertexbuffer, | ||
size_t | bufferoffset ) |
Definition at line 2026 of file gl_backend.c.
References r_meshbuffer_t::bufferobject, CHECKGLERROR, gl_state_t::color4f, GL_BindVBO(), gl_state, GLSLATTRIB_COLOR, pointer, gl_state_t::pointer_color_components, gl_state_t::pointer_color_enabled, gl_state_t::pointer_color_gltype, gl_state_t::pointer_color_offset, gl_state_t::pointer_color_pointer, gl_state_t::pointer_color_stride, gl_state_t::pointer_color_vertexbuffer, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, stride, and vid.
Referenced by R_Mesh_PrepareVertices_Generic_Arrays(), R_Mesh_PrepareVertices_Mesh_Arrays(), R_Mesh_PrepareVertices_Vertex3f(), and RSurf_UploadBuffersForBatch().
void R_Mesh_CopyToTexture | ( | rtexture_t * | tex, |
int | tx, | ||
int | ty, | ||
int | sx, | ||
int | sy, | ||
int | width, | ||
int | height ) |
Definition at line 2138 of file gl_backend.c.
References CHECKGLERROR, GL_ActiveTexture(), GL_TEXTURE_2D, height, R_Mesh_TexBind(), viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, vid, and width.
Referenced by R_MotionBlurView(), and SCR_SetLoadingScreenTexture().
int R_Mesh_CreateFramebufferObject | ( | rtexture_t * | depthtexture, |
rtexture_t * | colortexture, | ||
rtexture_t * | colortexture2, | ||
rtexture_t * | colortexture3, | ||
rtexture_t * | colortexture4 ) |
Definition at line 960 of file gl_backend.c.
References CHECKGLERROR, CON_ERROR, Con_Printf(), drawbuffers, gl_state_t::framebufferobject, GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1, GL_COLOR_ATTACHMENT2, GL_COLOR_ATTACHMENT3, GL_DEPTH_ATTACHMENT, GL_FRAMEBUFFER, GL_FRAMEBUFFER_COMPLETE, GL_NONE, GL_RENDERBUFFER, gl_state, GL_STENCIL_ATTACHMENT, rtexture_t::glisdepthstencil, rtexture_t::gltexturetypeenum, R_Mesh_SetRenderTargets(), rtexture_t::renderbuffernum, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, rtexture_t::texnum, and vid.
Referenced by R_RenderTarget_Get(), R_Shadow_MakeShadowMap(), and R_Shadow_PrepareLights().
r_meshbuffer_t * R_Mesh_CreateMeshBuffer | ( | const void * | data, |
size_t | size, | ||
const char * | name, | ||
qbool | isindexbuffer, | ||
qbool | isuniformbuffer, | ||
qbool | isdynamic, | ||
qbool | isindex16 ) |
Definition at line 1862 of file gl_backend.c.
References buffer, data, dp_strlcpy, gl_state, Mem_ExpandableArray_AllocRecord(), gl_state_t::meshbufferarray, name, NULL, R_Mesh_UpdateMeshBuffer(), and size.
Referenced by Mod_BuildVBOs(), Mod_ShadowMesh_CreateVBOs(), and R_BufferData_Resize().
Definition at line 1042 of file gl_backend.c.
References CHECKGLERROR, gl_state_t::framebufferobject, gl_state, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_RenderTarget_FreeUnused(), R_Shadow_FreeDeferred(), and R_Shadow_FreeShadowMaps().
void R_Mesh_DestroyMeshBuffer | ( | r_meshbuffer_t * | buffer | ) |
Definition at line 1929 of file gl_backend.c.
References buffer, CHECKGLERROR, gl_state_t::elementbufferobject, gl_state, Mem_ExpandableArray_FreeRecord(), gl_state_t::meshbufferarray, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, gl_state_t::uniformbufferobject, gl_state_t::vertexbufferobject, and vid.
Referenced by Mod_GenerateLightmaps_UnweldTriangles(), Mod_ShadowMesh_Free(), Mod_UnloadModel(), R_BufferData_NewFrame(), and R_BufferData_Reset().
void R_Mesh_Draw | ( | int | firstvertex, |
int | numvertices, | ||
int | firsttriangle, | ||
int | numtriangles, | ||
const int * | element3i, | ||
const r_meshbuffer_t * | element3i_indexbuffer, | ||
int | element3i_bufferoffset, | ||
const unsigned short * | element3s, | ||
const r_meshbuffer_t * | element3s_indexbuffer, | ||
int | element3s_bufferoffset ) |
Definition at line 1764 of file gl_backend.c.
References r_meshbuffer_t::bufferobject, CHECKGLERROR, Con_DPrintf(), Con_Printf(), CON_WARN, developer_extra, r_refdef_t::draw2dstage, GL_BindEBO(), gl_paranoid, GL_TRIANGLES, GL_UNSIGNED_INT, GL_UNSIGNED_SHORT, i, int(), cvar_t::integer, R_BUFFERDATA_INDEX16, R_BUFFERDATA_INDEX32, R_BufferData_Store(), r_refdef, r_render, r_stat_draws, r_stat_draws_elements, r_stat_draws_vertices, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, r_refdef_t::stats, and vid.
Referenced by R_BeginCoronaQuery(), R_BlendView(), R_Bloom_MakeTexture(), R_DrawBBoxMesh(), R_DrawDebugModel(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawModelDecals_Entity(), R_DrawNoModel_TransparentCallback(), R_DrawParticle_TransparentCallback(), R_DrawPortal_Callback(), R_MotionBlurView(), R_Shadow_DrawWorldShadow_ShadowMap(), R_Shadow_RenderMode_DrawDeferredLight(), RSurf_DrawBatch(), SCR_DrawLoadingScreen(), and SCR_DrawLoadingStack().
Definition at line 1857 of file gl_backend.c.
References R_Mesh_SetRenderTargets().
Referenced by R_Envmap_f(), and SCR_DrawScreen().
void R_Mesh_PrepareVertices_Generic_Arrays | ( | int | numvertices, |
const float * | vertex3f, | ||
const float * | color4f, | ||
const float * | texcoord2f ) |
Definition at line 2235 of file gl_backend.c.
References GL_FLOAT, GL_UNSIGNED_BYTE, NULL, R_BufferData_Store(), R_BUFFERDATA_VERTEX, R_Mesh_ColorPointer(), R_Mesh_TexCoordPointer(), and R_Mesh_VertexPointer().
Referenced by R_Bloom_MakeTexture(), R_DrawBBoxMesh(), R_DrawDebugModel(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawModelDecals_Entity(), R_DrawNoModel_TransparentCallback(), R_DrawParticle_TransparentCallback(), R_DrawPortal_Callback(), R_DrawTextureSurfaceList_ShowSurfaces(), R_DrawTextureSurfaceList_Sky(), R_MotionBlurView(), R_Shadow_RenderLighting_VisibleLighting(), SCR_DrawLoadingScreen(), and SCR_DrawLoadingStack().
void R_Mesh_PrepareVertices_Mesh_Arrays | ( | int | numvertices, |
const float * | vertex3f, | ||
const float * | svector3f, | ||
const float * | tvector3f, | ||
const float * | normal3f, | ||
const float * | color4f, | ||
const float * | texcoordtexture2f, | ||
const float * | texcoordlightmap2f ) |
Definition at line 2261 of file gl_backend.c.
References GL_FLOAT, GL_UNSIGNED_BYTE, NULL, R_BufferData_Store(), R_BUFFERDATA_VERTEX, R_Mesh_ColorPointer(), R_Mesh_TexCoordPointer(), and R_Mesh_VertexPointer().
Referenced by R_BlendView().
void R_Mesh_PrepareVertices_Vertex3f | ( | int | numvertices, |
const float * | vertex3f, | ||
const r_meshbuffer_t * | vertexbuffer, | ||
int | bufferoffset ) |
Definition at line 2218 of file gl_backend.c.
References GL_FLOAT, GL_UNSIGNED_BYTE, NULL, R_BufferData_Store(), R_BUFFERDATA_VERTEX, R_Mesh_ColorPointer(), R_Mesh_TexCoordPointer(), and R_Mesh_VertexPointer().
Referenced by R_BeginCoronaQuery(), R_DrawSurface_TransparentCallback(), R_DrawTextureSurfaceList_DepthOnly(), R_DrawTextureSurfaceList_Sky(), R_Mod_DrawShadowMap(), R_Shadow_DrawWorldShadow_ShadowMap(), and R_Shadow_RenderMode_DrawDeferredLight().
Definition at line 2206 of file gl_backend.c.
References BACKENDACTIVECHECK, MAX_TEXTUREUNITS, NULL, and R_Mesh_TexBind().
Referenced by R_DrawBBoxMesh(), R_DrawTextureSurfaceList_Sky(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawCoronas(), R_Shadow_DrawPrepass(), R_Shadow_RenderMode_Begin(), R_Shadow_RenderMode_Lighting(), R_Shadow_RenderMode_Reset(), and R_Shadow_RenderMode_ShadowMap().
Definition at line 1059 of file gl_backend.c.
References CHECKGLERROR, gl_state_t::defaultframebufferobject, gl_state_t::framebufferobject, GL_FRAMEBUFFER, gl_state, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by CL_UpdateScreen(), R_Bloom_MakeTexture(), R_Mesh_CreateFramebufferObject(), R_Mesh_Finish(), R_Mesh_Start(), R_RenderView(), R_ResetViewRendering2D_Common(), R_SetupView(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawPrepass(), R_Shadow_PrepareLights(), R_Shadow_RenderMode_DrawDeferredLight(), R_Shadow_RenderMode_Reset(), and R_Shadow_RenderMode_ShadowMap().
Definition at line 1646 of file gl_backend.c.
References BACKENDACTIVECHECK, Con_Printf(), CON_WARN, Cvar_SetValueQuick(), gl_paranoid, gl_printcheckerror, cvar_t::integer, and R_Mesh_SetRenderTargets().
Referenced by R_Envmap_f(), and SCR_DrawScreen().
void R_Mesh_TexBind | ( | unsigned int | unitnum, |
rtexture_t * | tex ) |
Definition at line 2164 of file gl_backend.c.
References CHECKGLERROR, GL_ActiveTexture(), gl_state, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_CUBE_MAP, rtexture_t::gltexturetypeenum, MAX_TEXTUREUNITS, R_GetTexture, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, Sys_Error(), gltextureunit_t::t2d, gltextureunit_t::t3d, gltextureunit_t::tcubemap, gltextureunit_t::texture, gl_state_t::units, and vid.
Referenced by R_BlendView(), R_Mesh_ClearBindingsForTexture(), R_Mesh_CopyToTexture(), R_Mesh_ResetTextureState(), R_SetupShader_DeferredLight(), R_SetupShader_Generic(), and R_SetupShader_Surface().
Definition at line 2124 of file gl_backend.c.
References gl_state, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_CUBE_MAP, MAX_TEXTUREUNITS, Sys_Error(), gltextureunit_t::t2d, gltextureunit_t::t3d, gltextureunit_t::tcubemap, and gl_state_t::units.
Referenced by GL_TextureMode_f(), R_LoadTextureDDSFile(), R_SaveTextureDDSFile(), R_Textures_Frame(), R_UploadFullTexture(), and R_UploadPartialTexture().
void R_Mesh_TexCoordPointer | ( | unsigned int | unitnum, |
int | components, | ||
int | gltype, | ||
size_t | stride, | ||
const void * | pointer, | ||
const r_meshbuffer_t * | vertexbuffer, | ||
size_t | bufferoffset ) |
Definition at line 2075 of file gl_backend.c.
References gltextureunit_t::arrayenabled, r_meshbuffer_t::bufferobject, CHECKGLERROR, GL_BindVBO(), gl_state, GLSLATTRIB_TEXCOORD0, MAX_TEXTUREUNITS, pointer, gltextureunit_t::pointer_texcoord_components, gltextureunit_t::pointer_texcoord_gltype, gltextureunit_t::pointer_texcoord_offset, gltextureunit_t::pointer_texcoord_pointer, gltextureunit_t::pointer_texcoord_stride, gltextureunit_t::pointer_texcoord_vertexbuffer, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, stride, Sys_Error(), gl_state_t::units, and vid.
Referenced by R_Mesh_PrepareVertices_Generic_Arrays(), R_Mesh_PrepareVertices_Mesh_Arrays(), R_Mesh_PrepareVertices_Vertex3f(), and RSurf_UploadBuffersForBatch().
void R_Mesh_UpdateMeshBuffer | ( | r_meshbuffer_t * | buffer, |
const void * | data, | ||
size_t | size, | ||
qbool | subdata, | ||
size_t | offset ) |
Definition at line 1879 of file gl_backend.c.
References buffer, CHECKGLERROR, data, GL_ARRAY_BUFFER, GL_BindEBO(), GL_BindUBO(), GL_BindVBO(), GL_ELEMENT_ARRAY_BUFFER, GL_STATIC_DRAW, GL_STREAM_DRAW, GL_UNIFORM_BUFFER, int(), offset, r_refdef, r_stat_indexbufferuploadcount, r_stat_indexbufferuploadsize, r_stat_vertexbufferuploadcount, r_stat_vertexbufferuploadsize, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, size, r_refdef_t::stats, and vid.
Referenced by R_BufferData_Store(), and R_Mesh_CreateMeshBuffer().
void R_Mesh_VertexPointer | ( | int | components, |
int | gltype, | ||
size_t | stride, | ||
const void * | pointer, | ||
const r_meshbuffer_t * | vertexbuffer, | ||
size_t | bufferoffset ) |
Definition at line 2000 of file gl_backend.c.
References r_meshbuffer_t::bufferobject, CHECKGLERROR, Con_DPrintf(), CON_WARN, GL_BindVBO(), gl_paranoid, gl_state, GLSLATTRIB_POSITION, cvar_t::integer, pointer, gl_state_t::pointer_vertex_components, gl_state_t::pointer_vertex_gltype, gl_state_t::pointer_vertex_offset, gl_state_t::pointer_vertex_pointer, gl_state_t::pointer_vertex_stride, gl_state_t::pointer_vertex_vertexbuffer, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, stride, and vid.
Referenced by R_Mesh_PrepareVertices_Generic_Arrays(), R_Mesh_PrepareVertices_Mesh_Arrays(), R_Mesh_PrepareVertices_Vertex3f(), and RSurf_UploadBuffersForBatch().
Definition at line 430 of file gl_backend.c.
References bboxedges, BoxesOverlap, mplane_t::dist, DotProduct4, f, r_refdef_view_t::frustum, r_viewport_t::height, i, int(), maxs, mins, mplane_t::normal, r_refdef_view_t::origin, r_refdef, R_Viewport_TransformToScreen(), viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, v, v2, Vector4Set, VectorCopy, VectorLerp, VectorNegate, vid, r_refdef_t::view, r_refdef_view_t::viewport, r_viewport_t::width, r_viewport_t::x, x1, x2, r_viewport_t::y, and y2.
Referenced by R_DrawTextureSurfaceList_Sky(), R_Shadow_ScissorForBBox(), and R_Water_ProcessPlanes().
void R_SetStencil | ( | qbool | enable, |
int | writemask, | ||
int | fail, | ||
int | zfail, | ||
int | zpass, | ||
int | compare, | ||
int | comparereference, | ||
int | comparemask ) |
Definition at line 1271 of file gl_backend.c.
References CHECKGLERROR, GL_STENCIL_TEST, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, vid, zfail, and zpass.
void R_SetViewport | ( | const r_viewport_t * | v | ) |
Definition at line 897 of file gl_backend.c.
References CHECKGLERROR, gl_modelmatrix, gl_modelmatrixchanged, gl_projectionmatrix, GL_SetMirrorState(), gl_viewmatrix, gl_viewport, cvar_t::integer, R_EntityMatrix(), R_VIEWPORTTYPE_PERSPECTIVE, R_VIEWPORTTYPE_PERSPECTIVE_INFINITEFARCLIP, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, v, v_flipped, and vid.
Referenced by CL_UpdateScreen(), R_Bloom_MakeTexture(), R_ResetViewRendering2D_Common(), R_SetupView(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawModelShadowMaps(), R_Shadow_RenderMode_Reset(), and R_Shadow_RenderMode_ShadowMap().
|
static |
Definition at line 552 of file gl_backend.c.
References DotProduct, DotProduct4, Matrix4x4_Transform(), Matrix4x4_Transform3x3(), normal, v, v3, VectorScale, and VectorSet.
Referenced by R_Viewport_InitCubeSideView(), R_Viewport_InitOrtho(), R_Viewport_InitOrtho3D(), R_Viewport_InitPerspective(), R_Viewport_InitPerspectiveInfinite(), and R_Viewport_InitRectSideView().
void R_Viewport_InitCubeSideView | ( | r_viewport_t * | v, |
const matrix4x4_t * | cameramatrix, | ||
int | side, | ||
int | size, | ||
float | nearclip, | ||
float | farclip, | ||
const float * | nearplane ) |
Definition at line 843 of file gl_backend.c.
References cubeviewmatrix, Matrix4x4_Concat(), Matrix4x4_FromArrayFloatGL(), Matrix4x4_Invert_Full(), R_Viewport_ApplyNearClipPlaneFloatGL(), R_VIEWPORTTYPE_PERSPECTIVECUBESIDE, size, and v.
void R_Viewport_InitOrtho | ( | r_viewport_t * | v, |
const matrix4x4_t * | cameramatrix, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
float | x1, | ||
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | nearclip, | ||
float | farclip, | ||
const float * | nearplane ) |
Definition at line 587 of file gl_backend.c.
References Con_Printf(), height, Matrix4x4_FromArrayFloatGL(), Matrix4x4_Invert_Full(), R_Viewport_ApplyNearClipPlaneFloatGL(), R_Viewport_TransformToScreen(), R_VIEWPORTTYPE_ORTHO, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, right, v, Vector4Set, vid, width, x, x1, x2, y, and y2.
Referenced by CL_UpdateScreen(), R_Bloom_MakeTexture(), R_ResetViewRendering2D_Common(), R_Shadow_ClearShadowMapTexture(), and R_Shadow_DrawModelShadowMaps().
void R_Viewport_InitOrtho3D | ( | r_viewport_t * | v, |
const matrix4x4_t * | cameramatrix, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
float | frustumx, | ||
float | frustumy, | ||
float | nearclip, | ||
float | farclip, | ||
const float * | nearplane ) |
Definition at line 635 of file gl_backend.c.
References height, cvar_t::integer, Matrix4x4_Concat(), Matrix4x4_ConcatRotate(), Matrix4x4_CreateRotate(), Matrix4x4_FromArrayFloatGL(), Matrix4x4_Invert_Full(), R_Viewport_ApplyNearClipPlaneFloatGL(), R_VIEWPORTTYPE_PERSPECTIVE, v, v_flipped, width, x, and y.
Referenced by R_SetupView().
void R_Viewport_InitPerspective | ( | r_viewport_t * | v, |
const matrix4x4_t * | cameramatrix, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
float | frustumx, | ||
float | frustumy, | ||
float | nearclip, | ||
float | farclip, | ||
const float * | nearplane ) |
Definition at line 677 of file gl_backend.c.
References height, cvar_t::integer, Matrix4x4_Concat(), Matrix4x4_ConcatRotate(), Matrix4x4_CreateRotate(), Matrix4x4_FromArrayFloatGL(), Matrix4x4_Invert_Full(), R_Viewport_ApplyNearClipPlaneFloatGL(), R_VIEWPORTTYPE_PERSPECTIVE, v, v_flipped, width, x, and y.
Referenced by R_SetupView().
void R_Viewport_InitPerspectiveInfinite | ( | r_viewport_t * | v, |
const matrix4x4_t * | cameramatrix, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
float | frustumx, | ||
float | frustumy, | ||
float | nearclip, | ||
const float * | nearplane ) |
Definition at line 719 of file gl_backend.c.
References height, cvar_t::integer, Matrix4x4_Concat(), Matrix4x4_ConcatRotate(), Matrix4x4_CreateRotate(), Matrix4x4_FromArrayFloatGL(), Matrix4x4_Invert_Full(), R_Viewport_ApplyNearClipPlaneFloatGL(), R_VIEWPORTTYPE_PERSPECTIVE_INFINITEFARCLIP, v, v_flipped, width, x, and y.
Referenced by R_SetupView().
void R_Viewport_InitRectSideView | ( | r_viewport_t * | v, |
const matrix4x4_t * | cameramatrix, | ||
int | side, | ||
int | size, | ||
int | border, | ||
float | nearclip, | ||
float | farclip, | ||
const float * | nearplane, | ||
int | offsetx, | ||
int | offsety ) |
Definition at line 869 of file gl_backend.c.
References border, float, Matrix4x4_Concat(), Matrix4x4_FromArrayFloatGL(), Matrix4x4_Invert_Full(), R_Viewport_ApplyNearClipPlaneFloatGL(), R_VIEWPORTTYPE_PERSPECTIVECUBESIDE, rectviewmatrix, size, and v.
Referenced by R_Shadow_RenderMode_ShadowMap().
void R_Viewport_TransformToScreen | ( | const r_viewport_t * | v, |
const vec4_t | in, | ||
vec4_t | out ) |
Definition at line 383 of file gl_backend.c.
References Matrix4x4_Transform4(), and v.
Referenced by R_DebugLine(), R_ScissorForBBox(), and R_Viewport_InitOrtho().
void SCR_ScreenShot_f | ( | cmd_state_t * | cmd | ) |
|
static |
Definition at line 411 of file gl_backend.c.
Referenced by R_ScissorForBBox().
|
static |
Definition at line 1951 of file gl_backend.c.
Referenced by GL_Mesh_ListVBOs().
float cubeviewmatrix[6][16] |
Definition at line 762 of file gl_backend.c.
Referenced by R_Viewport_InitCubeSideView().
|
static |
Definition at line 959 of file gl_backend.c.
Referenced by R_Mesh_CreateFramebufferObject().
cvar_t gl_debug = {CF_CLIENT, "gl_debug", "0", "enables OpenGL 4.3 debug output, 0 = off, 1 = HIGH severity only, 2 = also MEDIUM severity, 3 = also LOW severity messages. (note: enabling may not take effect until vid_restart on some drivers, and only X11 and Windows are known to support the debug context)"} |
Definition at line 7 of file gl_backend.c.
Referenced by gl_backend_init(), GL_Backend_ResetState(), and VID_InitModeGL().
matrix4x4_t gl_modelmatrix |
Definition at line 24 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetViewport().
qbool gl_modelmatrixchanged |
Definition at line 31 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetViewport().
float gl_modelview16f[16] |
Definition at line 29 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetupShader_SetPermutationGLSL().
matrix4x4_t gl_modelviewmatrix |
Definition at line 26 of file gl_backend.c.
Referenced by R_EntityMatrix().
float gl_modelviewprojection16f[16] |
Definition at line 30 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetupShader_SetPermutationGLSL().
matrix4x4_t gl_modelviewprojectionmatrix |
Definition at line 28 of file gl_backend.c.
Referenced by R_EntityMatrix().
cvar_t gl_paranoid = {CF_CLIENT, "gl_paranoid", "0", "enables OpenGL error checking and other tests"} |
Definition at line 8 of file gl_backend.c.
Referenced by gl_backend_init(), Host_Init(), Mod_BuildVBOs(), Mod_Mesh_Finalize(), R_Mesh_Draw(), R_Mesh_Start(), and R_Mesh_VertexPointer().
cvar_t gl_polyblend = {CF_CLIENT | CF_ARCHIVE, "gl_polyblend", "1", "tints view while underwater, hurt, etc"} |
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().
cvar_t gl_printcheckerror = {CF_CLIENT, "gl_printcheckerror", "0", "prints all OpenGL error checks, useful to identify location of driver crashes"} |
Definition at line 9 of file gl_backend.c.
Referenced by gl_backend_init(), Host_Init(), and R_Mesh_Start().
matrix4x4_t gl_projectionmatrix |
Definition at line 27 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetViewport().
|
static |
Definition at line 183 of file gl_backend.c.
Referenced by GL_ActiveTexture(), GL_AlphaToCoverage(), gl_backend_devicelost(), GL_Backend_ResetState(), gl_backend_shutdown(), gl_backend_start(), GL_BindEBO(), GL_BindUBO(), GL_BindVBO(), GL_BlendFunc(), GL_Color(), GL_ColorMask(), GL_CullFace(), GL_DepthFunc(), GL_DepthMask(), GL_DepthRange(), GL_DepthTest(), GL_Mesh_ListVBOs(), GL_PolygonOffset(), GL_ScissorTest(), GL_SetMirrorState(), R_Mesh_ClearBindingsForTexture(), R_Mesh_ColorPointer(), R_Mesh_CreateFramebufferObject(), R_Mesh_CreateMeshBuffer(), R_Mesh_DestroyFramebufferObject(), R_Mesh_DestroyMeshBuffer(), R_Mesh_SetRenderTargets(), R_Mesh_TexBind(), R_Mesh_TexBound(), R_Mesh_TexCoordPointer(), and R_Mesh_VertexPointer().
matrix4x4_t gl_viewmatrix |
Definition at line 25 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetViewport().
r_viewport_t gl_viewport |
Definition at line 23 of file gl_backend.c.
Referenced by R_GetViewport(), and R_SetViewport().
int polygonelement3i[(POLYGONELEMENTS_MAXPOINTS-2) *3] |
Definition at line 240 of file gl_backend.c.
Referenced by gl_backend_init(), R_BeginCoronaQuery(), R_BlendView(), R_Bloom_MakeTexture(), R_DrawCorona(), R_DrawDebugModel(), R_DrawPortal_Callback(), R_Model_Sprite_Draw_TransparentCallback(), R_MotionBlurView(), R_Shadow_DrawCursor_TransparentCallback(), R_Shadow_DrawLightSprite_TransparentCallback(), SCR_DrawLoadingScreen(), and SCR_DrawLoadingStack().
unsigned short polygonelement3s[(POLYGONELEMENTS_MAXPOINTS-2) *3] |
Definition at line 241 of file gl_backend.c.
Referenced by gl_backend_init(), R_BeginCoronaQuery(), R_BlendView(), R_Bloom_MakeTexture(), R_DrawCorona(), R_DrawDebugModel(), R_DrawPortal_Callback(), R_Model_Sprite_Draw_TransparentCallback(), R_MotionBlurView(), R_Shadow_DrawCursor_TransparentCallback(), R_Shadow_DrawLightSprite_TransparentCallback(), SCR_DrawLoadingScreen(), and SCR_DrawLoadingStack().
int quadelement3i[QUADELEMENTS_MAXQUADS *6] |
Definition at line 242 of file gl_backend.c.
Referenced by gl_backend_init().
unsigned short quadelement3s[QUADELEMENTS_MAXQUADS *6] |
Definition at line 243 of file gl_backend.c.
Referenced by gl_backend_init().
cvar_t r_renderview = {CF_CLIENT, "r_renderview", "1", "enables rendering 3D views (you want this on!)"} |
cvar_t r_waterwarp = {CF_CLIENT | CF_ARCHIVE, "r_waterwarp", "1", "warp view while underwater"} |
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().
float rectviewmatrix[6][16] |
Definition at line 802 of file gl_backend.c.
Referenced by R_Viewport_InitRectSideView().
Definition at line 20 of file gl_backend.c.
Referenced by CL_Input(), CL_UpdatePrydonCursor(), gl_backend_init(), R_SetViewport(), R_Viewport_InitOrtho3D(), R_Viewport_InitPerspective(), R_Viewport_InitPerspectiveInfinite(), S_SetChannelLayout(), S_Update(), VM_CL_project(), and VM_CL_unproject().
Definition at line 21 of file gl_backend.c.
Referenced by GL_CullFace(), and GL_SetMirrorState().