CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
SphereMesh.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 "CircleShape.hpp"
12#include "LatheMesh.hpp"
13#include "UvFlipMesh.hpp"
14
16
20 class SphereMesh {
21 private:
24
25 public:
33 SphereMesh(double radius = 1.0, int slices = 32, int segments = 16, double sliceStart = 0.0, double sliceSweep = radians(360.0),
34 double segmentStart = 0.0, double segmentSweep = radians(180.0));
35
36 using Triangles = typename Impl::Triangles;
37
39
40 using Vertices = typename Impl::Vertices;
41
43 };
44
45} // 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 sphere of the given radius centered around the origin.
Definition SphereMesh.hpp:20
SphereMesh(double radius=1.0, int slices=32, int segments=16, double sliceStart=0.0, double sliceSweep=radians(360.0), double segmentStart=0.0, double segmentSweep=radians(180.0))
typename Impl::Vertices Vertices
Definition SphereMesh.hpp:40
typename Impl::Triangles Triangles
Definition SphereMesh.hpp:36
Impl mAxisSwapMesh
Definition SphereMesh.hpp:23
Vertices vertices() const noexcept
Definition SphereMesh.hpp:42
Triangles triangles() const noexcept
Definition SphereMesh.hpp:38
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25