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

#include <render.h>

Collaboration diagram for r_refdef_view_t:

Data Fields

qbool clear
 whether to call R_ClearScreen before rendering stuff
mplane_t clipplane
int colormask [4]
 which color components to allow (for anaglyph glasses)
float colorscale
 global RGB color multiplier for rendering
int cullface_back
int cullface_front
int depth
vec3_t forward
mplane_t frustum [6]
float frustum_x
float frustum_y
vec3_t frustumcorner [4]
int height
matrix4x4_t inverse_matrix
qbool ismain
 if true, this is the MAIN view (which is, after CSQC, copied into the scene for use e.g. by r_speeds 1, showtex, prydon cursor)
qbool isoverlay
 if true, don't clear or do any post process effects (bloom, etc)
vec3_t left
matrix4x4_t matrix
int numfrustumplanes
vec3_t origin
float ortho_x
float ortho_y
float quality
 render quality (0 to 1) - affects r_drawparticles_drawdistance and others
vec3_t right
qbool showdebug
vec3_t up
qbool useclipplane
qbool usecustompvs
 uses r_refdef.viewcache.pvsbits as-is rather than computing it
int useperspective
 if turned off it renders an ortho view
int usevieworiginculling
 allows visibility culling based on the view origin (e.g.
r_viewport_t viewport
 note: if r_viewscale is used, the viewport.width and viewport.height may be less than width and height
int width
int x
int y
int z

Detailed Description

Definition at line 254 of file render.h.

Field Documentation

◆ clear

qbool r_refdef_view_t::clear

whether to call R_ClearScreen before rendering stuff

Definition at line 305 of file render.h.

◆ clipplane

mplane_t r_refdef_view_t::clipplane

Definition at line 276 of file render.h.

◆ colormask

int r_refdef_view_t::colormask[4]

which color components to allow (for anaglyph glasses)

Definition at line 299 of file render.h.

◆ colorscale

float r_refdef_view_t::colorscale

global RGB color multiplier for rendering

Definition at line 302 of file render.h.

◆ cullface_back

int r_refdef_view_t::cullface_back

Definition at line 318 of file render.h.

◆ cullface_front

int r_refdef_view_t::cullface_front

Definition at line 317 of file render.h.

◆ depth

int r_refdef_view_t::depth

Definition at line 295 of file render.h.

◆ forward

vec3_t r_refdef_view_t::forward

Definition at line 268 of file render.h.

◆ frustum

mplane_t r_refdef_view_t::frustum[6]

Definition at line 273 of file render.h.

◆ frustum_x

float r_refdef_view_t::frustum_x

Definition at line 277 of file render.h.

◆ frustum_y

float r_refdef_view_t::frustum_y

Definition at line 277 of file render.h.

◆ frustumcorner

vec3_t r_refdef_view_t::frustumcorner[4]

Definition at line 278 of file render.h.

◆ height

int r_refdef_view_t::height

Definition at line 294 of file render.h.

◆ inverse_matrix

matrix4x4_t r_refdef_view_t::inverse_matrix

Definition at line 266 of file render.h.

◆ ismain

qbool r_refdef_view_t::ismain

if true, this is the MAIN view (which is, after CSQC, copied into the scene for use e.g. by r_speeds 1, showtex, prydon cursor)

Definition at line 309 of file render.h.

◆ isoverlay

qbool r_refdef_view_t::isoverlay

if true, don't clear or do any post process effects (bloom, etc)

Definition at line 307 of file render.h.

◆ left

vec3_t r_refdef_view_t::left

Definition at line 269 of file render.h.

◆ matrix

matrix4x4_t r_refdef_view_t::matrix

Definition at line 266 of file render.h.

◆ numfrustumplanes

int r_refdef_view_t::numfrustumplanes

Definition at line 272 of file render.h.

◆ origin

vec3_t r_refdef_view_t::origin

Definition at line 267 of file render.h.

◆ ortho_x

float r_refdef_view_t::ortho_x

Definition at line 287 of file render.h.

◆ ortho_y

float r_refdef_view_t::ortho_y

Definition at line 287 of file render.h.

◆ quality

float r_refdef_view_t::quality

render quality (0 to 1) - affects r_drawparticles_drawdistance and others

Definition at line 321 of file render.h.

◆ right

vec3_t r_refdef_view_t::right

Definition at line 270 of file render.h.

◆ showdebug

qbool r_refdef_view_t::showdebug

Definition at line 314 of file render.h.

◆ up

vec3_t r_refdef_view_t::up

Definition at line 271 of file render.h.

◆ useclipplane

qbool r_refdef_view_t::useclipplane

Definition at line 274 of file render.h.

◆ usecustompvs

qbool r_refdef_view_t::usecustompvs

uses r_refdef.viewcache.pvsbits as-is rather than computing it

Definition at line 275 of file render.h.

◆ useperspective

int r_refdef_view_t::useperspective

if turned off it renders an ortho view

Definition at line 280 of file render.h.

◆ usevieworiginculling

int r_refdef_view_t::usevieworiginculling

allows visibility culling based on the view origin (e.g.

pvs and R_CanSeeBox) this is turned off by: r_trippy !r_refdef.view.useperspective (sometimes) r_refdef.view.useclipplane

Definition at line 286 of file render.h.

◆ viewport

r_viewport_t r_refdef_view_t::viewport

note: if r_viewscale is used, the viewport.width and viewport.height may be less than width and height

Definition at line 296 of file render.h.

◆ width

int r_refdef_view_t::width

Definition at line 293 of file render.h.

◆ x

int r_refdef_view_t::x

Definition at line 290 of file render.h.

◆ y

int r_refdef_view_t::y

Definition at line 291 of file render.h.

◆ z

int r_refdef_view_t::z

Definition at line 292 of file render.h.


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