context Class Reference

#include <context.hpp>

Inheritance diagram for context:

Inheritance graph
[legend]
Collaboration diagram for context:

Collaboration graph
[legend]

List of all members.


Detailed Description

The current game context.

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

cameracam
 The current viewpoint's camera node.
platform::displayconsole
 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
nodescenery
 The root of the scene graph.
platform::displayscreen
 The current screen (may be different from the console).
simulationsim
 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
nodeview
 The current viewpoint node.

Member Enumeration Documentation

anonymous enum

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

context (  ) 

Definition at line 42 of file context.cpp.

~context (  )  [virtual]

Definition at line 50 of file context.cpp.


Member Data Documentation

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

double julian_cur

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

The number of lights in the world.

Definition at line 66 of file context.hpp.

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

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

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:07 2008 for Periapsis Project by  doxygen 1.5.5