Spinning Topp Logo BlackTopp Studios
inc
Public Types | Public Member Functions | Protected Attributes | List of all members
Mezzanine::Graphics::Procedural::VertexNormalsModifier Class Reference
+ Inheritance diagram for Mezzanine::Graphics::Procedural::VertexNormalsModifier:
+ Collaboration diagram for Mezzanine::Graphics::Procedural::VertexNormalsModifier:

Public Types

enum  ComputeMode { CM_Vertex = 1, CM_Triangle = 2 }
 An enum used to determine how normals are calculated. More...
 

Public Member Functions

 VertexNormalsModifier ()
 Blank constructor.
 
virtual ~VertexNormalsModifier ()
 Class destructor.
 
virtual String GetName () const
 Gets the name of this modifier. More...
 
virtual void Modify (TriangleBuffer &Buffer)
 Alters the generated pixels in a TriangleBuffer. More...
 
VertexNormalsModifierSetComputerMode (const VertexNormalsModifier::ComputeMode Mode)
 Sets how the normals for each vertex is to be calculated. More...
 
- Public Member Functions inherited from Mezzanine::Graphics::Procedural::MeshModifier
 MeshModifier ()
 Blank constructor.
 
virtual ~MeshModifier ()
 Class destructor.
 

Protected Attributes

ComputeMode Compute
 The mode in which normals are calculated for each vertex. More...
 

Detailed Description

Definition at line 82 of file vertexnormalsmodifier.h.

Member Enumeration Documentation

An enum used to determine how normals are calculated.

Enumerator
CM_Vertex 

The normal for each vertex is the average of the normals for each triangle it belongs to.

CM_Triangle 

The normal for each vertex is the same as the normal for the last triangle it belongs to. Not ideal for vertices that are reused.

Definition at line 86 of file vertexnormalsmodifier.h.

Member Function Documentation

String Mezzanine::Graphics::Procedural::VertexNormalsModifier::GetName ( ) const
virtual

Gets the name of this modifier.

Returns
Returns a string containing the name of this modifier.

Implements Mezzanine::Graphics::Procedural::MeshModifier.

Definition at line 129 of file vertexnormalsmodifier.cpp.

void Mezzanine::Graphics::Procedural::VertexNormalsModifier::Modify ( TriangleBuffer Buffer)
virtual

Alters the generated pixels in a TriangleBuffer.

Parameters
BufferThe buffer to be modified.

Implements Mezzanine::Graphics::Procedural::MeshModifier.

Definition at line 88 of file vertexnormalsmodifier.cpp.

VertexNormalsModifier & Mezzanine::Graphics::Procedural::VertexNormalsModifier::SetComputerMode ( const VertexNormalsModifier::ComputeMode  Mode)

Sets how the normals for each vertex is to be calculated.

Parameters
ModeThe mode in which normals are calculated for each vertex.
Returns
Returns a reference to this.

Definition at line 135 of file vertexnormalsmodifier.cpp.

Member Data Documentation

ComputeMode Mezzanine::Graphics::Procedural::VertexNormalsModifier::Compute
protected

The mode in which normals are calculated for each vertex.

Definition at line 94 of file vertexnormalsmodifier.h.


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