Contains the game screen size and drawing scale. More...
#include <cl_video.h>
Data Fields | |
unsigned | width |
unsigned | height |
int | mode |
qboolean | fullscreen |
qboolean | strech |
float | rx |
float | ry |
int | virtualWidth |
int | virtualHeight |
int | x |
int | y |
int | viewWidth |
int | viewHeight |
Contains the game screen size and drawing scale.
This is used to rationalize the GUI system rendering box with the actual screen. The width and height are the dimensions of the actual screen, not just the rendering box. The rx, ry positions are the width and height divided by VID_NORM_WIDTH and VID_NORM_HEIGHT respectively. This allows the GUI system to use a "normalized" coordinate system of 1024x768 texels.
this struct is also defined in src/renderer/r_local.h
Definition at line 49 of file cl_video.h.
unsigned viddef_t::height |
game screen/window height
Definition at line 51 of file cl_video.h.
Referenced by Con_DrawConsole(), IN_JoystickMove(), R_DrawBloom(), R_InitFBObjects(), R_InitializeShader(), R_ScreenShot_f(), R_SetMode(), R_Setup2D(), R_Setup3D(), R_SetupFrustum(), R_UpdateVidDef(), and UI_GetRadarMapInFrameBuffer().
int viddef_t::mode |
resolution mode - see vidmode_t
Definition at line 52 of file cl_video.h.
Referenced by R_SetMode().
float viddef_t::rx |
horizontal screen scale factor
Definition at line 56 of file cl_video.h.
Referenced by CIN_SetParameters(), CL_ActorMouseTrace(), CL_GetKeyMouseState(), Con_DrawNotify(), IN_Frame(), IN_JoystickMove(), R_CleanupDepthBuffer(), R_Draw2DArray(), R_Draw2DMapMarkers(), R_Draw3DGlobe(), R_Draw3DMapMarkers(), R_DrawCircle(), R_DrawFill(), R_DrawFlatGeoscape(), R_DrawImage(), R_DrawModelDirect(), R_DrawRect(), R_DrawStretchImage(), R_FontDrawTexture(), R_PushClipRect(), R_SphereRender(), R_UpdateVidDef(), UI_DrawNormImage(), UI_GenPreviewRadarMap_f(), UI_GetActiveRenderRect(), and UI_Transform().
float viddef_t::ry |
vertical screen scale factor
Definition at line 57 of file cl_video.h.
Referenced by CIN_SetParameters(), CL_ActorMouseTrace(), CL_GetKeyMouseState(), Con_DrawNotify(), IN_Frame(), IN_JoystickMove(), R_CleanupDepthBuffer(), R_Draw2DArray(), R_Draw2DMapMarkers(), R_Draw3DGlobe(), R_Draw3DMapMarkers(), R_DrawFill(), R_DrawFlatGeoscape(), R_DrawImage(), R_DrawModelDirect(), R_DrawRect(), R_DrawStretchImage(), R_FontDrawTexture(), R_PushClipRect(), R_SphereRender(), R_UpdateVidDef(), UI_DrawNormImage(), UI_GenPreviewRadarMap_f(), UI_GetActiveRenderRect(), and UI_Transform().
currently strech mode?
Definition at line 54 of file cl_video.h.
Referenced by R_SetMode(), and R_UpdateVidDef().
The menu system may define a rendering view port on the screen. The values defines the properties of this view port i.e. the height and width of the port, and the (x, y) offset from the upper left corner.
Definition at line 61 of file cl_video.h.
Referenced by CL_ActorMouseTrace(), CL_CameraMove(), CL_GetKeyMouseState(), CL_SequenceRender(), CL_ViewRender(), CL_ViewUpdateRenderData(), IN_Parse(), MYgluPerspective(), R_Setup3D(), R_SetupFrustum(), SCR_DrawConsole(), SCR_UpdateScreen(), and SEQ_SetCamera().
Definition at line 61 of file cl_video.h.
Referenced by CL_ActorMouseTrace(), CL_CameraMove(), CL_GetKeyMouseState(), CL_SequenceRender(), CL_ViewRender(), CL_ViewUpdateRenderData(), IN_Parse(), MYgluPerspective(), R_Setup3D(), R_SetupFrustum(), SCR_DrawConsole(), SCR_UpdateScreen(), and SEQ_SetCamera().
size of the virtual screen
Definition at line 59 of file cl_video.h.
Referenced by Con_DrawConsole(), R_PushClipRect(), R_UpdateVidDef(), SCR_DrawDownloading(), SCR_DrawLoading(), SCR_DrawPrecacheScreen(), SEQ_Render2D(), UI_ControlsNodeCapturedMouseMove(), UI_GenPreviewRadarMap_f(), UI_InvalidateStack(), UI_WindowNodeDoLayout(), and UI_WindowNodeDraw().
Definition at line 59 of file cl_video.h.
Referenced by Con_DrawConsole(), HUD_DrawMouseCursorText(), HUD_UpdateCursor(), R_UpdateVidDef(), SCR_DrawDownloading(), SCR_DrawLoading(), SCR_DrawPrecacheScreen(), SCR_DrawString(), SEQ_Render2D(), UI_ControlsNodeCapturedMouseMove(), UI_DrawNotice(), UI_InvalidateStack(), UI_WindowNodeDoLayout(), and UI_WindowNodeDraw().
unsigned viddef_t::width |
game screen/window width
Definition at line 50 of file cl_video.h.
Referenced by Con_CheckResize(), Con_DrawConsole(), Con_DrawNotify(), IN_JoystickMove(), R_DrawBloom(), R_InitFBObjects(), R_InitializeShader(), R_ScreenShot_f(), R_SetMode(), R_Setup2D(), R_Setup3D(), R_UpdateVidDef(), SCR_UpdateScreen(), and UI_GetRadarMapInFrameBuffer().
int viddef_t::x |
Definition at line 61 of file cl_video.h.
Referenced by CL_ActorMouseTrace(), CL_GetKeyMouseState(), R_Setup3D(), R_SetupFrustum(), and SCR_UpdateScreen().
int viddef_t::y |
Definition at line 61 of file cl_video.h.
Referenced by CL_ActorMouseTrace(), CL_GetKeyMouseState(), R_Setup3D(), R_SetupFrustum(), and SCR_UpdateScreen().