Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
CylinderGenerator.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
component/Mesh.hpp
"
4
#include <cstdint>
5
#include <glm/glm.hpp>
6
7
namespace
Object::Utils
{
8
19
Component::Mesh
GenerateCylinderMesh
(
float
radiusTop = 0.5f,
float
radiusBottom = 0.5f,
float
height = 1.0f,
20
uint32_t segments = 32u, uint32_t heightSegments = 1u);
21
22
}
// namespace Object::Utils
Mesh.hpp
Object::Utils
Definition
BoxGenerator.cpp:4
Object::Utils::GenerateCylinderMesh
Component::Mesh GenerateCylinderMesh(float radiusTop, float radiusBottom, float height, uint32_t segments, uint32_t heightSegments)
Generate a cylinder mesh with specified dimensions.
Definition
CylinderGenerator.cpp:6
src
plugin
object
src
utils
CylinderGenerator.hpp
Generated by
1.16.1