CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CylinderMesh.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 "AxisSwapMesh.hpp"
11#include "LatheMesh.hpp"
12#include "LineShape.hpp"
13#include "UvFlipMesh.hpp"
14
16
20 private:
23
24 public:
31 CylinderMesh(double radius = 1.0, double size = 1.0, int slices = 32, int segments = 8, double start = 0.0, double sweep = radians(360.0));
32
33 using Triangles = typename Impl::Triangles;
35
36 using Vertices = typename Impl::Vertices;
38 };
39
40} // namespace CeresEngine::MeshGenerator
typename Impl::Vertices Vertices
Definition AxisSwapMesh.hpp:72
Triangles triangles() const noexcept
Definition AxisSwapMesh.hpp:70
Vertices vertices() const noexcept
Definition AxisSwapMesh.hpp:73
Cylinder centered at origin aligned along the z-axis.
Definition CylinderMesh.hpp:19
CylinderMesh(double radius=1.0, double size=1.0, int slices=32, int segments=8, double start=0.0, double sweep=radians(360.0))
Impl mAxisSwapMesh
Definition CylinderMesh.hpp:22
Vertices vertices() const noexcept
Definition CylinderMesh.hpp:37
Triangles triangles() const noexcept
Definition CylinderMesh.hpp:34
typename Impl::Triangles Triangles
Definition CylinderMesh.hpp:33
typename Impl::Vertices Vertices
Definition CylinderMesh.hpp:36
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25