RenderGeoms Class Reference

#include <RenderGeoms.h>

List of all members.

Public Member Functions

virtual void draw (const unsigned state)

Static Public Member Functions

static RenderGeomsinstance ()

Protected Member Functions

void drawTargetSpace ()
void drawCollisionBounds ()
void drawCollisionGeoms ()

Private Member Functions

 RenderGeoms ()
virtual ~RenderGeoms ()


Detailed Description

Definition at line 24 of file RenderGeoms.h.


Constructor & Destructor Documentation

RenderGeoms::RenderGeoms (  )  [private]

Definition at line 36 of file RenderGeoms.cpp.

RenderGeoms::~RenderGeoms (  )  [private, virtual]

Definition at line 40 of file RenderGeoms.cpp.


Member Function Documentation

RenderGeoms * RenderGeoms::instance (  )  [static]

Definition at line 30 of file RenderGeoms.cpp.

Referenced by RenderTargets::Renderer3D::draw().

void RenderGeoms::draw ( const unsigned  state  )  [virtual]

Definition at line 44 of file RenderGeoms.cpp.

References drawCollisionBounds(), drawCollisionGeoms(), drawTargetSpace(), and OptionsDisplay::instance().

Referenced by RenderTargets::Renderer3D::draw().

void RenderGeoms::drawTargetSpace (  )  [protected]

Definition at line 58 of file RenderGeoms.cpp.

References TargetSpace::draw(), ScorchedClient::getContext(), ScorchedContext::getTargetSpace(), and ScorchedClient::instance().

Referenced by draw().

void RenderGeoms::drawCollisionBounds (  )  [protected]

Definition at line 63 of file RenderGeoms.cpp.

References FixedVector::asVector(), TargetLife::getAabbSize(), Target::getAlive(), TargetLife::getFloatPosition(), Target::getLife(), ScorchedContext::getTargetContainer(), TargetContainer::getTargets(), GL_LINE_LOOP, glBegin(), glColor3f(), glEnd(), glNormal3d(), glPopMatrix(), glPushMatrix(), glTranslated(), glVertex3d(), ScorchedClient::instance(), and GLState::TEXTURE_OFF.

Referenced by draw().

void RenderGeoms::drawCollisionGeoms (  )  [protected]

Definition at line 143 of file RenderGeoms.cpp.

References FixedVector::asVector(), Target::getAlive(), TargetLife::getBoundingSphere(), TargetLife::getFloatPosition(), Target::getLife(), FixedVector4::getOpenGLRotationMatrix(), TargetLife::getQuaternion(), TargetLife::getSize(), ScorchedContext::getTargetContainer(), TargetContainer::getTargets(), GL_LINE_LOOP, glBegin(), glColor3f(), glEnd(), glMultMatrixf(), glNormal3d(), glPopMatrix(), glPushMatrix(), glTranslated(), glVertex3d(), ScorchedClient::instance(), MAX, and GLState::TEXTURE_OFF.

Referenced by draw().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:05 2009 for Scorched3D by  doxygen 1.5.3