HyperRogue  11.3d
game/visualization engine based on non-Euclidean geometry
Public Member Functions | Public Attributes | List of all members
hr::display_data Struct Reference

Public Member Functions

ld eyewidth ()
 
bool stereo_active ()
 
bool in_anaglyph ()
 
void set_viewport (int ed)
 
void set_projection (int ed)
 
void set_mask (int ed)
 
void set_all (int ed)
 

Public Attributes

cellprecise_center
 
transmatrix view_matrix
 
transmatrix local_perspective
 
transmatrix player_matrix
 
unordered_map< cell *, transmatrixcellmatrices
 
unordered_map< cell *, transmatrixold_cellmatrices
 
ld xmin
 
ld ymin
 
ld xmax
 
ld ymax
 
ld xtop
 
ld ytop
 
ld xsize
 
ld ysize
 
int xcenter
 
int ycenter
 
ld radius
 
int scrsize
 
bool sidescreen
 
ld tanfov
 
flagtype next_shader_flags
 
transmatrix which_copy
 
unordered_map< cell *, vector< transmatrix > > all_drawn_copies
 

Detailed Description

configuration of the current view

Member Data Documentation

◆ precise_center

cell* hr::display_data::precise_center

The cell which is currently in the center.

◆ view_matrix

transmatrix hr::display_data::view_matrix

The current rotation, relative to precise_center.

◆ local_perspective

transmatrix hr::display_data::local_perspective

Camera rotation, used in nonisotropic geometries.

◆ player_matrix

transmatrix hr::display_data::player_matrix

The view relative to the player character.

◆ cellmatrices

unordered_map<cell*, transmatrix> hr::display_data::cellmatrices

On-screen coordinates for all the visible cells.

◆ xmin

ld hr::display_data::xmin

Position of the current map view, relative to the screen (0 to 1).

◆ xtop

ld hr::display_data::xtop

Position of the current map view, in pixels.

◆ xcenter

int hr::display_data::xcenter

Center of the current map view, in pixels.

◆ which_copy

transmatrix hr::display_data::which_copy

Which copy of the player cell?

◆ all_drawn_copies

unordered_map<cell*, vector<transmatrix> > hr::display_data::all_drawn_copies

On-screen coordinates for all the visible cells.


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