#include <ModelRendererSimulator.h>
Public Member Functions | |
| ModelRendererSimulator (ModelRenderer *renderer) | |
| virtual | ~ModelRendererSimulator () |
| void | draw (float distance=0.0f, float fade=1.0f, bool setState=true) |
| void | drawBottomAligned (float distance=0.0f, float fade=1.0f, bool setState=true) |
| void | simulate (float frameTime) |
| ModelRenderer * | getRenderer () |
Protected Attributes | |
| ModelRenderer * | renderer_ |
| float | currentFrame_ |
Definition at line 25 of file ModelRendererSimulator.h.
| ModelRendererSimulator::ModelRendererSimulator | ( | ModelRenderer * | renderer | ) |
Definition at line 26 of file ModelRendererSimulator.cpp.
References currentFrame_, ModelRenderer::getModel(), Model::getStartFrame(), Model::getTotalFrames(), and renderer_.
| ModelRendererSimulator::~ModelRendererSimulator | ( | ) | [virtual] |
Definition at line 36 of file ModelRendererSimulator.cpp.
| void ModelRendererSimulator::draw | ( | float | distance = 0.0f, |
|
| float | fade = 1.0f, |
|||
| bool | setState = true | |||
| ) |
Definition at line 45 of file ModelRendererSimulator.cpp.
References currentFrame_, ModelRenderer::draw(), and renderer_.
Referenced by ShotBounce::draw(), WaterMapPoints::draw(), DebrisActionRenderer::draw(), LandscapePoints::draw(), GLWWindView::drawArrow(), and TargetRendererImplTank::render().
| void ModelRendererSimulator::drawBottomAligned | ( | float | distance = 0.0f, |
|
| float | fade = 1.0f, |
|||
| bool | setState = true | |||
| ) |
Definition at line 40 of file ModelRendererSimulator.cpp.
References currentFrame_, ModelRenderer::drawBottomAligned(), and renderer_.
Referenced by TargetRendererImplTarget::render(), and TargetRendererImplTarget::renderShadow().
| void ModelRendererSimulator::simulate | ( | float | frameTime | ) |
Definition at line 50 of file ModelRendererSimulator.cpp.
References currentFrame_.
Referenced by TargetRendererImplTarget::simulate().
| ModelRenderer* ModelRendererSimulator::getRenderer | ( | ) | [inline] |
Definition at line 37 of file ModelRendererSimulator.h.
References renderer_.
Referenced by ShotBounce::draw().
ModelRenderer* ModelRendererSimulator::renderer_ [protected] |
Definition at line 40 of file ModelRendererSimulator.h.
Referenced by draw(), drawBottomAligned(), getRenderer(), and ModelRendererSimulator().
float ModelRendererSimulator::currentFrame_ [protected] |
Definition at line 42 of file ModelRendererSimulator.h.
Referenced by draw(), drawBottomAligned(), ModelRendererSimulator(), and simulate().
1.5.3