#include <context.hpp>


Definition at line 53 of file context.hpp.
Public Types | |
| enum | { NO_RENDER_FLAGS = 0, RENDER_LABELS = 1 << 0, RENDER_COORD_SYSTEMS = 1 << 1, RENDER_WIREFRAME = 1 << 2, RENDER_UNTEXTURED = 1 << 3, RENDER_ANISOTROPIC = 1 << 4, RENDER_UNLIT = 1 << 5 } |
Public Member Functions | |
| context () | |
| virtual | ~context () |
Public Attributes | |
| camera * | cam |
| The current viewpoint's camera node. | |
| platform::display * | console |
| The game console. | |
| time_t | cur_t_time |
| The current time. | |
| unsigned long | cur_tick |
| The tick value at the start of the current frame. | |
| double | cur_time |
| In Unix time (seconds starting Jan 1, 1970). | |
| unsigned long | delta_tick |
| The number of ticks since the last frame (milliseconds; NOT scaled). | |
| double | delta_time |
| Time since the last frame (in game-time seconds; i.e. may be scaled). | |
| unsigned long | frame |
| The current frame number. | |
| double | julian_cur |
| The current game time in Julian days. | |
| double | julian_dt |
| Time since the last frame (in game-time Julian days; i.e. may be scaled). | |
| double | julian_start |
| The starting game time in Julian days. | |
| int | num_lights |
| The number of lights in the world. | |
| gsgl::flags_t | render_flags |
| node * | scenery |
| The root of the scene graph. | |
| platform::display * | screen |
| The current screen (may be different from the console). | |
| simulation * | sim |
| The current simulation. | |
| time_t | start_t_time |
| The start time of the simulation. | |
| unsigned long | start_tick |
| The starting tick value (in milliseconds). | |
| double | start_time |
| In Unix time (seconds starting Jan 1, 1970). | |
| gsgl::real_t | time_scale |
| node * | view |
| The current viewpoint node. | |
| anonymous enum |
| NO_RENDER_FLAGS | |
| RENDER_LABELS | |
| RENDER_COORD_SYSTEMS | |
| RENDER_WIREFRAME | |
| RENDER_UNTEXTURED | |
| RENDER_ANISOTROPIC | |
| RENDER_UNLIT |
Definition at line 89 of file context.hpp.
| context | ( | ) |
Definition at line 42 of file context.cpp.
| ~context | ( | ) | [virtual] |
Definition at line 50 of file context.cpp.
The current viewpoint's camera node.
Definition at line 63 of file context.hpp.
Referenced by coord_system::draw(), stellar_db::draw(), star::draw(), sph_qt_node::draw(), simulation::draw(), large_rocky_body::draw(), celestial_body::draw(), celestial_body::draw_name(), node::draw_scene(), simulation::init_context(), spherical_quadtree::node_radius(), node::pre_draw_scene(), large_lithosphere::update(), and simulation::update_context().
The game console.
Definition at line 58 of file context.hpp.
Referenced by simulation::init_context(), and simulation::update_context().
| time_t cur_t_time |
The current time.
Definition at line 74 of file context.hpp.
Referenced by simulation::draw(), simulation::init_context(), and simulation::update_context().
| unsigned long cur_tick |
The tick value at the start of the current frame.
Definition at line 77 of file context.hpp.
Referenced by freeview::handle_event(), simulation::init_context(), freeview::rot_absolute(), freeview::rot_relative(), freeview::update(), and simulation::update_context().
| double cur_time |
In Unix time (seconds starting Jan 1, 1970).
Definition at line 81 of file context.hpp.
Referenced by simulation::init_context(), test_frame::update(), spacecraft::update(), rigid_body::update(), and simulation::update_context().
| unsigned long delta_tick |
The number of ticks since the last frame (milliseconds; NOT scaled).
Definition at line 78 of file context.hpp.
Referenced by simulation::init_context(), simulation::update(), freeview::update(), and simulation::update_context().
| double delta_time |
Time since the last frame (in game-time seconds; i.e. may be scaled).
Definition at line 82 of file context.hpp.
Referenced by simulation::init_context(), rigid_body::update(), and simulation::update_context().
| unsigned long frame |
The current frame number.
Definition at line 71 of file context.hpp.
Referenced by spherical_quadtree::draw(), simulation::init_context(), spherical_quadtree::merge_node(), spherical_quadtree::node_radius(), spherical_quadtree::split_node(), spherical_quadtree::update(), simulation::update(), and simulation::update_context().
| double julian_cur |
The current game time in Julian days.
Definition at line 85 of file context.hpp.
Referenced by rotating_body::init(), orbital_frame::init(), simulation::init_context(), rotating_body::update(), orbital_frame::update(), and simulation::update_context().
| double julian_dt |
Time since the last frame (in game-time Julian days; i.e. may be scaled).
Definition at line 86 of file context.hpp.
Referenced by simulation::init_context(), and simulation::update_context().
| double julian_start |
The starting game time in Julian days.
Definition at line 84 of file context.hpp.
Referenced by simulation::init_context().
| int num_lights |
The number of lights in the world.
Definition at line 66 of file context.hpp.
Referenced by lithosphere_quadtree::draw(), and node::draw_scene().
Definition at line 100 of file context.hpp.
Referenced by simple_sphere::draw(), stellar_db::draw(), star::draw(), spherical_clipmap::draw(), solar_system::draw(), planet_system::draw(), submesh_node::draw(), large_rocky_body::draw(), galaxy::draw(), celestial_body::draw(), celestial_body::draw_name(), node::draw_scene(), simulation::handle_event(), simulation::init_context(), and application::run().
The root of the scene graph.
Definition at line 59 of file context.hpp.
Referenced by simulation::init_context(), and simulation::update_context().
The current screen (may be different from the console).
Definition at line 61 of file context.hpp.
Referenced by coord_system::draw(), stellar_db::draw(), star::draw(), sph_qt_node::draw(), simulation::draw(), large_rocky_body::draw(), celestial_body::draw(), celestial_body::draw_name(), node::draw_scene(), simulation::init_context(), spherical_quadtree::node_radius(), large_lithosphere::update(), and simulation::update_context().
The current simulation.
Definition at line 57 of file context.hpp.
Referenced by simulation::init_context(), and simulation::update_context().
| time_t start_t_time |
The start time of the simulation.
Definition at line 73 of file context.hpp.
Referenced by simulation::init_context().
| unsigned long start_tick |
The starting tick value (in milliseconds).
Definition at line 76 of file context.hpp.
Referenced by simulation::init_context().
| double start_time |
In Unix time (seconds starting Jan 1, 1970).
Definition at line 80 of file context.hpp.
Referenced by simulation::init_context(), test_frame::update(), and spacecraft::update().
Definition at line 69 of file context.hpp.
Referenced by simulation::init_context(), test_frame::update(), and simulation::update_context().
The current viewpoint node.
Definition at line 62 of file context.hpp.
Referenced by simulation::draw(), freeview::handle_event(), simulation::init_context(), and simulation::update_context().
1.5.5