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

#include <render.h>

+ Collaboration diagram for r_viewport_t:

Data Fields

matrix4x4_t cameramatrix
 from entity (transforms from camera entity to world)
 
int depth
 
int height
 
matrix4x4_t projectmatrix
 actual projection matrix (transforms from viewspace to screen)
 
float screentodepth [2]
 used by deferred renderer to calculate linear depth from device depth coordinates
 
r_viewport_type_t type
 
matrix4x4_t viewmatrix
 actual matrix for rendering (transforms to viewspace)
 
int width
 
int x
 
int y
 
int z
 

Detailed Description

Definition at line 238 of file render.h.

Field Documentation

◆ cameramatrix

matrix4x4_t r_viewport_t::cameramatrix

from entity (transforms from camera entity to world)

Definition at line 240 of file render.h.

◆ depth

int r_viewport_t::depth

Definition at line 248 of file render.h.

◆ height

◆ projectmatrix

matrix4x4_t r_viewport_t::projectmatrix

actual projection matrix (transforms from viewspace to screen)

Definition at line 242 of file render.h.

Referenced by R_Shadow_DrawModelShadowMaps().

◆ screentodepth

float r_viewport_t::screentodepth[2]

used by deferred renderer to calculate linear depth from device depth coordinates

Definition at line 250 of file render.h.

Referenced by R_SetupShader_DeferredLight(), and R_SetupShader_Surface().

◆ type

r_viewport_type_t r_viewport_t::type

Definition at line 249 of file render.h.

◆ viewmatrix

matrix4x4_t r_viewport_t::viewmatrix

actual matrix for rendering (transforms to viewspace)

Definition at line 241 of file render.h.

Referenced by R_SetupShader_DeferredLight(), and R_Shadow_DrawModelShadowMaps().

◆ width

◆ x

◆ y

◆ z

int r_viewport_t::z

Definition at line 245 of file render.h.


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