CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
PlaneMesh.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 "ParametricMesh.hpp"
11
13
16 class PlaneMesh {
17 private:
20
21 public:
24 PlaneMesh(const Vector2& size = {1.0, 1.0}, const Vector2i& segments = {8, 8});
25
26 using Triangles = typename Impl::Triangles;
27
29
30 using Vertices = typename Impl::Vertices;
31
33 };
34
35} // namespace CeresEngine::MeshGenerator
A mesh with values evaluated using a callback function.
Definition ParametricMesh.hpp:18
Triangles triangles() const noexcept
A plane (rectangular grid) on the xy -plane normal pointing towards z-axis.
Definition PlaneMesh.hpp:16
PlaneMesh(const Vector2 &size={1.0, 1.0}, const Vector2i &segments={8, 8})
Impl mParametricMesh
Definition PlaneMesh.hpp:19
Vertices vertices() const noexcept
Definition PlaneMesh.hpp:32
typename Impl::Triangles Triangles
Definition PlaneMesh.hpp:26
typename Impl::Vertices Vertices
Definition PlaneMesh.hpp:30
Triangles triangles() const noexcept
Definition PlaneMesh.hpp:28
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25