Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Mesh3DS Class Reference
Inheritance diagram for Mesh3DS:
Object3DS

List of all members.

Public Member Functions

 Mesh3DS ()
virtual ~Mesh3DS ()
void Clear ()
DWORD GetVertexCount ()
void SetVertexArraySize (DWORD value)
DWORD GetTriangleCount ()
void SetTriangleArraySize (DWORD value)
const Vec3GetVertex (DWORD index)
const Vec3GetNormal (DWORD index)
const Vec2GetUV (DWORD index)
const Vec3GetTangent (DWORD index)
const Vec3GetBinormal (DWORD index)
void SetVertex (const Vec3 &vec, DWORD index)
void SetNormal (const Vec3 &vec, DWORD index)
void SetUV (const Vec2 &vec, DWORD index)
void SetTangent (const Vec3 &vec, DWORD index)
void SetBinormal (const Vec3 &vec, DWORD index)
const TriangleGetTriangle (DWORD index)
Triangle2 GetTriangle2 (DWORD index)
MatrixGetMatrix ()
void SetMatrix (Matrix &m)
void Optimize (int level)
DWORD GetMaterial (DWORD index)
DWORD AddMaterial (DWORD id)
DWORD GetMaterialCount ()
- Public Member Functions inherited from Object3DS
 Object3DS ()
virtual ~Object3DS ()
virtual const char * GetName ()
virtual bool IsObject (const char *name)

Protected Member Functions

void CalcNormals (bool useSmoothingGroups)
void CalcTextureSpace ()
void TransformVertices ()

Protected Attributes

List< Vec3vertices
List< Vec3normals
List< Vec3binormals
List< Vec3tangents
List< Vec2uv
List< Triangletriangles
Matrix matrix
ArrayList materials
- Protected Attributes inherited from Object3DS
Text name

Detailed Description

Definition at line 136 of file M3DS.cpp.


Constructor & Destructor Documentation

Mesh3DS::Mesh3DS ( )
virtual Mesh3DS::~Mesh3DS ( )
virtual

Member Function Documentation

DWORD Mesh3DS::AddMaterial ( DWORD  id)
void Mesh3DS::CalcNormals ( bool  useSmoothingGroups)
protected
void Mesh3DS::CalcTextureSpace ( )
protected
void Mesh3DS::Clear ( )
const Vec3& Mesh3DS::GetBinormal ( DWORD  index)
DWORD Mesh3DS::GetMaterial ( DWORD  index)
DWORD Mesh3DS::GetMaterialCount ( )
Matrix& Mesh3DS::GetMatrix ( )
const Vec3& Mesh3DS::GetNormal ( DWORD  index)
const Vec3& Mesh3DS::GetTangent ( DWORD  index)
const Triangle& Mesh3DS::GetTriangle ( DWORD  index)
Triangle2 Mesh3DS::GetTriangle2 ( DWORD  index)
DWORD Mesh3DS::GetTriangleCount ( )
const Vec2& Mesh3DS::GetUV ( DWORD  index)
const Vec3& Mesh3DS::GetVertex ( DWORD  index)
DWORD Mesh3DS::GetVertexCount ( )
void Mesh3DS::Optimize ( int  level)
void Mesh3DS::SetBinormal ( const Vec3 vec,
DWORD  index 
)
void Mesh3DS::SetMatrix ( Matrix m)
void Mesh3DS::SetNormal ( const Vec3 vec,
DWORD  index 
)
void Mesh3DS::SetTangent ( const Vec3 vec,
DWORD  index 
)
void Mesh3DS::SetTriangleArraySize ( DWORD  value)
void Mesh3DS::SetUV ( const Vec2 vec,
DWORD  index 
)
void Mesh3DS::SetVertex ( const Vec3 vec,
DWORD  index 
)
void Mesh3DS::SetVertexArraySize ( DWORD  value)
void Mesh3DS::TransformVertices ( )
protected

Member Data Documentation

List<Vec3> Mesh3DS::binormals
protected

Definition at line 176 of file M3DS.cpp.

ArrayList Mesh3DS::materials
protected

Definition at line 187 of file M3DS.cpp.

Matrix Mesh3DS::matrix
protected

Definition at line 184 of file M3DS.cpp.

List<Vec3> Mesh3DS::normals
protected

Definition at line 175 of file M3DS.cpp.

List<Vec3> Mesh3DS::tangents
protected

Definition at line 177 of file M3DS.cpp.

List<Triangle> Mesh3DS::triangles
protected

Definition at line 181 of file M3DS.cpp.

List<Vec2> Mesh3DS::uv
protected

Definition at line 178 of file M3DS.cpp.

List<Vec3> Mesh3DS::vertices
protected

Definition at line 174 of file M3DS.cpp.


The documentation for this class was generated from the following file: