GLWTankModel Class Reference

#include <GLWTankModel.h>

Inheritance diagram for GLWTankModel:

GLWidget MetaClass

List of all members.

Public Member Functions

 GLWTankModel (float x=0.0f, float y=0.0f, float w=0.0f, float h=0.0f)
virtual ~GLWTankModel ()
virtual void draw ()
virtual void simulate (float frameTime)
virtual void mouseDown (int button, float x, float y, bool &skipRest)
 REGISTER_CLASS_HEADER (GLWTankModel)

Protected Attributes

float totalTime_


Detailed Description

Definition at line 26 of file GLWTankModel.h.


Constructor & Destructor Documentation

GLWTankModel::GLWTankModel ( float  x = 0.0f,
float  y = 0.0f,
float  w = 0.0f,
float  h = 0.0f 
)

Definition at line 36 of file GLWTankModel.cpp.

GLWTankModel::~GLWTankModel (  )  [virtual]

Definition at line 42 of file GLWTankModel.cpp.


Member Function Documentation

void GLWTankModel::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 46 of file GLWTankModel.cpp.

References GLWToolTip::addToolTip(), fixed::asFloat(), GLState::DEPTH_ON, TankMesh::draw(), MainCamera::getCamera(), GLCamera::getCurrentPos(), TankContainer::getCurrentTank(), GLCamera::getLookAt(), TargetRendererImplTank::getMesh(), Vector4::getOpenGLRotationMatrix(), Tank::getPosition(), GLWTranslate::getPosX(), GLWTranslate::getPosY(), Target::getRenderer(), TankPosition::getRotationGunXY(), TankPosition::getRotationGunYZ(), Landscape::getSky(), Sky::getSun(), ScorchedContext::getTankContainer(), TargetRendererImplTank::getTips(), GL_AMBIENT, GL_DIFFUSE, GL_LIGHT1, GL_POSITION, glLightfv(), glPopMatrix(), glPushMatrix(), glRotatef(), glScalef(), glTranslatef(), Landscape::instance(), MainCamera::instance(), GLWToolTip::instance(), ScorchedClient::instance(), Sun::setLightPosition(), GLWTankTips::tankTip, GLState::TEXTURE_OFF, totalTime_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.

void GLWTankModel::simulate ( float  frameTime  )  [virtual]

Reimplemented from GLWidget.

Definition at line 118 of file GLWTankModel.cpp.

References totalTime_.

void GLWTankModel::mouseDown ( int  button,
float  x,
float  y,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Definition at line 109 of file GLWTankModel.cpp.

References TargetCamera::CamBehind, MainCamera::getTarget(), GLWidget::h_, GLWidget::inBox(), MainCamera::instance(), TargetCamera::setCameraType(), GLWidget::w_, GLWidget::x_, and GLWidget::y_.

GLWTankModel::REGISTER_CLASS_HEADER ( GLWTankModel   ) 


Member Data Documentation

float GLWTankModel::totalTime_ [protected]

Definition at line 40 of file GLWTankModel.h.

Referenced by draw(), and simulate().


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