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... | |
| MeshLoader & | SetMesh (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... | |
| Mesh * | GenerateMesh (const String &MeshName, const String &MeshGroup, const String &MatName, const String &MatGroup) const |
| Generates the mesh. More... | |
| MeshLoader & | ResetTransforms () |
| Resets all transforms (orientation, position and scale) that would have been applied to the mesh to their default values. More... | |
| MeshLoader & | SetEnableNormals (Boole EnableNormals) |
| Sets whether normals are enabled or not. More... | |
| MeshLoader & | SetNumTexCoordSet (const UInt8 NumSets) |
| Sets the number of texture coordintate sets. More... | |
| MeshLoader & | SetOrientation (const Quaternion &Ori) |
| Sets an orientation baked into the resulting mesh. More... | |
| MeshLoader & | SetOrientation (const Real X, const Real Y, const Real Z, const Real W) |
| Sets an orientation baked into the resulting mesh. More... | |
| MeshLoader & | SetPosition (const Vector3 &Loc) |
| Sets a translation baked into the resulting mesh. More... | |
| MeshLoader & | SetPosition (const Real X, const Real Y, const Real Z) |
| Sets a translation baked into the resulting mesh. More... | |
| MeshLoader & | SetScale (const Vector3 &Scaling) |
| Sets a scale baked into the resulting mesh. More... | |
| MeshLoader & | SetScale (const Real Scaling) |
| Sets a uniform scale baked into the resulting mesh. More... | |
| MeshLoader & | SetScale (const Real X, const Real Y, const Real Z) |
| Sets a scale baked into the resulting mesh. More... | |
| MeshLoader & | SetSwitchUV (Boole SwitchUV) |
| Sets whether to switch U and V texture coordinates. More... | |
| MeshLoader & | SetTextureRectangle (const Real RectLeft, const Real RectRight, const Real RectTop, const Real RectBottom) |
| Sets the texture rectangle. More... | |
| MeshLoader & | SetUTile (const Real uTile) |
| Sets the U Tile. More... | |
| MeshLoader & | SetVTile (const Real vTile) |
| Sets the V Tile. More... | |
Protected Attributes | |
| Mesh * | GenMesh |
| 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... | |
A generator class for loading an external mesh into a procedural buffer.
Definition at line 56 of file meshloader.h.
|
virtual |
Adds the vertices and indices as configured in this generator to a triangle buffer.
| Buffer | The buffer to append this generators vertices and indices to. |
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.
| ToGenerate | The Mesh to be copied. |
Definition at line 90 of file meshloader.cpp.
|
protected |
A pointer to the Mesh to copy into a TriangleBuffer.
Definition at line 61 of file meshloader.h.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.