viddef_t Struct Reference

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

Detailed Description

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.


Field Documentation

currently in fullscreen mode?

Definition at line 53 of file cl_video.h.

Referenced by R_SetMode().

unsigned viddef_t::height

resolution mode - see vidmode_t

Definition at line 52 of file cl_video.h.

Referenced by R_SetMode().

float viddef_t::rx
float viddef_t::ry

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().

unsigned viddef_t::width

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

Generated by  doxygen 1.6.2