PixelLightAPI
.
|
A geometry defines a part of the index buffer to describe a geometry. More...
#include <Geometry.h>
Public Member Functions | |
PLMESH_API | Geometry () |
Constructor. | |
PLMESH_API | ~Geometry () |
Destructor. | |
PLMESH_API PLCore::String | GetName () const |
Returns the geometrie's name. | |
PLMESH_API void | SetName (const PLCore::String &sName="") |
Sets the geometry name. | |
PLMESH_API PLCore::uint32 | GetFlags () const |
Returns the geometry flags. | |
PLMESH_API void | SetFlags (PLCore::uint32 nFlags=0) |
Sets the geometry flags. | |
PLMESH_API bool | IsActive () const |
Returns the geometry active flag. | |
PLMESH_API void | SetActive (bool bActive=true) |
Sets the geometry active flag. | |
PLMESH_API PLRenderer::Primitive::Enum | GetPrimitiveType () const |
Returns the type of the primitives. | |
PLMESH_API void | SetPrimitiveType (PLRenderer::Primitive::Enum nPrimitiveType=PLRenderer::Primitive::Unknown) |
Sets the type of the primitives. | |
PLMESH_API PLCore::uint32 | GetMaterial () const |
Returns the material used by this geometry. | |
PLMESH_API void | SetMaterial (PLCore::uint32 nMaterial=0) |
Sets the material used by this geometry. | |
PLMESH_API PLCore::uint32 | GetStartIndex () const |
Returns the start index. | |
PLMESH_API void | SetStartIndex (PLCore::uint32 nStartIndex=0) |
Sets the start index. | |
PLMESH_API PLCore::uint32 | GetIndexSize () const |
Returns the index size. | |
PLMESH_API void | SetIndexSize (PLCore::uint32 nIndexSize=0) |
Sets the index size. | |
PLMESH_API PLCore::uint32 | GetNumOfTriangles () const |
Returns the number of triangles the geometry consists of. | |
PLMESH_API Geometry & | operator= (const Geometry &cSource) |
Copy operator. | |
PLMESH_API bool | operator== (const Geometry &cGeometry) const |
Compares two geometries. |
A geometry defines a part of the index buffer to describe a geometry.
PLMESH_API PLMesh::Geometry::Geometry | ( | ) |
Constructor.
PLMESH_API PLMesh::Geometry::~Geometry | ( | ) |
Destructor.
PLMESH_API PLCore::String PLMesh::Geometry::GetName | ( | ) | const |
Returns the geometrie's name.
PLMESH_API void PLMesh::Geometry::SetName | ( | const PLCore::String & | sName = "" | ) |
Sets the geometry name.
[in] | sName | Name of the geometry |
PLMESH_API PLCore::uint32 PLMesh::Geometry::GetFlags | ( | ) | const |
Returns the geometry flags.
PLMESH_API void PLMesh::Geometry::SetFlags | ( | PLCore::uint32 | nFlags = 0 | ) |
Sets the geometry flags.
[in] | nFlags | Geometry flags |
PLMESH_API bool PLMesh::Geometry::IsActive | ( | ) | const |
Returns the geometry active flag.
PLMESH_API void PLMesh::Geometry::SetActive | ( | bool | bActive = true | ) |
Sets the geometry active flag.
[in] | bActive | 'true' if the geometry is active, else 'false' |
PLMESH_API PLRenderer::Primitive::Enum PLMesh::Geometry::GetPrimitiveType | ( | ) | const |
Returns the type of the primitives.
PLMESH_API void PLMesh::Geometry::SetPrimitiveType | ( | PLRenderer::Primitive::Enum | nPrimitiveType = PLRenderer::Primitive::Unknown | ) |
Sets the type of the primitives.
[in] | nPrimitiveType | Primitive type (e.g. triangles, triangle strips etc.) |
PLMESH_API PLCore::uint32 PLMesh::Geometry::GetMaterial | ( | ) | const |
Returns the material used by this geometry.
PLMESH_API void PLMesh::Geometry::SetMaterial | ( | PLCore::uint32 | nMaterial = 0 | ) |
Sets the material used by this geometry.
[in] | nMaterial | Number of the material that is used |
PLMESH_API PLCore::uint32 PLMesh::Geometry::GetStartIndex | ( | ) | const |
Returns the start index.
PLMESH_API void PLMesh::Geometry::SetStartIndex | ( | PLCore::uint32 | nStartIndex = 0 | ) |
Sets the start index.
[in] | nStartIndex | Start index |
PLMESH_API PLCore::uint32 PLMesh::Geometry::GetIndexSize | ( | ) | const |
Returns the index size.
PLMESH_API void PLMesh::Geometry::SetIndexSize | ( | PLCore::uint32 | nIndexSize = 0 | ) |
Sets the index size.
[in] | nIndexSize | Index size |
PLMESH_API PLCore::uint32 PLMesh::Geometry::GetNumOfTriangles | ( | ) | const |
Returns the number of triangles the geometry consists of.
Copy operator.
[in] | cSource | Source to copy from |
PLMESH_API bool PLMesh::Geometry::operator== | ( | const Geometry & | cGeometry | ) | const |
Compares two geometries.
[in] | cGeometry | Geometry to compare with |
|