CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
ConeMesh.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
19 class ConeMesh {
20 private:
23
24 public:
32 ConeMesh(double radius = 1.0, double size = 1.0, int slices = 32, int segments = 8, double start = 0.0, double sweep = radians(360.0));
33
34 using Triangles = typename Impl::Triangles;
36
37 using Vertices = typename Impl::Vertices;
39 };
40
41} // 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
A cone centered at origin tip pointing towards z-axis.
Definition ConeMesh.hpp:19
typename Impl::Vertices Vertices
Definition ConeMesh.hpp:37
ConeMesh(double radius=1.0, double size=1.0, int slices=32, int segments=8, double start=0.0, double sweep=radians(360.0))
Vertices vertices() const noexcept
Definition ConeMesh.hpp:38
Impl mAxisSwapMesh
Definition ConeMesh.hpp:22
Triangles triangles() const noexcept
Definition ConeMesh.hpp:35
typename Impl::Triangles Triangles
Definition ConeMesh.hpp:34
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25