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

A raycaster to draw walls. More...

#include "hyper.h"

Classes

struct  hr::ray::raycaster
 

Namespaces

 hr
 

Macros

#define IN_ODS   0
 
#define GET(array, index)   array "[" index "]"
 

Functions

EX ld & hr::ray::exp_decay_current ()
 
EX int & hr::ray::max_iter_current ()
 
ld & hr::ray::maxstep_current ()
 
EX bool hr::ray::available ()
 
EX bool hr::ray::requested ()
 
EX void hr::ray::reset_raycaster ()
 
void hr::ray::enable_raycaster ()
 
void hr::ray::bind_array (vector< array< float, 4 >> &v, GLint t, GLuint &tx, int id)
 
void hr::ray::uniform2 (GLint id, array< float, 2 > fl)
 
array< float, 2 > hr::ray::enc (int i, int a)
 
EX void hr::ray::cast ()
 
EX void hr::ray::configure ()
 
int hr::ray::readArgs ()
 
void hr::ray::addconfig ()
 

Variables

GLuint hr::ray::txConnections = 0
 
GLuint hr::ray::txWallcolor = 0
 
GLuint hr::ray::txTextureMap = 0
 
EX bool hr::ray::in_use
 
EX bool hr::ray::comparison_mode
 
EX int hr::ray::want_use = 1
 
EX ld hr::ray::exp_start = 1
 
EX ld hr::ray::exp_decay_exp = 4
 
EX ld hr::ray::exp_decay_poly = 10
 
EX ld hr::ray::maxstep_sol = .02
 
EX ld hr::ray::maxstep_nil = .1
 
EX ld hr::ray::minstep = .001
 
EX ld hr::ray::reflect_val = 0
 
EX ld hr::ray::hard_limit = NO_LIMIT
 
EX int hr::ray::max_iter_sol = 600
 
EX int hr::ray::max_iter_iso = 60
 
EX int hr::ray::max_cells = 2048
 
EX bool hr::ray::rays_generate = true
 
eGeometry hr::ray::last_geometry
 
shared_ptr< raycaster > hr::ray::our_raycaster
 
int hr::ray::deg
 
int hr::ray::length
 
int hr::ray::per_row
 
int hr::ray::rows
 
color_t hr::ray::color_out_of_range = 0x0F0800FF
 
auto hr::ray::hook = addHook(hooks_args, 100, readArgs)
 
auto hr::ray::hookc = addHook(hooks_configfile, 100, addconfig)
 

Detailed Description

A raycaster to draw walls.

Function Documentation

◆ available()

EX bool hr::ray::available ( )

is the raycaster available?

◆ requested()

EX bool hr::ray::requested ( )

do we want to use the raycaster?

Variable Documentation

◆ txConnections

GLuint hr::ray::txConnections = 0

texture IDs

◆ want_use

EX int hr::ray::want_use = 1

0 - never use, 2 - always use, 1 = smart selection