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.

Referenced by CL_UpdateScreen(), R_Bloom_StartFrame(), R_Envmap_f(), and R_RenderView().

◆ clipplane

mplane_t r_refdef_view_t::clipplane

Definition at line 276 of file render.h.

Referenced by R_SetupView(), R_View_SetFrustum(), and R_Water_ProcessPlanes().

◆ colormask

◆ colorscale

◆ cullface_back

◆ cullface_front

◆ depth

int r_refdef_view_t::depth

Definition at line 295 of file render.h.

Referenced by R_Envmap_f(), and SCR_DrawScreen().

◆ forward

◆ frustum

◆ frustum_x

◆ frustum_y

◆ frustumcorner

vec3_t r_refdef_view_t::frustumcorner[4]

◆ height

◆ inverse_matrix

matrix4x4_t r_refdef_view_t::inverse_matrix

Definition at line 266 of file render.h.

Referenced by R_RenderView_UpdateViewVectors(), and R_TrackSprite().

◆ 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.

Referenced by R_Bloom_StartFrame(), R_Envmap_f(), R_MotionBlurView(), R_RenderView(), SCR_DrawScreen(), VM_CL_R_RenderScene(), and VM_CL_R_SetView().

◆ 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.

Referenced by CL_UpdateScreen(), R_Envmap_f(), R_GetCurrentTexture(), R_RenderView(), R_SetupShader_Surface(), and VM_CL_R_SetView().

◆ left

◆ matrix

◆ numfrustumplanes

int r_refdef_view_t::numfrustumplanes

Definition at line 272 of file render.h.

Referenced by R_CullFrustum(), and R_View_SetFrustum().

◆ origin

◆ ortho_x

◆ ortho_y

◆ 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.

Referenced by CL_TimeRefresh_f(), CL_UpdateScreen(), CL_UpdateWorld(), MP_Draw(), R_DrawParticles(), R_Envmap_f(), R_SetupShader_Surface(), R_TimeReport_EndFrame(), and VM_CL_R_SetView().

◆ right

◆ showdebug

◆ up

◆ useclipplane

qbool r_refdef_view_t::useclipplane

Definition at line 274 of file render.h.

Referenced by R_SetupView(), R_View_SetFrustum(), and R_Water_ProcessPlanes().

◆ 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.

Referenced by R_View_WorldVisibility(), and R_Water_ProcessPlanes().

◆ useperspective

int r_refdef_view_t::useperspective

◆ 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.

Referenced by R_CanSeeBox(), R_RenderView(), R_View_Update(), R_View_WorldVisibility(), R_Water_ProcessPlanes(), and V_MakeViewIsometric().

◆ viewport

◆ width

◆ x

int r_refdef_view_t::x

◆ y

int r_refdef_view_t::y

◆ z

int r_refdef_view_t::z

Definition at line 292 of file render.h.

Referenced by R_Envmap_f(), and SCR_DrawScreen().


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