DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
viddef_t Struct Reference

#include <vid.h>

+ Collaboration diagram for viddef_t:

Data Fields

qbool allowalphatocoverage
 indicates the GL_AlphaToCoverage function works on this renderpath and framebuffer
 
int forcetextype
 always use GL_BGRA for D3D, always use GL_RGBA for GLES, etc
 
unsigned int max_anisotropy
 
unsigned int maxdrawbuffers
 
unsigned int maxtexturesize_2d
 
unsigned int maxtexturesize_3d
 
unsigned int maxtexturesize_cubemap
 
viddef_mode_t mode
 currently active video mode
 
renderpath_t renderpath
 
qbool sRGB2D
 whether 2D rendering is sRGB corrected (based on sRGBcapable2D)
 
qbool sRGB3D
 whether 3D rendering is sRGB corrected (based on sRGBcapable3D)
 
qbool sRGBcapable2D
 whether 2D rendering can be sRGB corrected (renderpath)
 
qbool sRGBcapable3D
 whether 3D rendering can be sRGB corrected (renderpath)
 
qbool stencil
 
viddef_support_t support
 
int xPos
 
int yPos
 current virtual position of the top left corner of the SDL window
 

Detailed Description

Definition at line 69 of file vid.h.

Field Documentation

◆ allowalphatocoverage

qbool viddef_t::allowalphatocoverage

indicates the GL_AlphaToCoverage function works on this renderpath and framebuffer

Definition at line 81 of file vid.h.

Referenced by GL_Setup(), R_GetCurrentTexture(), R_SetupShader_DeferredLight(), R_SetupShader_DepthOrShadow(), R_SetupShader_Generic(), and R_SetupShader_Surface().

◆ forcetextype

int viddef_t::forcetextype

always use GL_BGRA for D3D, always use GL_RGBA for GLES, etc

Definition at line 91 of file vid.h.

Referenced by GL_Setup(), and R_SetupTexture().

◆ max_anisotropy

unsigned int viddef_t::max_anisotropy

◆ maxdrawbuffers

unsigned int viddef_t::maxdrawbuffers

Definition at line 87 of file vid.h.

Referenced by GL_Setup(), and R_Shadow_PrepareLights().

◆ maxtexturesize_2d

◆ maxtexturesize_3d

unsigned int viddef_t::maxtexturesize_3d

Definition at line 84 of file vid.h.

Referenced by GL_Setup(), GL_Texture_CalcImageSize(), and R_Shadow_BounceGrid_UpdateSpacing().

◆ maxtexturesize_cubemap

unsigned int viddef_t::maxtexturesize_cubemap

Definition at line 85 of file vid.h.

Referenced by GL_Setup(), and GL_Texture_CalcImageSize().

◆ mode

◆ renderpath

renderpath_t viddef_t::renderpath

Definition at line 80 of file vid.h.

Referenced by DrawQ_SetClipArea(), GL_ActiveTexture(), GL_AlphaToCoverage(), gl_backend_devicelost(), gl_backend_devicerestored(), GL_Backend_ResetState(), gl_backend_shutdown(), gl_backend_start(), GL_BlendEquationSubtract(), GL_BlendFunc(), GL_Clear(), GL_Color(), GL_ColorMask(), GL_CullFace(), GL_DepthFunc(), GL_DepthMask(), GL_DepthRange(), GL_DepthTest(), GL_Finish(), gl_main_shutdown(), gl_main_start(), GL_PolygonOffset(), GL_ReadPixelsBGRA(), GL_Scissor(), GL_ScissorTest(), GL_SetMirrorState(), GL_Setup(), GL_TextureMode_f(), R_BeginCoronaQuery(), R_BlendView(), R_Bloom_StartFrame(), R_DrawCorona(), R_DrawModelTextureSurfaceList(), R_EntityMatrix(), R_FreeTexture(), R_GLSL_CompilePermutation(), R_GLSL_Restart_f(), R_LoadTextureDDSFile(), R_LoadTextureRenderBuffer(), R_Mesh_ColorPointer(), R_Mesh_CopyToTexture(), R_Mesh_CreateFramebufferObject(), R_Mesh_DestroyFramebufferObject(), R_Mesh_DestroyMeshBuffer(), R_Mesh_Draw(), R_Mesh_SetRenderTargets(), R_Mesh_TexBind(), R_Mesh_TexCoordPointer(), R_Mesh_UpdateMeshBuffer(), R_Mesh_VertexPointer(), R_ResetViewRendering2D_Common(), R_ResetViewRendering3D(), R_ScissorForBBox(), R_SetStencil(), R_SetupShader_DeferredLight(), R_SetupShader_DepthOrShadow(), R_SetupShader_Generic(), R_SetupShader_Surface(), R_SetupTexture(), R_SetViewport(), R_Shadow_ClearShadowMapTexture(), R_Shadow_DrawCoronas(), R_Shadow_PrepareLights(), R_Shadow_RenderMode_ShadowMap(), R_Shadow_SetShadowMode(), r_shadow_start(), r_textures_devicelost(), r_textures_devicerestored(), R_Textures_Frame(), r_textures_start(), R_UpdateVariables(), R_UploadFullTexture(), R_UploadPartialTexture(), R_Viewport_InitOrtho(), VID_Finish(), and VID_Mode().

◆ sRGB2D

qbool viddef_t::sRGB2D

whether 2D rendering is sRGB corrected (based on sRGBcapable2D)

Definition at line 75 of file vid.h.

Referenced by Draw_NewPic(), R_SetupShader_Generic(), VID_BuildGammaTables(), VID_Mode(), and VID_UpdateGamma().

◆ sRGB3D

◆ sRGBcapable2D

qbool viddef_t::sRGBcapable2D

whether 2D rendering can be sRGB corrected (renderpath)

Definition at line 77 of file vid.h.

Referenced by GL_Setup(), and VID_Mode().

◆ sRGBcapable3D

qbool viddef_t::sRGBcapable3D

whether 3D rendering can be sRGB corrected (renderpath)

Definition at line 78 of file vid.h.

Referenced by GL_Setup(), and VID_Mode().

◆ stencil

qbool viddef_t::stencil

Definition at line 74 of file vid.h.

Referenced by GL_Clear(), R_ClearScreen(), R_SetupView(), R_UpdateVariables(), and VID_ApplyDisplayMode().

◆ support

◆ xPos

int viddef_t::xPos

Definition at line 93 of file vid.h.

Referenced by Sys_SDL_HandleEvents(), VID_ApplyDisplayMode(), and VID_InitModeGL().

◆ yPos

int viddef_t::yPos

current virtual position of the top left corner of the SDL window

Definition at line 93 of file vid.h.

Referenced by Sys_SDL_HandleEvents(), VID_ApplyDisplayMode(), and VID_InitModeGL().


The documentation for this struct was generated from the following file: