CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MeshGenerator::RectangleShape Class Reference

Rectangle centered at origin aligned along the x and y axis. More...

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

Public Types

using Edges = typename Impl::Edges
 
using Vertices = typename Impl::Vertices
 

Public Member Functions

 RectangleShape (const Vector2 &size=Vector2{1.0, 1.0}, const Vector2i &segments=Vector2i{8, 8})
 
Edges edges () const noexcept
 
Vertices vertices () const noexcept
 

Private Types

using Impl = MergeShape< LineShape, LineShape, LineShape, LineShape >
 

Private Attributes

Impl mMergeShape
 

Detailed Description

Rectangle centered at origin aligned along the x and y axis.

Member Typedef Documentation

◆ Edges

◆ Impl

◆ Vertices

Constructor & Destructor Documentation

◆ RectangleShape()

CeresEngine::MeshGenerator::RectangleShape::RectangleShape ( const Vector2 size = Vector2{1.0, 1.0},
const Vector2i &  segments = Vector2i{8, 8} 
)
Parameters
sizeHalf of the length of an edge.
segmentsNumber of subdivisions per edge.

Member Function Documentation

◆ edges()

Edges CeresEngine::MeshGenerator::RectangleShape::edges ( ) const
inlinenoexcept

◆ vertices()

Vertices CeresEngine::MeshGenerator::RectangleShape::vertices ( ) const
inlinenoexcept

Member Data Documentation

◆ mMergeShape

Impl CeresEngine::MeshGenerator::RectangleShape::mMergeShape
private

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