#include <ExplosionLaserBeamRenderer.h>

Public Member Functions | |
| ExplosionLaserBeamRenderer () | |
| virtual | ~ExplosionLaserBeamRenderer () |
| virtual void | init (unsigned int playerId, Vector &position, Vector &velocity, const char *data) |
| virtual void | draw (Action *action) |
| virtual void | simulate (Action *action, float frameTime, bool &remove) |
| REGISTER_CLASS_HEADER (ExplosionLaserBeamRenderer) | |
Private Attributes | |
| Vector | position_ |
| float | size_ |
| float | time_ |
| float | totalTime_ |
| Vector | points [layers][sides] |
| float | angle_ |
Static Private Attributes | |
| static GLTexture * | _texture = 0 |
Definition at line 31 of file ExplosionLaserBeamRenderer.h.
| ExplosionLaserBeamRenderer::ExplosionLaserBeamRenderer | ( | ) |
Definition at line 39 of file ExplosionLaserBeamRenderer.cpp.
| ExplosionLaserBeamRenderer::~ExplosionLaserBeamRenderer | ( | ) | [virtual] |
Definition at line 35 of file ExplosionLaserBeamRenderer.cpp.
| void ExplosionLaserBeamRenderer::init | ( | unsigned int | playerId, | |
| Vector & | position, | |||
| Vector & | velocity, | |||
| const char * | data | |||
| ) | [virtual] |
Implements MetaActionRenderer.
Definition at line 45 of file ExplosionLaserBeamRenderer.cpp.
References _texture, GLTexture::create(), VirtualSoundPriority::eAction, ParticleEmitter::emitLinear(), Sound::fetchOrCreateBuffer(), S3D::getDataFile(), ParticleRendererQuads::getInstance(), Vector::getNullVector(), ScorchedClient::instance(), Sound::instance(), layers, ImageFactory::loadImageHandle(), SoundUtils::playAbsoluteSound(), points, position_, ParticleEmitter::setAttributes(), sides, size_, and LangStringUtil::strcmp().
| void ExplosionLaserBeamRenderer::draw | ( | Action * | action | ) | [virtual] |
Implements ActionRenderer.
Definition at line 96 of file ExplosionLaserBeamRenderer.cpp.
References _texture, angle_, GLState::BLEND_ON, GLTexture::draw(), GL_TRIANGLE_STRIP, glBegin(), glColor4f(), glEnd(), glNormal3fv(), glPopMatrix(), glPushMatrix(), glRotatef(), glScalef(), glTexCoord2f(), glTranslatef(), glVertex3fv(), int(), layers, points, position_, sides, GLState::TEXTURE_ON, and time_.
| void ExplosionLaserBeamRenderer::simulate | ( | Action * | action, | |
| float | frameTime, | |||
| bool & | remove | |||
| ) | [virtual] |
Reimplemented from ActionRenderer.
Definition at line 154 of file ExplosionLaserBeamRenderer.cpp.
References angle_, size_, time_, and totalTime_.
| ExplosionLaserBeamRenderer::REGISTER_CLASS_HEADER | ( | ExplosionLaserBeamRenderer | ) |
Vector ExplosionLaserBeamRenderer::position_ [private] |
float ExplosionLaserBeamRenderer::size_ [private] |
float ExplosionLaserBeamRenderer::time_ [private] |
float ExplosionLaserBeamRenderer::totalTime_ [private] |
Vector ExplosionLaserBeamRenderer::points[layers][sides] [private] |
float ExplosionLaserBeamRenderer::angle_ [private] |
GLTexture * ExplosionLaserBeamRenderer::_texture = 0 [static, private] |
1.5.3