Spinning Topp Logo BlackTopp Studios
inc
Public Member Functions | Protected Attributes | List of all members
Mezzanine::Graphics::Procedural::MeshLoader Class Reference

A generator class for loading an external mesh into a procedural buffer. More...

#include <meshloader.h>

+ Inheritance diagram for Mezzanine::Graphics::Procedural::MeshLoader:
+ Collaboration diagram for Mezzanine::Graphics::Procedural::MeshLoader:

Public Member Functions

 MeshLoader ()
 Class constructor.
 
virtual ~MeshLoader ()
 Class destructor.
 
virtual void AddToTriangleBuffer (TriangleBuffer &Buffer) const
 Adds the vertices and indices as configured in this generator to a triangle buffer. More...
 
MeshLoaderSetMesh (Mesh *ToGenerate)
 Sets the Mesh to be copied to the TriangleBuffer. More...
 
- Public Member Functions inherited from Mezzanine::Graphics::Procedural::MeshGenerator< MeshLoader >
 MeshGenerator ()
 Class constructor.
 
virtual ~MeshGenerator ()
 Class destructor.
 
TriangleBuffer BuildTriangleBuffer () const
 Creates a TriangleBuffer with the the vertices and indices as configured in this generator. More...
 
MeshGenerateMesh (const String &MeshName, const String &MeshGroup, const String &MatName, const String &MatGroup) const
 Generates the mesh. More...
 
MeshLoaderResetTransforms ()
 Resets all transforms (orientation, position and scale) that would have been applied to the mesh to their default values. More...
 
MeshLoaderSetEnableNormals (Boole EnableNormals)
 Sets whether normals are enabled or not. More...
 
MeshLoaderSetNumTexCoordSet (const UInt8 NumSets)
 Sets the number of texture coordintate sets. More...
 
MeshLoaderSetOrientation (const Quaternion &Ori)
 Sets an orientation baked into the resulting mesh. More...
 
MeshLoaderSetOrientation (const Real X, const Real Y, const Real Z, const Real W)
 Sets an orientation baked into the resulting mesh. More...
 
MeshLoaderSetPosition (const Vector3 &Loc)
 Sets a translation baked into the resulting mesh. More...
 
MeshLoaderSetPosition (const Real X, const Real Y, const Real Z)
 Sets a translation baked into the resulting mesh. More...
 
MeshLoaderSetScale (const Vector3 &Scaling)
 Sets a scale baked into the resulting mesh. More...
 
MeshLoaderSetScale (const Real Scaling)
 Sets a uniform scale baked into the resulting mesh. More...
 
MeshLoaderSetScale (const Real X, const Real Y, const Real Z)
 Sets a scale baked into the resulting mesh. More...
 
MeshLoaderSetSwitchUV (Boole SwitchUV)
 Sets whether to switch U and V texture coordinates. More...
 
MeshLoaderSetTextureRectangle (const Real RectLeft, const Real RectRight, const Real RectTop, const Real RectBottom)
 Sets the texture rectangle. More...
 
MeshLoaderSetUTile (const Real uTile)
 Sets the U Tile. More...
 
MeshLoaderSetVTile (const Real vTile)
 Sets the V Tile. More...
 

Protected Attributes

MeshGenMesh
 A pointer to the Mesh to copy into a TriangleBuffer. More...
 
- Protected Attributes inherited from Mezzanine::Graphics::Procedural::MeshGenerator< MeshLoader >
UInt8 GeneratorOpts
 Storage for the boolean options to be used by this generator. More...
 
UInt8 NumTexCoordSet
 The number of texture coordinate sets to include. More...
 
Quaternion Orientation
 Orientation to apply the mesh. More...
 
Vector3 Position
 Position to apply to the mesh. More...
 
Vector3 Scale
 Scale to apply to the mesh. More...
 
Real UTile
 U tile for texture coords generation. More...
 
Vector2 UVOrigin
 Rectangle in which the texture coordinates will be placed. More...
 
Real VTile
 V tile for texture coords generation. More...
 

Additional Inherited Members

- Public Types inherited from Mezzanine::Graphics::Procedural::MeshGenerator< MeshLoader >
enum  GeneratorOptions
 A convenience enum used to describe boolean options for a generator.
 
- Protected Member Functions inherited from Mezzanine::Graphics::Procedural::MeshGenerator< MeshLoader >
void AddPoint (TriangleBuffer &Buffer, const Vector3 &Loc, const Vector3 &Norm, const Vector2 &UV) const
 Adds a new point to a triangle buffer, using the format defined for that MeshGenerator. More...
 

Detailed Description

A generator class for loading an external mesh into a procedural buffer.

Definition at line 56 of file meshloader.h.

Member Function Documentation

void Mezzanine::Graphics::Procedural::MeshLoader::AddToTriangleBuffer ( TriangleBuffer Buffer) const
virtual

Adds the vertices and indices as configured in this generator to a triangle buffer.

Parameters
BufferThe buffer to append this generators vertices and indices to.
Todo:
This doesn't account for the submesh name. Should research/consider adding this.

Implements Mezzanine::Graphics::Procedural::MeshGenerator< MeshLoader >.

Definition at line 64 of file meshloader.cpp.

MeshLoader & Mezzanine::Graphics::Procedural::MeshLoader::SetMesh ( Mesh ToGenerate)

Sets the Mesh to be copied to the TriangleBuffer.

Parameters
ToGenerateThe Mesh to be copied.
Returns
Returns a reference to this.

Definition at line 90 of file meshloader.cpp.

Member Data Documentation

Mesh* Mezzanine::Graphics::Procedural::MeshLoader::GenMesh
protected

A pointer to the Mesh to copy into a TriangleBuffer.

Definition at line 61 of file meshloader.h.


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