#include <MercuryMesh.h>
Inheritance diagram for MercuryMesh:
Public Member Functions | |
MercuryMesh () | |
virtual | ~MercuryMesh () |
virtual void | Init () |
void | CalculateVertexNormals () |
virtual void | Draw () |
[internal] Draw (CALL FIRST when using abstracted draw commands) | |
void | SetNumVertices (unsigned int size) |
MercuryVertex * | GetVerticePtr () |
const MercuryVertex * | GetVerticePtr () const |
unsigned int | NumVertices () const |
void | SetDrawType (DRAWTYPES type) |
DRAWTYPES | GetDrawType () const |
MercuryVertex * | GetVertex (unsigned int x) |
unsigned int * | GetIndicesPtr () |
const unsigned int * | GetIndicesPtr () const |
void | SetNumIndices (unsigned int size) |
unsigned int | NumIndices () const |
void | SetIndice (unsigned int position, unsigned int value) |
bool | HasTangents () const |
const MercuryPoint * | GetTangentsPtr () const |
bool | HasBinormals () const |
const MercuryPoint * | GetBinormalsPtr () const |
unsigned int | NumTangents () const |
unsigned int | NumBinormals () const |
MercuryVertex & | operator[] (unsigned int x) |
const MercuryVertex & | operator[] (unsigned int x) const |
void | SetIsAnimated (bool bOn) |
void | ToggleUseVBOs (bool toggle) |
bool | IsUseVBOs () const |
bool | IsVBOsInited () const |
bool | IsAnimated () |
CLASS_RTTI (MercuryMesh, MercuryObject) | |
void | ComputeBinormalsAndTangents () |
void | SetVerticesVBO (MVPtr vbo) |
void | SetTangentVBO (MVPtr vbo) |
void | SetBinormalVBO (MVPtr vbo) |
void | SetIndicesVBO (MVPtr vbo) |
const MVPtr | GetVerticesVBO () const |
const MVPtr | GetTangentVBO () const |
const MVPtr | GetBinormalVBO () const |
const MVPtr | GetIndicesVBO () const |
MercuryMeshCore * | GetCore () const |
void | BuildVBO () |
Private Attributes | |
MercuryMeshCore * | core |
Friends | |
class | MercuryDisplay |
class | MercuryMeshManager |
Definition at line 36 of file MercuryMesh.h.
MercuryMesh::MercuryMesh | ( | ) |
Definition at line 70 of file MercuryMesh.cpp.
MercuryMesh::~MercuryMesh | ( | ) | [virtual] |
Definition at line 79 of file MercuryMesh.cpp.
void MercuryMesh::Init | ( | ) | [virtual] |
void MercuryMesh::CalculateVertexNormals | ( | ) | [inline] |
Definition at line 45 of file MercuryMesh.h.
void MercuryMesh::Draw | ( | ) | [virtual] |
[internal] Draw (CALL FIRST when using abstracted draw commands)
Reimplemented from MercuryObject.
Definition at line 90 of file MercuryMesh.cpp.
void MercuryMesh::SetNumVertices | ( | unsigned int | size | ) | [inline] |
Definition at line 49 of file MercuryMesh.h.
MercuryVertex* MercuryMesh::GetVerticePtr | ( | ) | [inline] |
Definition at line 50 of file MercuryMesh.h.
const MercuryVertex* MercuryMesh::GetVerticePtr | ( | ) | const [inline] |
Definition at line 51 of file MercuryMesh.h.
unsigned int MercuryMesh::NumVertices | ( | ) | const [inline] |
Definition at line 52 of file MercuryMesh.h.
void MercuryMesh::SetDrawType | ( | DRAWTYPES | type | ) | [inline] |
Definition at line 53 of file MercuryMesh.h.
DRAWTYPES MercuryMesh::GetDrawType | ( | ) | const [inline] |
Definition at line 54 of file MercuryMesh.h.
MercuryVertex* MercuryMesh::GetVertex | ( | unsigned int | x | ) | [inline] |
Definition at line 56 of file MercuryMesh.h.
unsigned int* MercuryMesh::GetIndicesPtr | ( | ) | [inline] |
Definition at line 57 of file MercuryMesh.h.
const unsigned int* MercuryMesh::GetIndicesPtr | ( | ) | const [inline] |
Definition at line 58 of file MercuryMesh.h.
void MercuryMesh::SetNumIndices | ( | unsigned int | size | ) | [inline] |
Definition at line 59 of file MercuryMesh.h.
unsigned int MercuryMesh::NumIndices | ( | ) | const [inline] |
Definition at line 60 of file MercuryMesh.h.
void MercuryMesh::SetIndice | ( | unsigned int | position, | |
unsigned int | value | |||
) | [inline] |
Definition at line 61 of file MercuryMesh.h.
bool MercuryMesh::HasTangents | ( | ) | const [inline] |
Definition at line 63 of file MercuryMesh.h.
const MercuryPoint* MercuryMesh::GetTangentsPtr | ( | ) | const [inline] |
Definition at line 64 of file MercuryMesh.h.
bool MercuryMesh::HasBinormals | ( | ) | const [inline] |
Definition at line 65 of file MercuryMesh.h.
const MercuryPoint* MercuryMesh::GetBinormalsPtr | ( | ) | const [inline] |
Definition at line 66 of file MercuryMesh.h.
unsigned int MercuryMesh::NumTangents | ( | ) | const [inline] |
Definition at line 67 of file MercuryMesh.h.
unsigned int MercuryMesh::NumBinormals | ( | ) | const [inline] |
Definition at line 68 of file MercuryMesh.h.
MercuryVertex& MercuryMesh::operator[] | ( | unsigned int | x | ) | [inline] |
Definition at line 70 of file MercuryMesh.h.
const MercuryVertex& MercuryMesh::operator[] | ( | unsigned int | x | ) | const [inline] |
Definition at line 71 of file MercuryMesh.h.
void MercuryMesh::SetIsAnimated | ( | bool | bOn | ) | [inline] |
Definition at line 73 of file MercuryMesh.h.
void MercuryMesh::ToggleUseVBOs | ( | bool | toggle | ) | [inline] |
Definition at line 74 of file MercuryMesh.h.
bool MercuryMesh::IsUseVBOs | ( | ) | const [inline] |
Definition at line 75 of file MercuryMesh.h.
bool MercuryMesh::IsVBOsInited | ( | ) | const [inline] |
Definition at line 76 of file MercuryMesh.h.
bool MercuryMesh::IsAnimated | ( | ) | [inline] |
Definition at line 77 of file MercuryMesh.h.
MercuryMesh::CLASS_RTTI | ( | MercuryMesh | , | |
MercuryObject | ||||
) |
void MercuryMesh::ComputeBinormalsAndTangents | ( | ) | [inline] |
Definition at line 80 of file MercuryMesh.h.
void MercuryMesh::SetVerticesVBO | ( | MVPtr | vbo | ) | [inline] |
Definition at line 82 of file MercuryMesh.h.
void MercuryMesh::SetTangentVBO | ( | MVPtr | vbo | ) | [inline] |
Definition at line 83 of file MercuryMesh.h.
void MercuryMesh::SetBinormalVBO | ( | MVPtr | vbo | ) | [inline] |
Definition at line 84 of file MercuryMesh.h.
void MercuryMesh::SetIndicesVBO | ( | MVPtr | vbo | ) | [inline] |
Definition at line 85 of file MercuryMesh.h.
const MVPtr MercuryMesh::GetVerticesVBO | ( | ) | const [inline] |
Definition at line 87 of file MercuryMesh.h.
const MVPtr MercuryMesh::GetTangentVBO | ( | ) | const [inline] |
Definition at line 88 of file MercuryMesh.h.
const MVPtr MercuryMesh::GetBinormalVBO | ( | ) | const [inline] |
Definition at line 89 of file MercuryMesh.h.
const MVPtr MercuryMesh::GetIndicesVBO | ( | ) | const [inline] |
Definition at line 90 of file MercuryMesh.h.
MercuryMeshCore* MercuryMesh::GetCore | ( | ) | const [inline] |
Definition at line 91 of file MercuryMesh.h.
void MercuryMesh::BuildVBO | ( | ) |
Definition at line 105 of file MercuryMesh.cpp.
friend class MercuryDisplay [friend] |
Definition at line 38 of file MercuryMesh.h.
friend class MercuryMeshManager [friend] |
Definition at line 39 of file MercuryMesh.h.
MercuryMeshCore* MercuryMesh::core [private] |
Definition at line 96 of file MercuryMesh.h.