space_context Class Reference

#include <space_context.hpp>

Inheritance diagram for space_context:

Inheritance graph
[legend]
Collaboration diagram for space_context:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 48 of file space_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

 space_context ()
virtual ~space_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).
gsgl::platform::color DEFAULT_LABEL_COLOR
gsgl::platform::fontDEFAULT_LABEL_FONT
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.

Member Enumeration Documentation

anonymous enum [inherited]

Enumerator:
NO_RENDER_FLAGS 
RENDER_LABELS 
RENDER_COORD_SYSTEMS 
RENDER_WIREFRAME 
RENDER_UNTEXTURED 
RENDER_ANISOTROPIC 
RENDER_UNLIT 

Definition at line 89 of file context.hpp.


Constructor & Destructor Documentation

space_context (  ) 

~space_context (  )  [virtual]

Definition at line 56 of file space_context.cpp.

References space_context::DEFAULT_LABEL_FONT.


Member Data Documentation

camera* cam [inherited]

platform::display* console [inherited]

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 [inherited]

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 [inherited]

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 [inherited]

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().

Definition at line 52 of file space_context.hpp.

Referenced by space_context::space_context().

unsigned long delta_tick [inherited]

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 [inherited]

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 [inherited]

double julian_cur [inherited]

double julian_dt [inherited]

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 [inherited]

The starting game time in Julian days.

Definition at line 84 of file context.hpp.

Referenced by simulation::init_context().

int num_lights [inherited]

The number of lights in the world.

Definition at line 66 of file context.hpp.

Referenced by lithosphere_quadtree::draw(), and node::draw_scene().

node* scenery [inherited]

The root of the scene graph.

Definition at line 59 of file context.hpp.

Referenced by simulation::init_context(), and simulation::update_context().

platform::display* screen [inherited]

simulation* sim [inherited]

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 [inherited]

The start time of the simulation.

Definition at line 73 of file context.hpp.

Referenced by simulation::init_context().

unsigned long start_tick [inherited]

The starting tick value (in milliseconds).

Definition at line 76 of file context.hpp.

Referenced by simulation::init_context().

double start_time [inherited]

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().

gsgl::real_t time_scale [inherited]

node* view [inherited]

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().


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

Generated on Sat Mar 1 13:50:09 2008 for Periapsis Project by  doxygen 1.5.5