UFO: Alien Invasion
Loading...
Searching...
No Matches
viddef_t Struct Reference

Contains the game screen size and drawing scale. More...

#include <cl_video.h>

Collaboration diagram for viddef_t:
Collaboration graph

Data Fields

viddefContext_t context
bool stretch
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 69 of file cl_video.h.

Field Documentation

◆ context

viddefContext_t viddef_t::context

Definition at line 70 of file cl_video.h.

◆ rx

float viddef_t::rx

horizontal screen scale factor

Definition at line 74 of file cl_video.h.

◆ ry

float viddef_t::ry

vertical screen scale factor

Definition at line 75 of file cl_video.h.

◆ stretch

bool viddef_t::stretch

currently stretch mode?

Definition at line 72 of file cl_video.h.

◆ viewHeight

int viddef_t::viewHeight

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 79 of file cl_video.h.

◆ viewWidth

int viddef_t::viewWidth

Definition at line 79 of file cl_video.h.

◆ virtualHeight

int viddef_t::virtualHeight

size of the virtual screen

Definition at line 77 of file cl_video.h.

◆ virtualWidth

int viddef_t::virtualWidth

Definition at line 77 of file cl_video.h.

◆ x

int viddef_t::x

Definition at line 79 of file cl_video.h.

◆ y

int viddef_t::y

Definition at line 79 of file cl_video.h.


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