Starshatter_Open
Open source Starshatter engine
|
#include <l3ds.h>
Public Member Functions | |
LMesh () | |
virtual | ~LMesh () |
void | Clear () |
uint | GetVertexCount () |
void | SetVertexArraySize (uint value) |
uint | GetTriangleCount () |
void | SetTriangleArraySize (uint value) |
const LVector4 & | GetVertex (uint index) |
const LVector3 & | GetNormal (uint index) |
const LVector2 & | GetUV (uint index) |
const LVector3 & | GetTangent (uint index) |
const LVector3 & | GetBinormal (uint index) |
void | SetVertex (const LVector4 &vec, uint index) |
void | SetNormal (const LVector3 &vec, uint index) |
void | SetUV (const LVector2 &vec, uint index) |
void | SetTangent (const LVector3 &vec, uint index) |
void | SetBinormal (const LVector3 &vec, uint index) |
const LTriangle & | GetTriangle (uint index) |
LTriangle2 | GetTriangle2 (uint index) |
LMatrix4 | GetMatrix () |
void | SetMatrix (LMatrix4 m) |
void | Optimize (LOptimizationLevel value) |
void | SetTri (const LTri &tri, uint index) |
LTri & | GetTri (uint index) |
uint | GetMaterial (uint index) |
uint | AddMaterial (uint id) |
uint | GetMaterialCount () |
LMesh () | |
virtual | ~LMesh () |
void | Clear () |
DWORD | GetVertexCount () |
void | SetVertexArraySize (DWORD value) |
DWORD | GetTriangleCount () |
void | SetTriangleArraySize (DWORD value) |
const LVector4 & | GetVertex (DWORD index) |
const LVector3 & | GetNormal (DWORD index) |
const LVector2 & | GetUV (DWORD index) |
const LVector3 & | GetTangent (DWORD index) |
const LVector3 & | GetBinormal (DWORD index) |
void | SetVertex (const LVector4 &vec, DWORD index) |
void | SetNormal (const LVector3 &vec, DWORD index) |
void | SetUV (const LVector2 &vec, DWORD index) |
void | SetTangent (const LVector3 &vec, DWORD index) |
void | SetBinormal (const LVector3 &vec, DWORD index) |
const LTriangle & | GetTriangle (DWORD index) |
LTriangle2 | GetTriangle2 (DWORD index) |
LMatrix4 | GetMatrix () |
void | SetMatrix (LMatrix4 m) |
void | Optimize (LOptimizationLevel value) |
void | SetTri (const LTri &tri, DWORD index) |
LTri & | GetTri (DWORD index) |
DWORD | GetMaterial (DWORD index) |
DWORD | AddMaterial (DWORD id) |
DWORD | GetMaterialCount () |
Public Member Functions inherited from LObject | |
LObject () | |
virtual | ~LObject () |
virtual const std::string & | GetName () |
virtual void | SetName (const std::string &value) |
bool | IsObject (const std::string &name) |
LObject () | |
virtual | ~LObject () |
virtual const char * | GetName () |
virtual bool | IsObject (const const char *name) |
Protected Member Functions | |
void | CalcNormals (bool useSmoothingGroups) |
void | CalcTextureSpace () |
void | TransformVertices () |
void | CalcNormals (bool useSmoothingGroups) |
void | CalcTextureSpace () |
void | TransformVertices () |
Protected Attributes | |
std::vector< LVector4 > | m_vertices |
std::vector< LVector3 > | m_normals |
std::vector< LVector3 > | m_binormals |
std::vector< LVector3 > | m_tangents |
std::vector< LVector2 > | m_uv |
std::vector< LTriangle > | m_triangles |
std::vector< LTri > | m_tris |
LMatrix4 | m_matrix |
std::vector< uint > | m_materials |
List< LVector4 > | vertices |
List< LVector3 > | normals |
List< LVector3 > | binormals |
List< LVector3 > | tangents |
List< LVector2 > | uv |
List< LTriangle > | triangles |
List< LTri > | tris |
Matrix | matrix |
List< DWORD > | materials |
Protected Attributes inherited from LObject | |
std::string | m_name |
Text | name |
LMesh::LMesh | ( | ) |
|
virtual |
DWORD LMesh::AddMaterial | ( | DWORD | id | ) |
|
protected |
|
protected |
|
protected |
void LMesh::Clear | ( | ) |
const LVector3& LMesh::GetBinormal | ( | DWORD | index | ) |
DWORD LMesh::GetMaterial | ( | DWORD | index | ) |
DWORD LMesh::GetMaterialCount | ( | ) |
LMatrix4 LMesh::GetMatrix | ( | ) |
const LVector3& LMesh::GetNormal | ( | DWORD | index | ) |
const LVector3& LMesh::GetTangent | ( | DWORD | index | ) |
LTri& LMesh::GetTri | ( | DWORD | index | ) |
const LTriangle& LMesh::GetTriangle | ( | DWORD | index | ) |
LTriangle2 LMesh::GetTriangle2 | ( | DWORD | index | ) |
LTriangle2 LMesh::GetTriangle2 | ( | uint | index | ) |
DWORD LMesh::GetTriangleCount | ( | ) |
const LVector2& LMesh::GetUV | ( | DWORD | index | ) |
const LVector4& LMesh::GetVertex | ( | DWORD | index | ) |
DWORD LMesh::GetVertexCount | ( | ) |
void LMesh::Optimize | ( | LOptimizationLevel | value | ) |
void LMesh::Optimize | ( | LOptimizationLevel | value | ) |
void LMesh::SetBinormal | ( | const LVector3 & | vec, |
DWORD | index | ||
) |
void LMesh::SetMatrix | ( | LMatrix4 | m | ) |
void LMesh::SetNormal | ( | const LVector3 & | vec, |
DWORD | index | ||
) |
void LMesh::SetTangent | ( | const LVector3 & | vec, |
DWORD | index | ||
) |
void LMesh::SetTri | ( | const LTri & | tri, |
DWORD | index | ||
) |
void LMesh::SetTriangleArraySize | ( | DWORD | value | ) |
void LMesh::SetUV | ( | const LVector2 & | vec, |
DWORD | index | ||
) |
void LMesh::SetVertex | ( | const LVector4 & | vec, |
DWORD | index | ||
) |
void LMesh::SetVertexArraySize | ( | DWORD | value | ) |
|
protected |