#include <MercurySprite.h>
Inheritance diagram for MercurySprite:
Public Member Functions | |
virtual void | Init () |
virtual void | Draw () |
[internal] Draw (CALL FIRST when using abstracted draw commands) | |
virtual void | Message (int Message, PStack &data, const MString &name) |
Receive message (When subscribing to messages, you receive them via this command). | |
virtual bool | Command (PStack &ret, const char *command, PStack &args) |
Handle a message, by default, it returns false, meaning the command was not handled. | |
virtual void | EnumerateCommands (MVector< MString > &toAdd) |
void | LoadImage (MString path) |
void | LoadMaterial (const MercuryMaterial &material) |
void | SetWidth (int x) |
void | SetHeight (int y) |
int | GetWidth () |
int | GetHeight () |
void | MakeOrthoLine (const MercuryPoint &from, const MercuryPoint &to, float fWidth) |
Make a line from one point to another. | |
void | SetImageAttrs (const ImageAttrs &attrs) |
virtual void | CalculateMatrices () |
CLASS_RTTI (MercurySprite, MercuryObject) | |
Private Attributes | |
int | m_origHeight |
int | m_origWidth |
MercuryMesh | m_mesh |
MercuryMaterial | m_material |
Definition at line 9 of file MercurySprite.h.
void MercurySprite::Init | ( | ) | [virtual] |
void MercurySprite::Draw | ( | ) | [virtual] |
[internal] Draw (CALL FIRST when using abstracted draw commands)
Reimplemented from MercuryObject.
Definition at line 174 of file MercurySprite.cpp.
Receive message (When subscribing to messages, you receive them via this command).
Reimplemented from MercuryMessageHandler.
Definition at line 68 of file MercurySprite.cpp.
Handle a message, by default, it returns false, meaning the command was not handled.
Reimplemented from MercuryCommandHandler.
Definition at line 88 of file MercurySprite.cpp.
void MercurySprite::LoadImage | ( | MString | path | ) |
Definition at line 107 of file MercurySprite.cpp.
void MercurySprite::LoadMaterial | ( | const MercuryMaterial & | material | ) |
Definition at line 148 of file MercurySprite.cpp.
void MercurySprite::SetWidth | ( | int | x | ) | [inline] |
Definition at line 23 of file MercurySprite.h.
void MercurySprite::SetHeight | ( | int | y | ) | [inline] |
Definition at line 24 of file MercurySprite.h.
int MercurySprite::GetWidth | ( | ) | [inline] |
Definition at line 25 of file MercurySprite.h.
int MercurySprite::GetHeight | ( | ) | [inline] |
Definition at line 26 of file MercurySprite.h.
void MercurySprite::MakeOrthoLine | ( | const MercuryPoint & | from, | |
const MercuryPoint & | to, | |||
float | fWidth | |||
) |
void MercurySprite::SetImageAttrs | ( | const ImageAttrs & | attrs | ) |
Definition at line 168 of file MercurySprite.cpp.
void MercurySprite::CalculateMatrices | ( | ) | [virtual] |
MercurySprite::CLASS_RTTI | ( | MercurySprite | , | |
MercuryObject | ||||
) |
int MercurySprite::m_origHeight [private] |
Definition at line 38 of file MercurySprite.h.
int MercurySprite::m_origWidth [private] |
Definition at line 39 of file MercurySprite.h.
MercuryMesh MercurySprite::m_mesh [private] |
Definition at line 41 of file MercurySprite.h.
MercuryMaterial MercurySprite::m_material [private] |
Definition at line 42 of file MercurySprite.h.