#include <CameraDialog.h>

Public Member Functions | |
| TargetCamera & | getCamera () |
| virtual void | draw () |
| virtual void | simulate (float frameTime) |
| virtual void | mouseDown (int button, float x, float y, bool &skipRest) |
| virtual void | savePosition (XMLNode *node) |
| virtual void | loadPosition (XMLNode *node) |
Static Public Member Functions | |
| static CameraDialog * | instance () |
Protected Member Functions | |
| void | drawLandscape () |
Protected Attributes | |
| TargetCamera | targetCam_ |
Static Protected Attributes | |
| static CameraDialog * | instance_ = 0 |
Private Member Functions | |
| CameraDialog () | |
| virtual | ~CameraDialog () |
Definition at line 27 of file CameraDialog.h.
| CameraDialog::CameraDialog | ( | ) | [private] |
Definition at line 45 of file CameraDialog.cpp.
References TargetCamera::CamGun, TargetCamera::setCameraType(), and targetCam_.
| CameraDialog::~CameraDialog | ( | ) | [private, virtual] |
Definition at line 54 of file CameraDialog.cpp.
| CameraDialog * CameraDialog::instance | ( | ) | [static] |
Definition at line 35 of file CameraDialog.cpp.
References instance_.
Referenced by ClientWindowSetup::addCommonComponents(), and Landscape::reset().
| TargetCamera& CameraDialog::getCamera | ( | ) | [inline] |
Definition at line 32 of file CameraDialog.h.
References targetCam_.
Referenced by Landscape::reset().
| void CameraDialog::draw | ( | ) | [virtual] |
Reimplemented from GLWWindow.
Definition at line 82 of file CameraDialog.cpp.
References GLState::BLEND_ON, GLState::DEPTH_ON, Main2DCamera::draw(), TargetCamera::draw(), GLWWindow::draw(), GLWidget::drawCircle(), drawLandscape(), TargetCamera::getCamera(), TargetCamera::getCameraNames(), TargetCamera::getCameraType(), GLWFont::getGameFont(), GLViewPort::getHeightMult(), GLViewPort::getWidthMult(), GL_TRIANGLE_FAN, glBegin(), glColor4f(), glEnd(), glPopMatrix(), glPushMatrix(), glTranslatef(), glVertex2f(), GLWidget::h_, GLWFont::instance(), Main2DCamera::instance(), LANG_RESOURCE_VAR_1, GLCamera::setWindowOffset(), GLCamera::setWindowSize(), targetCam_, GLState::TEXTURE_OFF, GLWidget::w_, GLWidget::x_, and GLWidget::y_.
| void CameraDialog::simulate | ( | float | frameTime | ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 150 of file CameraDialog.cpp.
References ScorchedContext::getGameState(), GameState::getState(), ScorchedClient::instance(), TargetCamera::simulate(), ClientState::StatePlaying, and targetCam_.
| void CameraDialog::mouseDown | ( | int | button, | |
| float | x, | |||
| float | y, | |||
| bool & | skipRest | |||
| ) | [virtual] |
Reimplemented from GLWWindow.
Definition at line 171 of file CameraDialog.cpp.
References TargetCamera::CamFree, TargetCamera::CamTop, TargetCamera::getCameraType(), int(), GLWWindow::mouseDown(), TargetCamera::setCameraType(), targetCam_, GLWidget::x_, and GLWidget::y_.
| void CameraDialog::savePosition | ( | XMLNode * | node | ) | [virtual] |
Reimplemented from GLWWindow.
Definition at line 58 of file CameraDialog.cpp.
References XMLNode::addChild(), TargetCamera::getCameraType(), GLWidget::getH(), GLWidget::getW(), GLWWindow::savePosition(), and targetCam_.
| void CameraDialog::loadPosition | ( | XMLNode * | node | ) | [virtual] |
Reimplemented from GLWWindow.
Definition at line 68 of file CameraDialog.cpp.
References XMLNode::getNamedChild(), GLWWindow::loadPosition(), TargetCamera::setCameraType(), GLWidget::setH(), GLWidget::setW(), and targetCam_.
| void CameraDialog::drawLandscape | ( | ) | [protected] |
Definition at line 159 of file CameraDialog.cpp.
References ParticleEngine::draw(), ActionController::draw(), RenderTargets::Renderer3D::draw(), GLCameraFrustum::draw(), Landscape::drawLand(), Landscape::drawObjects(), TargetCamera::drawPrecipitation(), Landscape::drawWater(), ScorchedContext::getActionController(), ScorchedClient::getParticleEngine(), ScorchedClient::instance(), RenderTargets::instance(), Landscape::instance(), GLCameraFrustum::instance(), RenderTargets::render3D, and targetCam_.
Referenced by draw().
CameraDialog * CameraDialog::instance_ = 0 [static, protected] |
TargetCamera CameraDialog::targetCam_ [protected] |
Definition at line 43 of file CameraDialog.h.
Referenced by CameraDialog(), draw(), drawLandscape(), getCamera(), loadPosition(), mouseDown(), savePosition(), and simulate().
1.5.3