#include <MercuryShapes.h>
Inheritance diagram for MercuryShape:
Public Member Functions | |
MercuryShape () | |
virtual | ~MercuryShape () |
bool | LoadImage (const MString &Filename) |
Load an image onto the sprite. | |
MercuryMaterial * | GetTopMaterial () |
Get the actual material's handle. | |
MercuryMesh * | GetTopMesh () |
Get the actual mesh's handle. | |
void | LoadModel () |
[internal] load model (broken) | |
void | MakeSphere (int Stacks=6, int Slices=12) |
Make the shape into a sphere. | |
void | MakeCylinder (int Stacks=6, int Slices=12) |
Make the shape into a flat-top cylinder. | |
void | MakeSprite (int Rows=1, int Cols=1) |
Make the shape into a sprite (two-part). | |
void | MakeBox (bool bWholeMap=true) |
Make the shape into a box-like object. | |
bool | SetFromINI (MercuryINI &InINI, const MString §ion) |
[incomplete] Load the shape from an ini file | |
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 | CleanupMeshes () |
Clear up the model mesh's. | |
CLASS_RTTI (MercuryShape, MercuryModel) |
Definition at line 8 of file MercuryShapes.h.
MercuryShape::MercuryShape | ( | ) |
Definition at line 10 of file MercuryShapes.cpp.
MercuryShape::~MercuryShape | ( | ) | [virtual] |
Definition at line 15 of file MercuryShapes.cpp.
bool MercuryShape::LoadImage | ( | const MString & | Filename | ) |
MercuryMaterial* MercuryShape::GetTopMaterial | ( | ) | [inline] |
MercuryMesh* MercuryShape::GetTopMesh | ( | ) | [inline] |
void MercuryShape::LoadModel | ( | ) | [inline, virtual] |
[internal] load model (broken)
Implements MercuryModel.
Definition at line 24 of file MercuryShapes.h.
void MercuryShape::MakeSphere | ( | int | Stacks = 6 , |
|
int | Slices = 12 | |||
) |
void MercuryShape::MakeCylinder | ( | int | Stacks = 6 , |
|
int | Slices = 12 | |||
) |
void MercuryShape::MakeSprite | ( | int | Rows = 1 , |
|
int | Cols = 1 | |||
) |
void MercuryShape::MakeBox | ( | bool | bWholeMap = true |
) |
bool MercuryShape::SetFromINI | ( | MercuryINI & | InINI, | |
const MString & | section | |||
) |
Handle a message, by default, it returns false, meaning the command was not handled.
Reimplemented from MercuryModel.
Definition at line 320 of file MercuryShapes.cpp.
void MercuryShape::CleanupMeshes | ( | ) |
MercuryShape::CLASS_RTTI | ( | MercuryShape | , | |
MercuryModel | ||||
) |