#include <GteMeshFactory.h>
Public Member Functions | |
std::shared_ptr< Visual > | CreateBox (float xExtent, float yExtent, float zExtent) |
std::shared_ptr< Visual > | CreateCylinderClosed (unsigned int numAxisSamples, unsigned int numRadialSamples, float radius, float height) |
std::shared_ptr< Visual > | CreateCylinderOpen (unsigned int numAxisSamples, unsigned int numRadialSamples, float radius, float height) |
std::shared_ptr< Visual > | CreateDisk (unsigned int numShellSamples, unsigned int numRadialSamples, float radius) |
std::shared_ptr< Visual > | CreateDodecahedron () |
std::shared_ptr< Visual > | CreateHexahedron () |
std::shared_ptr< Visual > | CreateIcosahedron () |
std::shared_ptr< Visual > | CreateOctahedron () |
std::shared_ptr< Visual > | CreateRectangle (unsigned int numXSamples, unsigned int numYSamples, float xExtent, float yExtent) |
std::shared_ptr< Visual > | CreateSphere (unsigned int numZSamples, unsigned int numRadialSamples, float radius) |
std::shared_ptr< Visual > | CreateTetrahedron () |
std::shared_ptr< Visual > | CreateTorus (unsigned int numCircleSamples, unsigned int numRadialSamples, float outerRadius, float innerRadius) |
std::shared_ptr< Visual > | CreateTriangle (unsigned int numSamples, float xExtent, float yExtent) |
MeshFactory () | |
void | SetIndexBufferUsage (Resource::Usage usage) |
void | SetIndexFormat (bool use32Bit) |
void | SetOutside (bool outside) |
void | SetVertexBufferUsage (Resource::Usage usage) |
void | SetVertexFormat (VertexFormat const &format) |
~MeshFactory () | |
Private Member Functions | |
Vector3< float > & | Bitangent (unsigned int i) |
std::shared_ptr< IndexBuffer > | CreateIBuffer (unsigned int numTriangles) |
std::shared_ptr< VertexBuffer > | CreateVBuffer (unsigned int numVertices) |
char * | GetGeometricChannel (std::shared_ptr< VertexBuffer > const &vbuffer, VASemantic semantic, float w) |
Vector3< float > & | Normal (unsigned int i) |
Vector3< float > & | Position (unsigned int i) |
void | ReverseTriangleOrder (IndexBuffer *ibuffer) |
void | SetBinormal (unsigned int i, Vector3< float > const &bin) |
void | SetNormal (unsigned int i, Vector3< float > const &nor) |
void | SetPlatonicTCoord (unsigned int i, Vector3< float > const &pos) |
void | SetPosition (unsigned int i, Vector3< float > const &pos) |
void | SetTangent (unsigned int i, Vector3< float > const &tan) |
void | SetTCoord (unsigned int i, Vector2< float > const &tcd) |
Vector3< float > & | Tangent (unsigned int i) |
Vector2< float > & | TCoord (unsigned int unit, unsigned int i) |
Private Attributes | |
bool | mAssignTCoords [VA_MAX_TCOORD_UNITS] |
char * | mBitangents |
Resource::Usage | mIBUsage |
size_t | mIndexSize |
char * | mNormals |
bool | mOutside |
char * | mPositions |
char * | mTangents |
char * | mTCoords [VA_MAX_TCOORD_UNITS] |
Resource::Usage | mVBUsage |
VertexFormat | mVFormat |
Definition at line 29 of file GteMeshFactory.h.
MeshFactory::~MeshFactory | ( | ) |
Definition at line 14 of file GteMeshFactory.cpp.
MeshFactory::MeshFactory | ( | ) |
Definition at line 18 of file GteMeshFactory.cpp.
Definition at line 216 of file GteMeshFactory.h.
std::shared_ptr< Visual > MeshFactory::CreateBox | ( | float | xExtent, |
float | yExtent, | ||
float | zExtent | ||
) |
Definition at line 242 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateCylinderClosed | ( | unsigned int | numAxisSamples, |
unsigned int | numRadialSamples, | ||
float | radius, | ||
float | height | ||
) |
Definition at line 440 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateCylinderOpen | ( | unsigned int | numAxisSamples, |
unsigned int | numRadialSamples, | ||
float | radius, | ||
float | height | ||
) |
Definition at line 332 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateDisk | ( | unsigned int | numShellSamples, |
unsigned int | numRadialSamples, | ||
float | radius | ||
) |
Definition at line 153 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateDodecahedron | ( | ) |
Definition at line 988 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateHexahedron | ( | ) |
Definition at line 855 of file GteMeshFactory.cpp.
|
private |
Definition at line 1222 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateIcosahedron | ( | ) |
Definition at line 1096 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateOctahedron | ( | ) |
Definition at line 925 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateRectangle | ( | unsigned int | numXSamples, |
unsigned int | numYSamples, | ||
float | xExtent, | ||
float | yExtent | ||
) |
Definition at line 36 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateSphere | ( | unsigned int | numZSamples, |
unsigned int | numRadialSamples, | ||
float | radius | ||
) |
Definition at line 504 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateTetrahedron | ( | ) |
Definition at line 795 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateTorus | ( | unsigned int | numCircleSamples, |
unsigned int | numRadialSamples, | ||
float | outerRadius, | ||
float | innerRadius | ||
) |
Definition at line 671 of file GteMeshFactory.cpp.
std::shared_ptr< Visual > MeshFactory::CreateTriangle | ( | unsigned int | numSamples, |
float | xExtent, | ||
float | yExtent | ||
) |
Definition at line 81 of file GteMeshFactory.cpp.
|
private |
Definition at line 1181 of file GteMeshFactory.cpp.
|
private |
Definition at line 1232 of file GteMeshFactory.cpp.
Definition at line 204 of file GteMeshFactory.h.
Definition at line 198 of file GteMeshFactory.h.
|
private |
Definition at line 1321 of file GteMeshFactory.cpp.
Definition at line 1278 of file GteMeshFactory.cpp.
|
inline |
Definition at line 188 of file GteMeshFactory.h.
|
inline |
Definition at line 183 of file GteMeshFactory.h.
Definition at line 1262 of file GteMeshFactory.cpp.
|
inline |
Definition at line 193 of file GteMeshFactory.h.
Definition at line 1297 of file GteMeshFactory.cpp.
Definition at line 1257 of file GteMeshFactory.cpp.
Definition at line 1270 of file GteMeshFactory.cpp.
Definition at line 1286 of file GteMeshFactory.cpp.
|
inline |
Definition at line 178 of file GteMeshFactory.h.
|
inline |
Definition at line 173 of file GteMeshFactory.h.
Definition at line 210 of file GteMeshFactory.h.
Definition at line 222 of file GteMeshFactory.h.
|
private |
Definition at line 163 of file GteMeshFactory.h.
|
private |
Definition at line 168 of file GteMeshFactory.h.
|
private |
Definition at line 161 of file GteMeshFactory.h.
|
private |
Definition at line 160 of file GteMeshFactory.h.
|
private |
Definition at line 166 of file GteMeshFactory.h.
|
private |
Definition at line 162 of file GteMeshFactory.h.
|
private |
Definition at line 165 of file GteMeshFactory.h.
|
private |
Definition at line 167 of file GteMeshFactory.h.
|
private |
Definition at line 169 of file GteMeshFactory.h.
|
private |
Definition at line 161 of file GteMeshFactory.h.
|
private |
Definition at line 159 of file GteMeshFactory.h.