HyperRogue  11.3d
game/visualization engine based on non-Euclidean geometry
Classes | Namespaces | Macros | Typedefs | Functions | Variables
geometry.cpp File Reference

Calculation of basic, and less basic, constants in each geometry. More...

#include "hyper.h"

Classes

struct  hr::usershapelayer
 
struct  hr::usershape
 
struct  hr::hpcshape
 
struct  hr::floorshape
 
struct  hr::plain_floorshape
 
struct  hr::escher_floorshape
 
struct  hr::basic_textureinfo
 
struct  hr::geometry_information
 
struct  hr::geometry_information::cellrotation_t
 
struct  hr::geometry_information::gpdata_t
 

Namespaces

 hr
 

Macros

#define SIDE_SLEV   0
 
#define SIDE_WTS3   3
 
#define SIDE_WALL   4
 
#define SIDE_LAKE   5
 
#define SIDE_LTOB   6
 
#define SIDE_BTOI   7
 
#define SIDE_SKY   8
 
#define SIDE_HIGH   9
 
#define SIDE_HIGH2   10
 
#define SIDE_ASHA   11
 
#define SIDE_BSHA   12
 
#define SIDEPARS   13
 
#define BADMODEL   0
 
#define cgi   (*cgip)
 

Typedefs

typedef array< hpcshape, WINGS+1 > hr::hpcshape_animated
 

Functions

EX bool hr::scale_used ()
 
EX transmatrix hr::xspinpush (ld dir, ld dist)
 
ld hr::geom3::abslev_to_projection (ld abslev)
 
ld hr::geom3::projection_to_abslev (ld proj)
 
ld hr::geom3::lev_to_projection (ld lev)
 
ld hr::geom3::projection_to_factor (ld proj)
 
EX ld hr::geom3::factor_to_projection (ld fac)
 
EX ld hr::geom3::lev_to_factor (ld lev)
 
EX ld hr::geom3::factor_to_lev (ld fac)
 
EX void hr::geom3::do_auto_eye ()
 
EX ld hr::geom3::scale_at_lev (ld lev)
 
EX ld hr::geom3::actual_wall_height ()
 
EX void hr::geom3::apply_always3 ()
 
EX void hr::geom3::switch_always3 ()
 
EX void hr::geom3::switch_tpp ()
 
EX void hr::geom3::switch_fpp ()
 
EX void hr::check_cgi ()
 
void hr::clear_cgis ()
 

Variables

int hr::usershape_changes
 
vector< hpcshape > hr::shPlainWall3D
 
vector< hpcshape > hr::shWireframe3D
 
vector< hpcshape > hr::shWall3D
 
vector< hpcshape > hr::shMiniWall3D
 
vector< ld > hr::equal_weights
 
EX purehookset hr::hooks_swapdim
 
EX string hr::geom3::invalid
 
EX geometry_information * hr::cgip
 
EX map< string, geometry_information > hr::cgis
 
EX int hr::last_texture_step
 
int hr::ntimestamp
 
auto hr::ah_clear_geo = addHook(hooks_clear_cache, 0, clear_cgis)
 

Detailed Description

Calculation of basic, and less basic, constants in each geometry.