![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Macros | |
#define | POLYGONELEMENTS_MAXPOINTS 258 |
#define | QUADELEMENTS_MAXQUADS 128 |
Functions | |
void | GL_ActiveTexture (unsigned int num) |
void | GL_AlphaToCoverage (qbool state) |
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) |
void | GL_Backend_FreeProgram (unsigned int prog) |
void | gl_backend_init (void) |
void | GL_BlendEquationSubtract (qbool negated) |
void | GL_BlendFunc (int blendfunc1, int blendfunc2) |
void | GL_CaptureVideo_BeginVideo (void) |
void | GL_CaptureVideo_EndVideo (void) |
void | GL_CaptureVideo_VideoFrame (int newframestepframenum) |
void | GL_Clear (int mask, const float *colorvalue, float depthvalue, int stencilvalue) |
void | GL_Color (float cr, float cg, float cb, float ca) |
void | GL_ColorMask (int r, int g, int b, int a) |
void | GL_CullFace (int state) |
void | GL_DepthFunc (int state) |
void | GL_DepthMask (int state) |
void | GL_DepthRange (float nearfrac, float farfrac) |
void | GL_DepthTest (int state) |
void | GL_Finish (void) |
void | GL_Mesh_ListVBOs (qbool printeach) |
void | GL_PolygonOffset (float planeoffset, float depthoffset) |
void | GL_ReadPixelsBGRA (int x, int y, int width, int height, unsigned char *outpixels) |
void | GL_Scissor (int x, int y, int width, int height) |
void | GL_ScissorTest (int state) |
void | R_ClearScreen (qbool fogcolor) |
void | R_EntityMatrix (const matrix4x4_t *matrix) |
void | R_GetViewport (r_viewport_t *v) |
void | R_Mesh_ClearBindingsForTexture (int texnum) |
void | R_Mesh_ColorPointer (int components, int gltype, size_t stride, const void *pointer, const r_meshbuffer_t *vertexbuffer, size_t bufferoffset) |
void | R_Mesh_CopyToTexture (rtexture_t *tex, int tx, int ty, int sx, int sy, int width, int height) |
int | R_Mesh_CreateFramebufferObject (rtexture_t *depthtexture, rtexture_t *colortexture, rtexture_t *colortexture2, rtexture_t *colortexture3, rtexture_t *colortexture4) |
r_meshbuffer_t * | R_Mesh_CreateMeshBuffer (const void *data, size_t size, const char *name, qbool isindexbuffer, qbool isuniformbuffer, qbool isdynamic, qbool isindex16) |
void | R_Mesh_DestroyFramebufferObject (int fbo) |
void | R_Mesh_DestroyMeshBuffer (r_meshbuffer_t *buffer) |
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) |
void | R_Mesh_Finish (void) |
void | R_Mesh_PrepareVertices_Generic_Arrays (int numvertices, const float *vertex3f, const float *color4f, const float *texcoord2f) |
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) |
void | R_Mesh_PrepareVertices_Vertex3f (int numvertices, const float *vertex3f, const r_meshbuffer_t *buffer, int bufferoffset) |
void | R_Mesh_ResetTextureState (void) |
void | R_Mesh_SetRenderTargets (int fbo) |
void | R_Mesh_Start (void) |
void | R_Mesh_TexBind (unsigned int unitnum, rtexture_t *tex) |
int | R_Mesh_TexBound (unsigned int unitnum, int id) |
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) |
void | R_Mesh_UpdateMeshBuffer (r_meshbuffer_t *buffer, const void *data, size_t size, qbool subdata, size_t offset) |
void | R_Mesh_VertexPointer (int components, int gltype, size_t stride, const void *pointer, const r_meshbuffer_t *vertexbuffer, size_t bufferoffset) |
qbool | R_ScissorForBBox (const float *mins, const float *maxs, int *scissor) |
void | R_SetStencil (qbool enable, int writemask, int fail, int zfail, int zpass, int compare, int comparereference, int comparemask) |
void | R_SetViewport (const r_viewport_t *v) |
void | R_Viewport_InitCubeSideView (r_viewport_t *v, const matrix4x4_t *cameramatrix, int side, int size, float nearclip, float farclip, const float *nearplane) |
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 zNear, float zFar, const float *nearplane) |
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) |
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 zNear, float zFar, const float *nearplane) |
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 zNear, const float *nearplane) |
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) |
void | R_Viewport_TransformToScreen (const r_viewport_t *v, const vec4_t in, vec4_t out) |
qbool | SCR_ScreenShot (char *filename, unsigned char *buffer1, unsigned char *buffer2, int x, int y, int width, int height, qbool flipx, qbool flipy, qbool flipdiagonal, qbool jpeg, qbool png, qbool gammacorrect, qbool keep_alpha) |
#define POLYGONELEMENTS_MAXPOINTS 258 |
Definition at line 15 of file gl_backend.h.
Referenced by gl_backend_init(), R_DrawPortal_Callback(), and R_DrawPortals().
#define QUADELEMENTS_MAXQUADS 128 |
Definition at line 18 of file gl_backend.h.
Referenced by gl_backend_init().
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().
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.
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().
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 1534 of file cl_screen.c.
References r_refdef_t::fogcolor, GL_Clear(), GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_STENCIL_BUFFER_BIT, cvar_t::integer, r_fog_clear, r_refdef, R_UpdateFog(), scr_screenshot_alpha, viddef_t::stencil, Vector4Set, VectorCopy, and vid.
Referenced by CL_UpdateScreen(), R_RenderView(), and R_Water_ProcessPlanes().
void R_EntityMatrix | ( | const matrix4x4_t * | matrix | ) |
Definition at line 4417 of file gl_rmain.c.
References CHECKGLERROR, gl_modelmatrix, gl_modelmatrixchanged, gl_modelview16f, gl_modelviewmatrix, gl_modelviewprojection16f, gl_modelviewprojectionmatrix, gl_projectionmatrix, gl_viewmatrix, r_glsl_permutation_t::loc_ModelViewMatrix, r_glsl_permutation_t::loc_ModelViewProjectionMatrix, Matrix4x4_Concat(), Matrix4x4_ToArrayFloatGL(), r_glsl_permutation, viddef_t::renderpath, RENDERPATH_GL32, RENDERPATH_GLES2, and vid.
Referenced by R_BlendView(), R_DrawExplosion_TransparentCallback(), R_DrawLoc_Callback(), R_DrawPortal_Callback(), R_MotionBlurView(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_SetViewport(), R_Shadow_DrawCoronas(), R_Shadow_RenderMode_DrawDeferredLight(), RSurf_ActiveCustomEntity(), and RSurf_ActiveModelEntity().
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 * | buffer, | ||
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().
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 | zNear, | ||
float | zFar, | ||
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 | zNear, | ||
float | zFar, | ||
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 | zNear, | ||
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().
qbool SCR_ScreenShot | ( | char * | filename, |
unsigned char * | buffer1, | ||
unsigned char * | buffer2, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
qbool | flipx, | ||
qbool | flipy, | ||
qbool | flipdiagonal, | ||
qbool | jpeg, | ||
qbool | png, | ||
qbool | gammacorrect, | ||
qbool | keep_alpha ) |
Definition at line 1443 of file cl_screen.c.
References BuildGammaTable16(), GL_ReadPixelsBGRA(), height, i, Image_CopyMux(), Image_WriteTGABGR_preflipped(), Image_WriteTGABGRA(), indices, JPEG_SaveImage_preflipped(), PNG_SaveImage_preflipped(), pow(), ret, scr_screenshot_gammaboost, cvar_t::value, width, x, and y.
Referenced by R_Envmap_f(), SCR_DrawScreen(), and SCR_ScreenShot_f().
|
extern |
Definition at line 7 of file gl_backend.c.
Referenced by gl_backend_init(), GL_Backend_ResetState(), and VID_InitModeGL().
|
extern |
Definition at line 24 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetViewport().
|
extern |
Definition at line 31 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetViewport().
|
extern |
Definition at line 29 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetupShader_SetPermutationGLSL().
|
extern |
Definition at line 26 of file gl_backend.c.
Referenced by R_EntityMatrix().
|
extern |
Definition at line 30 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetupShader_SetPermutationGLSL().
|
extern |
Definition at line 28 of file gl_backend.c.
Referenced by R_EntityMatrix().
|
extern |
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().
|
extern |
Definition at line 9 of file gl_backend.c.
Referenced by gl_backend_init(), Host_Init(), and R_Mesh_Start().
|
extern |
Definition at line 27 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetViewport().
|
extern |
Definition at line 25 of file gl_backend.c.
Referenced by R_EntityMatrix(), and R_SetViewport().
|
extern |
Definition at line 23 of file gl_backend.c.
Referenced by R_GetViewport(), and R_SetViewport().
|
extern |
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().
|
extern |
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().
|
extern |
Definition at line 242 of file gl_backend.c.
Referenced by gl_backend_init().
|
extern |
Definition at line 243 of file gl_backend.c.
Referenced by gl_backend_init().