Ogre Procedural  0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
Public Types | Public Member Functions | Public Attributes | List of all members
Procedural::CalculateNormalsModifier Class Reference

WIP. More...

#include <ProceduralMeshModifiers.h>

Public Types

enum  NormalComputeMode { NCM_VERTEX, NCM_TRIANGLE }
 

Public Member Functions

 CalculateNormalsModifier ()
 
CalculateNormalsModifiersetComputeMode (NormalComputeMode computeMode)
 
CalculateNormalsModifiersetInputTriangleBuffer (TriangleBuffer *inputTriangleBuffer)
 
CalculateNormalsModifiersetMustWeldUnweldFirst (bool mustWeldUnweldFirst)
 Tells if the mesh must be first weld (NCM_VERTEX mode) or unweld (NCM_TRIANGLE) before computing normals. More...
 
void modify ()
 

Public Attributes

NormalComputeMode mComputeMode
 
TriangleBuffermInputTriangleBuffer
 
bool mMustWeldUnweldFirst
 

Detailed Description

WIP.

Member Enumeration Documentation

◆ NormalComputeMode

Enumerator
NCM_VERTEX 
NCM_TRIANGLE 

Constructor & Destructor Documentation

◆ CalculateNormalsModifier()

Procedural::CalculateNormalsModifier::CalculateNormalsModifier ( )

Member Function Documentation

◆ modify()

void Procedural::CalculateNormalsModifier::modify ( )

◆ setComputeMode()

CalculateNormalsModifier& Procedural::CalculateNormalsModifier::setComputeMode ( NormalComputeMode  computeMode)

◆ setInputTriangleBuffer()

CalculateNormalsModifier& Procedural::CalculateNormalsModifier::setInputTriangleBuffer ( TriangleBuffer inputTriangleBuffer)

◆ setMustWeldUnweldFirst()

CalculateNormalsModifier& Procedural::CalculateNormalsModifier::setMustWeldUnweldFirst ( bool  mustWeldUnweldFirst)

Tells if the mesh must be first weld (NCM_VERTEX mode) or unweld (NCM_TRIANGLE) before computing normals.

Has a performance impact if enabled. Default : true.

Member Data Documentation

◆ mComputeMode

NormalComputeMode Procedural::CalculateNormalsModifier::mComputeMode

◆ mInputTriangleBuffer

TriangleBuffer* Procedural::CalculateNormalsModifier::mInputTriangleBuffer

◆ mMustWeldUnweldFirst

bool Procedural::CalculateNormalsModifier::mMustWeldUnweldFirst

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