CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
RectangleShape.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "LineShape.hpp"
11#include "MergeShape.hpp"
12
14
18 private:
21
22 public:
25 RectangleShape(const Vector2& size = Vector2{1.0, 1.0}, const Vector2i& segments = Vector2i{8, 8});
26
27 using Edges = typename Impl::Edges;
28
29 [[nodiscard]] Edges edges() const noexcept { return mMergeShape.edges(); }
30
31 using Vertices = typename Impl::Vertices;
32
33 [[nodiscard]] Vertices vertices() const noexcept { return mMergeShape.vertices(); }
34 };
35
36} // namespace CeresEngine::MeshGenerator
Rectangle centered at origin aligned along the x and y axis.
Definition RectangleShape.hpp:17
Impl mMergeShape
Definition RectangleShape.hpp:20
typename Impl::Vertices Vertices
Definition RectangleShape.hpp:31
Vertices vertices() const noexcept
Definition RectangleShape.hpp:33
RectangleShape(const Vector2 &size=Vector2{1.0, 1.0}, const Vector2i &segments=Vector2i{8, 8})
typename Impl::Edges Edges
Definition RectangleShape.hpp:27
Edges edges() const noexcept
Definition RectangleShape.hpp:29
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25