|
CeresEngine 0.2.0
A game development framework
|
Rectangle with rounded corners centered at origin aligned along the x and y axis. More...
#include <CeresEngine/Mesh/Generator/RoundedRectangleShape.hpp>
Public Types | |
| using | Edges = typename Impl::Edges |
| using | Vertices = typename Impl::Vertices |
Public Member Functions | |
| RoundedRectangleShape (double radius=0.25, const Vector2 &size={0.75, 0.75}, int slices=4, const Vector2i &segments={8, 8}) | |
| Edges | edges () const noexcept |
| Vertices | vertices () const noexcept |
Private Types | |
| using | Impl = MergeShape< LineShape, TranslateShape< CircleShape >, LineShape, TranslateShape< CircleShape >, LineShape, TranslateShape< CircleShape >, LineShape, TranslateShape< CircleShape > > |
Private Attributes | |
| Impl | mMergeShape |
Rectangle with rounded corners centered at origin aligned along the x and y axis.
| using CeresEngine::MeshGenerator::RoundedRectangleShape::Vertices = typename Impl::Vertices |
| CeresEngine::MeshGenerator::RoundedRectangleShape::RoundedRectangleShape | ( | double | radius = 0.25, |
| const Vector2 & | size = {0.75, 0.75}, |
||
| int | slices = 4, |
||
| const Vector2i & | segments = {8, 8} |
||
| ) |
| radius | Radius of the rounded corners. |
| size | Half of a length of an edge. |
| slices | Number of subdivisions in each rounded corner. |
| segments | Number of subdivisions along each edge. |
|
inlinenoexcept |
|
inlinenoexcept |
|
private |