RenderTargets Class Reference

#include <RenderTargets.h>

List of all members.

Public Member Functions

void shadowDraw ()
unsigned int getTreesDrawn ()
unsigned int getTargetsDrawn ()

Static Public Member Functions

static RenderTargetsinstance ()

Public Attributes

RenderTargets::Renderer3D render3D
RenderTargets::Renderer2D render2D

Protected Member Functions

void draw2d ()
void draw ()

Protected Attributes

unsigned int treesDrawn_
unsigned int targetsDrawn_
TankMenus menus_

Static Protected Attributes

static RenderTargetsinstance_ = 0

Private Member Functions

 RenderTargets ()
virtual ~RenderTargets ()

Friends

struct Renderer3D
struct Renderer2D

Classes

struct  Renderer2D
struct  Renderer3D


Detailed Description

Definition at line 27 of file RenderTargets.h.


Constructor & Destructor Documentation

RenderTargets::RenderTargets (  )  [private]

Definition at line 50 of file RenderTargets.cpp.

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

Definition at line 55 of file RenderTargets.cpp.


Member Function Documentation

RenderTargets * RenderTargets::instance (  )  [static]

Definition at line 41 of file RenderTargets.cpp.

References instance_.

Referenced by ClientState::addStandardComponents(), RenderTargets::Renderer3D::draw(), RenderTargets::Renderer2D::draw(), AnimatedBackdropDialog::drawBackground(), CameraDialog::drawLandscape(), Landscape::drawShadows(), HelpButtonDialog::PerformanceMenu::getMenuToolTip(), and AnimatedBackdropDialog::simulate().

void RenderTargets::shadowDraw (  ) 

Definition at line 144 of file RenderTargets.cpp.

References GLState::ALPHATEST_OFF, GLState::BLEND_OFF, ModelRendererTree::drawInternalPre(), drawTargetShadows(), GAMESTATE_PERF_COUNTER_END, GAMESTATE_PERF_COUNTER_START, TargetVisibilityPatch::getDistance(), TargetVisibilityPatch::getLargeTargets(), VisibilityPatchGrid::getPatchInfo(), TargetVisibilityPatch::getTargets(), VisibilityPatchInfo::getTargetVisibility(), TargetVisibilityPatch::getTrees(), VisibilityPatchInfo::getTreeVisibility(), TargetVisibilityIterator::init(), ScorchedClient::instance(), VisibilityPatchGrid::instance(), ModelRendererTree::setSkipPre(), and GLState::TEXTURE_OFF.

Referenced by Landscape::drawShadows().

unsigned int RenderTargets::getTreesDrawn (  )  [inline]

Definition at line 54 of file RenderTargets.h.

References treesDrawn_.

unsigned int RenderTargets::getTargetsDrawn (  )  [inline]

Definition at line 55 of file RenderTargets.h.

References targetsDrawn_.

void RenderTargets::draw2d (  )  [protected]

Definition at line 302 of file RenderTargets.cpp.

References drawTargets2D(), TargetVisibilityPatch::getDistance(), VisibilityPatchGrid::getPatchInfo(), VisibilityPatchInfo::getTargetVisibility(), TargetVisibilityPatch::getTooltips(), and VisibilityPatchGrid::instance().

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

void RenderTargets::draw (  )  [protected]

Definition at line 216 of file RenderTargets.cpp.

References GLState::ALPHATEST_ON, GLState::BLEND_ON, ModelRendererTree::drawInternalPre(), drawTargets(), GAMESTATE_PERF_COUNTER_END, GAMESTATE_PERF_COUNTER_START, TargetVisibilityPatch::getDistance(), TargetVisibilityPatch::getLargeTargets(), VisibilityPatchGrid::getPatchInfo(), Landscape::getSky(), Sky::getSun(), TargetVisibilityPatch::getTargets(), VisibilityPatchInfo::getTargetVisibility(), TargetVisibilityPatch::getTrees(), VisibilityPatchInfo::getTreeVisibility(), OptionsDisplay::instance(), ScorchedClient::instance(), VisibilityPatchGrid::instance(), Landscape::instance(), GLState::LIGHT1_ON, GLState::LIGHTING_ON, GLState::NORMALIZE_ON, Sun::setLightPosition(), ModelRendererTree::setSkipPre(), targetsDrawn_, GLState::TEXTURE_ON, and treesDrawn_.

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


Friends And Related Function Documentation

friend struct Renderer3D [friend]

Definition at line 57 of file RenderTargets.h.

friend struct Renderer2D [friend]

Definition at line 58 of file RenderTargets.h.


Member Data Documentation

RenderTargets::Renderer3D RenderTargets::render3D

Referenced by AnimatedBackdropDialog::drawBackground(), CameraDialog::drawLandscape(), and AnimatedBackdropDialog::simulate().

RenderTargets::Renderer2D RenderTargets::render2D

Referenced by AnimatedBackdropDialog::simulate().

RenderTargets * RenderTargets::instance_ = 0 [static, protected]

Definition at line 60 of file RenderTargets.h.

Referenced by instance().

unsigned int RenderTargets::treesDrawn_ [protected]

Definition at line 62 of file RenderTargets.h.

Referenced by draw(), and getTreesDrawn().

unsigned int RenderTargets::targetsDrawn_ [protected]

Definition at line 62 of file RenderTargets.h.

Referenced by draw(), and getTargetsDrawn().

TankMenus RenderTargets::menus_ [protected]

Definition at line 63 of file RenderTargets.h.


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