CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::TransformShape< Shape > Class Template Reference

Apply a mutator function to each vertex. More...

#include <CeresEngine/Mesh/Generator/TransformShape.hpp>

Classes

class  Vertices
 

Public Types

using Edges = typename Impl::Edges
 

Public Member Functions

 TransformShape (Shape shape, Function< void(ShapeVertex &) const > mutate)
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = Shape
 

Private Attributes

Impl mShape
 
Function< void(ShapeVertex &) constmutate_
 

Detailed Description

template<typename Shape>
class CeresEngine::MeshGenerator::TransformShape< Shape >

Apply a mutator function to each vertex.

Member Typedef Documentation

◆ Edges

◆ Impl

Constructor & Destructor Documentation

◆ TransformShape()

template<typename Shape >
CeresEngine::MeshGenerator::TransformShape< Shape >::TransformShape ( Shape  shape,
Function< void(ShapeVertex &) const mutate 
)
inline
Parameters
shapeSource data shape.
mutateCallback function that gets called once per vertex.

Member Function Documentation

◆ edges()

template<typename Shape >
Edges CeresEngine::MeshGenerator::TransformShape< Shape >::edges ( ) const
inlinenoexcept

◆ vertices()

template<typename Shape >
Vertices CeresEngine::MeshGenerator::TransformShape< Shape >::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mShape

◆ mutate_


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