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

Repeats the same shape a given number of time at given intervals. More...

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

Classes

class  Edges
 
class  Vertices
 

Public Member Functions

 RepeatShape (Shape shape, const int instances, const Vector2 &delta) noexcept
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Attributes

Shape mShape
 
int mInstances
 
Vector2 mDelta
 
int mVertexCount
 

Detailed Description

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

Repeats the same shape a given number of time at given intervals.

Constructor & Destructor Documentation

◆ RepeatShape()

template<typename Shape >
CeresEngine::MeshGenerator::RepeatShape< Shape >::RepeatShape ( Shape  shape,
const int  instances,
const Vector2 delta 
)
inlineexplicitnoexcept
Parameters
shapeThe shape to repeat.
instancesNumber of times to repeat. If <1 an empty shape results.
deltaAn offset aplied to each copy.

Member Function Documentation

◆ edges()

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

◆ vertices()

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

Member Data Documentation

◆ mDelta

◆ mInstances

template<typename Shape >
int CeresEngine::MeshGenerator::RepeatShape< Shape >::mInstances
private

◆ mShape

◆ mVertexCount

template<typename Shape >
int CeresEngine::MeshGenerator::RepeatShape< Shape >::mVertexCount
private

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