Emergency 2017 Dokumentation  v3.0.1
qsf::DecalGeometricMeshGenerator Class Reference

Geometric decal mesh generator class. More...

#include <DecalGeometricMeshGenerator.h>

Public Member Functions

 DecalGeometricMeshGenerator ()
 Default constructor. More...
 
 ~DecalGeometricMeshGenerator ()
 Destructor. More...
 
bool createMesh (const std::string &ogreMeshName, DecalGeometricComponent &decalGeometricComponent)
 Create a procedural OGRE mesh for the given geometric decal component. More...
 
- Public Member Functions inherited from qsf::MeshGenerator
 MeshGenerator ()
 Default constructor. More...
 
 ~MeshGenerator ()
 Destructor. More...
 

Friends

class DecalGeometricComponent
 

Additional Inherited Members

- Protected Types inherited from qsf::MeshGenerator
typedef std::vector< VertexFormatElementSequentialVertexFormatDeclaration
 
- Protected Member Functions inherited from qsf::MeshGenerator
void createOgreMesh (const std::string &ogreMeshName)
 Create the OGRE mesh by member data. More...
 
bool updateOgreMesh (const std::string &ogreMeshName)
 Update the OGRE mesh by member data. More...
 
- Static Protected Member Functions inherited from qsf::MeshGenerator
static void addVertexElementToVertexDeclaration (const VertexFormatElement &elementFormat, Ogre::v1::VertexDeclaration &ogreVertexDeclaration, size_t &vertexSize)
 
static void writeSingleVertexElementToData (const VertexFormatElement &vfe, uint8 *&targetDataPointer, const float *sourceData)
 
- Protected Attributes inherited from qsf::MeshGenerator
std::vector< RenderVertexmVertices
 
std::vector< RenderSubMeshmRenderSubMesh
 
SequentialVertexFormatDeclaration mVertexFormatDeclaration
 

Detailed Description

Geometric decal mesh generator class.

Todo:
  • TODO(np) In this class we use a mechanism for texture atlas. Someone (maybe mr. ofenberg or mr. wendel) can extract this to an extra class to use it for other cases. :)

Definition at line 47 of file DecalGeometricMeshGenerator.h.

Constructor & Destructor Documentation

qsf::DecalGeometricMeshGenerator::DecalGeometricMeshGenerator ( )

Default constructor.

qsf::DecalGeometricMeshGenerator::~DecalGeometricMeshGenerator ( )

Destructor.

Note
  • Not virtual by intent

Member Function Documentation

bool qsf::DecalGeometricMeshGenerator::createMesh ( const std::string &  ogreMeshName,
DecalGeometricComponent decalGeometricComponent 
)

Create a procedural OGRE mesh for the given geometric decal component.

Parameters
[in]ogreMeshNameUTF-8 name of the OGRE mesh
[in]decalGeometricComponentGeometric decal component to procedurally generate the OGRE mesh for
Returns
"true" if the mesh creating successful, else "false"

Friends And Related Function Documentation

friend class DecalGeometricComponent
friend

Definition at line 54 of file DecalGeometricMeshGenerator.h.


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