WallActionRenderer Class Reference

#include <WallActionRenderer.h>

Inheritance diagram for WallActionRenderer:

ParticleUserData

List of all members.

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()


Detailed Description

Definition at line 30 of file WallActionRenderer.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

GLTexture WallActionRenderer::texture_ = GLTexture() [static, protected]

Definition at line 40 of file WallActionRenderer.h.

Referenced by draw(), and init().

Vector WallActionRenderer::position_ [protected]

Definition at line 41 of file WallActionRenderer.h.

Referenced by init().

OptionsTransient::WallSide WallActionRenderer::type_ [protected]

Definition at line 42 of file WallActionRenderer.h.

Referenced by init().

bool WallActionRenderer::init_ [protected]

Definition at line 43 of file WallActionRenderer.h.

Referenced by draw(), and init().

float WallActionRenderer::fade_ [protected]

Definition at line 44 of file WallActionRenderer.h.

Referenced by draw(), and simulate().

float WallActionRenderer::xOff_ [protected]

Definition at line 45 of file WallActionRenderer.h.

Referenced by draw(), and init().

float WallActionRenderer::yOff_ [protected]

Definition at line 45 of file WallActionRenderer.h.

Referenced by draw(), and init().

Vector WallActionRenderer::color_ [protected]

Definition at line 46 of file WallActionRenderer.h.

Referenced by draw(), and init().

Vector WallActionRenderer::cornerA_ [protected]

Definition at line 47 of file WallActionRenderer.h.

Referenced by draw(), and init().

Vector WallActionRenderer::cornerB_ [protected]

Definition at line 47 of file WallActionRenderer.h.

Referenced by draw(), and init().

Vector WallActionRenderer::cornerC_ [protected]

Definition at line 48 of file WallActionRenderer.h.

Referenced by draw(), and init().

Vector WallActionRenderer::cornerD_ [protected]

Definition at line 48 of file WallActionRenderer.h.

Referenced by draw(), and init().


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