gLaggometer::AxesIndicator Class Reference

Collaboration diagram for gLaggometer::AxesIndicator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AxesIndicator (gCycle *cycle)
void line (int i)
void render ()

Private Attributes

DirectionTransformer directions
Colour color


Detailed Description

Definition at line 3900 of file gCycle.cpp.


Constructor & Destructor Documentation

gLaggometer::AxesIndicator::AxesIndicator ( gCycle cycle  )  [inline]

Definition at line 3905 of file gCycle.cpp.

References gLaggometer::Colour::blend(), gLaggometer::LagOMeterRenderer::color, and gLaggometer::Colour::white.

03905       :
03906     AxesIndicator(gCycle* cycle) :
03907             directions(cycle->Grid()),
03908             color(cycle->Player())
03909     {
03910         color.blend(.5f, Colour::white);
    }

Here is the call graph for this function:


Member Function Documentation

void gLaggometer::AxesIndicator::line ( int  i  )  [inline]

Definition at line 3911 of file gCycle.cpp.

03912                      {
03913         eCoord midle = directions.get(directions.ahead() + i) * .1f;
03914         eCoord inner = midle * .5f;
03915         eCoord outer = midle + directions.get(directions.ahead() + 2 * i) * .05f;
03916 
03917         BeginLineStrip();
03918         //Colour::black.toGl();
03919         color.toGl();
03920         glVertex2f(inner.x, inner.y);
03921 
03922 
03923         glVertex2f(midle.x, midle.y);
03924 
03925         Colour::black.toGl();
03926         glVertex2f(outer.x, outer.y);
03927         RenderEnd();

void gLaggometer::AxesIndicator::render (  )  [inline]

Definition at line 3928 of file gCycle.cpp.

03929                   {
03930         //return; // disable, for now
03931         glShadeModel(GL_SMOOTH);
03932         line(-1);
03933         line(0);
03934         line(1);


Member Data Documentation

DirectionTransformer gLaggometer::AxesIndicator::directions [private]

Definition at line 3902 of file gCycle.cpp.

Colour gLaggometer::AxesIndicator::color [private]

Definition at line 3903 of file gCycle.cpp.


The documentation for this class was generated from the following file:
Generated on Sun Mar 16 00:05:11 2008 for Armagetron Advanced by  doxygen 1.5.4