MercurySprite Class Reference

[actor] Sprite More...

#include <MercurySprite.h>

Inheritance diagram for MercurySprite:

Inheritance graph
[legend]
Collaboration diagram for MercurySprite:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

[actor] Sprite

Definition at line 9 of file MercurySprite.h.


Member Function Documentation

void MercurySprite::Init (  )  [virtual]

Reimplemented from MercuryObject.

Definition at line 12 of file MercurySprite.cpp.

void MercurySprite::Draw (  )  [virtual]

[internal] Draw (CALL FIRST when using abstracted draw commands)

Reimplemented from MercuryObject.

Definition at line 174 of file MercurySprite.cpp.

void MercurySprite::Message ( int  Message,
PStack data,
const MString name 
) [virtual]

Receive message (When subscribing to messages, you receive them via this command).

Reimplemented from MercuryMessageHandler.

Definition at line 68 of file MercurySprite.cpp.

bool MercurySprite::Command ( PStack ret,
const char *  command,
PStack args 
) [virtual]

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::EnumerateCommands ( MVector< MString > &  toAdd  )  [virtual]

Reimplemented from MercuryCommandHandler.

Definition at line 101 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 
)

Make a line from one point to another.

Definition at line 158 of file MercurySprite.cpp.

void MercurySprite::SetImageAttrs ( const ImageAttrs attrs  ) 

Definition at line 168 of file MercurySprite.cpp.

void MercurySprite::CalculateMatrices (  )  [virtual]

Reimplemented from MercuryObjectBase.

Definition at line 181 of file MercurySprite.cpp.

MercurySprite::CLASS_RTTI ( MercurySprite  ,
MercuryObject   
)


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo