#include <WallActionRenderer.h>

Public Member Functions | |
| WallActionRenderer (Vector &position, OptionsTransient::WallSide type) | |
| virtual | ~WallActionRenderer () |
| void | simulate (float frameTime) |
| void | draw () |
Protected Member Functions | |
| void | init () |
Protected Attributes | |
| Vector | position_ |
| OptionsTransient::WallSide | type_ |
| bool | init_ |
| float | fade_ |
| float | xOff_ |
| float | yOff_ |
| Vector | color_ |
| Vector | cornerA_ |
| Vector | cornerB_ |
| Vector | cornerC_ |
| Vector | cornerD_ |
Static Protected Attributes | |
| static GLTexture | texture_ = GLTexture() |
Definition at line 30 of file WallActionRenderer.h.
| WallActionRenderer::WallActionRenderer | ( | Vector & | position, | |
| OptionsTransient::WallSide | type | |||
| ) |
Definition at line 35 of file WallActionRenderer.cpp.
| WallActionRenderer::~WallActionRenderer | ( | ) | [virtual] |
Definition at line 42 of file WallActionRenderer.cpp.
| void WallActionRenderer::simulate | ( | float | frameTime | ) |
Definition at line 122 of file WallActionRenderer.cpp.
References fade_.
Referenced by ParticleRendererWall::simulateParticle().
| void WallActionRenderer::draw | ( | ) |
Definition at line 127 of file WallActionRenderer.cpp.
References GLState::BLEND_ON, color_, cornerA_, cornerB_, cornerC_, cornerD_, GLTexture::draw(), fade_, GL_QUADS, glBegin(), glColor4f(), glEnd(), glPopMatrix(), glPushMatrix(), glTexCoord2f(), glTranslatef(), glVertex3fv(), init(), init_, texture_, GLState::TEXTURE_ON, xOff_, and yOff_.
Referenced by ParticleRendererWall::renderParticle().
| void WallActionRenderer::init | ( | ) | [protected] |
Definition at line 47 of file WallActionRenderer.cpp.
References OptionsTransient::BotSide, color_, cornerA_, cornerB_, cornerC_, cornerD_, GLTexture::create(), file, S3D::getDataFile(), ScorchedContext::getLandscapeMaps(), ScorchedContext::getOptionsTransient(), Landscape::getWall(), OptionsTransient::getWallColor(), init_, ScorchedClient::instance(), Landscape::instance(), OptionsTransient::LeftSide, ImageFactory::loadImageHandle(), position_, OptionsTransient::RightSide, texture_, GLTexture::textureValid(), OptionsTransient::TopSide, type_, Wall::wallHit(), xOff_, and yOff_.
Referenced by draw().
GLTexture WallActionRenderer::texture_ = GLTexture() [static, protected] |
Vector WallActionRenderer::position_ [protected] |
OptionsTransient::WallSide WallActionRenderer::type_ [protected] |
bool WallActionRenderer::init_ [protected] |
float WallActionRenderer::fade_ [protected] |
float WallActionRenderer::xOff_ [protected] |
float WallActionRenderer::yOff_ [protected] |
Vector WallActionRenderer::color_ [protected] |
Vector WallActionRenderer::cornerA_ [protected] |
Vector WallActionRenderer::cornerB_ [protected] |
Vector WallActionRenderer::cornerC_ [protected] |
Vector WallActionRenderer::cornerD_ [protected] |
1.5.3