#include <GLWTankModel.h>

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_ |
Definition at line 26 of file GLWTankModel.h.
| 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.
| 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 | ) |
float GLWTankModel::totalTime_ [protected] |
1.5.3