#include <MercuryScreen.h>
Inheritance diagram for MercuryScreen:
Public Member Functions | |
MercuryScreen (const MercuryScreen &MercuryScreen) | |
MercuryScreen () | |
MercuryScreen (const MString &name) | |
virtual | ~MercuryScreen () |
virtual void | Init () |
virtual void | Update (const float dTime) |
[internal] Update (call this update last when abstracting because Update can destroy the object) | |
virtual void | Message (int Message, PStack &data, const MString &name) |
Receive message (When subscribing to messages, you receive them via this command). | |
virtual void | Render () |
virtual bool | RemoveObject (MercuryObject *object, bool bAllowDelete=true) |
void | AddPerspObject (MercuryObject *object, bool bParentDelete=false) |
void | AddOrthoObject (MercuryObject *object, bool bParentDelete=false) |
virtual MercuryObject * | Spawn (const MString &sClass, const MString &sName, PROJECTIONTYPE projection=PERSPECTIVE) |
MercuryCamera * | GetCamera () |
CLASS_RTTI (MercuryScreen, MercuryObject) | |
Protected Member Functions | |
void | UpdatePerspectiveObjects (float dTime) |
void | UpdateOrthoObjects (float dTime) |
void | RenderPerspectiveObjects () |
void | RenderOrthoObjects () |
void | CreateProjections () |
Protected Attributes | |
MercuryObject * | m_pBackground |
MercuryCamera * | m_pCamera |
bool | m_useLighting |
Projection | m_perspProjection |
Projection | m_orthoProjection |
Private Attributes | |
MercuryObject | m_PerspObjects |
MercuryObject | m_OrthoObjects |
Definition at line 11 of file MercuryScreen.h.
MercuryScreen::MercuryScreen | ( | const MercuryScreen & | MercuryScreen | ) |
Definition at line 28 of file MercuryScreen.cpp.
MercuryScreen::MercuryScreen | ( | ) |
Definition at line 22 of file MercuryScreen.cpp.
MercuryScreen::MercuryScreen | ( | const MString & | name | ) |
Definition at line 34 of file MercuryScreen.cpp.
MercuryScreen::~MercuryScreen | ( | ) | [virtual] |
Definition at line 40 of file MercuryScreen.cpp.
void MercuryScreen::Init | ( | ) | [virtual] |
Reimplemented from MercuryObject.
Reimplemented in ScreenCopper, ScreenDebugOverlay, ScreenExample2DSS, ScreenFPS, ScreenFPS2, ScreenGameForBlind, ScreenHelloWorld, ScreenJunq, ScreenMapEditor, ScreenNetTester, ScreenODETest, ScreenOutdoors, ScreenRallyRace, ScreenSound, ScreenTest, and ScreenHgTitle.
Definition at line 46 of file MercuryScreen.cpp.
void MercuryScreen::Update | ( | const float | dTime | ) | [virtual] |
[internal] Update (call this update last when abstracting because Update can destroy the object)
Reimplemented from MercuryObject.
Reimplemented in ScreenCopper, ScreenExample2DSS, ScreenFPS, ScreenFPS2, ScreenGameForBlind, ScreenHelloWorld, ScreenJunq, ScreenMapEditor, ScreenNetTester, ScreenODETest, ScreenRallyRace, ScreenSound, ScreenTest, and ScreenHgTitle.
Definition at line 83 of file MercuryScreen.cpp.
Receive message (When subscribing to messages, you receive them via this command).
Reimplemented from MercuryMessageHandler.
Reimplemented in ScreenCopper, ScreenDebugOverlay, ScreenExample2DSS, ScreenFPS, ScreenFPS2, ScreenGameForBlind, ScreenHelloWorld, ScreenJunq, ScreenMapEditor, ScreenRallyRace, ScreenSound, ScreenTest, and ScreenHgTitle.
Definition at line 72 of file MercuryScreen.cpp.
void MercuryScreen::Render | ( | ) | [virtual] |
Reimplemented from MercuryObject.
Reimplemented in ScreenMapEditor.
Definition at line 106 of file MercuryScreen.cpp.
bool MercuryScreen::RemoveObject | ( | MercuryObject * | object, | |
bool | bAllowDelete = true | |||
) | [virtual] |
void MercuryScreen::AddPerspObject | ( | MercuryObject * | object, | |
bool | bParentDelete = false | |||
) |
Definition at line 182 of file MercuryScreen.cpp.
void MercuryScreen::AddOrthoObject | ( | MercuryObject * | object, | |
bool | bParentDelete = false | |||
) |
Definition at line 187 of file MercuryScreen.cpp.
MercuryObject * MercuryScreen::Spawn | ( | const MString & | sClass, | |
const MString & | sName, | |||
PROJECTIONTYPE | projection = PERSPECTIVE | |||
) | [virtual] |
MercuryCamera* MercuryScreen::GetCamera | ( | ) | [inline] |
Definition at line 30 of file MercuryScreen.h.
MercuryScreen::CLASS_RTTI | ( | MercuryScreen | , | |
MercuryObject | ||||
) |
void MercuryScreen::UpdatePerspectiveObjects | ( | float | dTime | ) | [protected] |
Definition at line 141 of file MercuryScreen.cpp.
void MercuryScreen::UpdateOrthoObjects | ( | float | dTime | ) | [protected] |
Definition at line 161 of file MercuryScreen.cpp.
void MercuryScreen::RenderPerspectiveObjects | ( | ) | [protected] |
Definition at line 112 of file MercuryScreen.cpp.
void MercuryScreen::RenderOrthoObjects | ( | ) | [protected] |
Definition at line 131 of file MercuryScreen.cpp.
void MercuryScreen::CreateProjections | ( | ) | [protected] |
Definition at line 65 of file MercuryScreen.cpp.
MercuryObject* MercuryScreen::m_pBackground [protected] |
Definition at line 43 of file MercuryScreen.h.
MercuryCamera* MercuryScreen::m_pCamera [protected] |
Definition at line 44 of file MercuryScreen.h.
bool MercuryScreen::m_useLighting [protected] |
Definition at line 46 of file MercuryScreen.h.
Projection MercuryScreen::m_perspProjection [protected] |
Definition at line 48 of file MercuryScreen.h.
Projection MercuryScreen::m_orthoProjection [protected] |
Definition at line 49 of file MercuryScreen.h.
MercuryObject MercuryScreen::m_PerspObjects [private] |
Definition at line 52 of file MercuryScreen.h.
MercuryObject MercuryScreen::m_OrthoObjects [private] |
Definition at line 53 of file MercuryScreen.h.