ExplosionLaserBeamRenderer Class Reference

#include <ExplosionLaserBeamRenderer.h>

Inheritance diagram for ExplosionLaserBeamRenderer:

MetaActionRenderer ActionRenderer MetaClass

List of all members.

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


Detailed Description

Definition at line 31 of file ExplosionLaserBeamRenderer.h.


Constructor & Destructor Documentation

ExplosionLaserBeamRenderer::ExplosionLaserBeamRenderer (  ) 

Definition at line 39 of file ExplosionLaserBeamRenderer.cpp.

ExplosionLaserBeamRenderer::~ExplosionLaserBeamRenderer (  )  [virtual]

Definition at line 35 of file ExplosionLaserBeamRenderer.cpp.


Member Function Documentation

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   ) 


Member Data Documentation

Vector ExplosionLaserBeamRenderer::position_ [private]

Definition at line 47 of file ExplosionLaserBeamRenderer.h.

Referenced by draw(), and init().

float ExplosionLaserBeamRenderer::size_ [private]

Definition at line 48 of file ExplosionLaserBeamRenderer.h.

Referenced by init(), and simulate().

float ExplosionLaserBeamRenderer::time_ [private]

Definition at line 49 of file ExplosionLaserBeamRenderer.h.

Referenced by draw(), and simulate().

float ExplosionLaserBeamRenderer::totalTime_ [private]

Definition at line 50 of file ExplosionLaserBeamRenderer.h.

Referenced by simulate().

Vector ExplosionLaserBeamRenderer::points[layers][sides] [private]

Definition at line 51 of file ExplosionLaserBeamRenderer.h.

Referenced by draw(), and init().

float ExplosionLaserBeamRenderer::angle_ [private]

Definition at line 52 of file ExplosionLaserBeamRenderer.h.

Referenced by draw(), and simulate().

GLTexture * ExplosionLaserBeamRenderer::_texture = 0 [static, private]

Definition at line 53 of file ExplosionLaserBeamRenderer.h.

Referenced by draw(), and init().


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