Track::Drawable Class Reference

Base clase for anything which can be drawn in game. More...

#include <Drawable.h>

Inheritance diagram for Track::Drawable:

Track::AABBDrawable Track::Path Engine::GameObjects::Car Track::DrawableMesh Track::PathEdge Track::PathVertex Track::BulletMesh List of all members.

Public Member Functions

 Drawable ()
virtual ~Drawable ()
virtual void draw () const =0
 Draw the object.
virtual void conditional_draw (const OcclusionTester &occlusion_tester) const
 Draw the object if it is visible.

Detailed Description

Base clase for anything which can be drawn in game.

Definition at line 21 of file Drawable.h.


Constructor & Destructor Documentation

Track::Drawable::Drawable (  ) 

Definition at line 16 of file Drawable.cpp.

Track::Drawable::~Drawable (  )  [virtual]

Definition at line 20 of file Drawable.cpp.


Member Function Documentation

void Track::Drawable::conditional_draw ( const OcclusionTester occlusion_tester  )  const [virtual]

Draw the object if it is visible.

Parameters:
occlusion_tester Reference to object describing planes of the view's frustrum to test against.

Reimplemented in Track::AABBDrawable, Track::Path, and Track::PathEdge.

Definition at line 24 of file Drawable.cpp.

virtual void Track::Drawable::draw (  )  const [pure virtual]

Draw the object.

Called indirectly by draw(const OcclusionTester &) const when it is on the screen, but can also be called manually if view bounds are not known.

Implemented in Track::DrawableMesh, Track::Path, Track::PathEdge, Track::PathVertex, and Engine::GameObjects::Car.


The documentation for this class was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:18 2010 by Doxygen version 1.4.7 for Racer version svn335.