![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include <vid.h>
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 | |
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().
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().
unsigned int viddef_t::max_anisotropy |
Definition at line 86 of file vid.h.
Referenced by GL_Setup(), GL_SetupTextureParameters(), M_Menu_Video_AdjustSliders(), M_Video_Draw(), and R_Textures_Frame().
unsigned int viddef_t::maxdrawbuffers |
Definition at line 87 of file vid.h.
Referenced by GL_Setup(), and R_Shadow_PrepareLights().
unsigned int viddef_t::maxtexturesize_2d |
Definition at line 83 of file vid.h.
Referenced by GL_Setup(), GL_Texture_CalcImageSize(), Mod_GenerateLightmaps_CreateLightmaps(), Mod_Q1BSP_LoadFaces(), Mod_Q3BSP_LoadLightmaps(), Mod_VBSP_LoadFaces(), R_Bloom_StartFrame(), R_Shadow_PrepareLights(), R_Shadow_SetShadowMode(), and R_Water_StartFrame().
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().
unsigned int viddef_t::maxtexturesize_cubemap |
Definition at line 85 of file vid.h.
Referenced by GL_Setup(), and GL_Texture_CalcImageSize().
viddef_mode_t viddef_t::mode |
currently active video mode
Definition at line 73 of file vid.h.
Referenced by CL_DrawVideo(), CL_Input(), CL_UpdateScreen(), CL_VM_UpdateView(), DrawQ_Line(), DrawQ_SetClipArea(), DrawQ_Start(), DrawQ_String_Scale(), Font_IndexForSize(), Font_VirtualToRealSize(), GL_Setup(), IN_Move(), IN_Move_TouchScreen_Quake(), M_Menu_Video_f(), M_Options_ColorControl_Draw(), M_Video_Draw(), M_Video_Key(), MP_Draw(), MR_Init(), R_Bloom_StartFrame(), R_DebugLine(), R_Envmap_f(), R_ResetViewRendering2D_Common(), R_SetupView(), R_Stereo_Active(), SCR_CaptureVideo_Avi_BeginVideo(), SCR_DrawLoadingScreen(), SCR_DrawScreen(), SCR_ScreenShot_f(), SCR_SetLoadingScreenTexture(), SCR_UpdateVars(), snap_to_pixel_x(), snap_to_pixel_y(), Sys_SDL_HandleEvents(), VID_ApplyDisplayMode(), VID_GetDesktopMode(), VID_InitModeGL(), VID_ListModes(), VID_Mode(), VID_Restart_f(), VM_CL_getmousepos(), VM_CL_R_SetView(), and VM_M_getmousepos().
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().
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().
qbool viddef_t::sRGB3D |
whether 3D rendering is sRGB corrected (based on sRGBcapable3D)
Definition at line 76 of file vid.h.
Referenced by CL_NewParticle(), CL_SpawnDecalParticleForSurface(), Mod_Q1BSP_LoadSplitSky(), Mod_Q3BSP_Load(), Mod_Q3BSP_LoadLightGrid(), Mod_Q3BSP_LoadLightmaps(), Mod_Q3BSP_LoadVertices(), R_BuildLightMap(), R_InitParticleTexture(), R_LoadCubemap(), R_LoadSkyBox(), R_RenderView(), R_SkinFrame_GenerateTexturesFromQPixels(), R_SkinFrame_LoadExternal_SkinFrame(), V_CalcViewBlend(), VID_BuildGammaTables(), VID_Mode(), and VID_UpdateGamma().
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().
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().
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().
viddef_support_t viddef_t::support |
Definition at line 89 of file vid.h.
Referenced by GL_Backend_ResetState(), gl_main_start(), GL_Setup(), GL_SetupTextureParameters(), M_Video_Draw(), R_GetTexTypeInfo(), R_GLSL_CompilePermutation(), R_LoadTextureDDSFile(), R_SetupTexture(), R_Shadow_DrawCoronas(), R_Shadow_SetShadowMode(), and VID_ClearExtensions().
int viddef_t::xPos |
Definition at line 93 of file vid.h.
Referenced by Sys_SDL_HandleEvents(), VID_ApplyDisplayMode(), and VID_InitModeGL().
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().