Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
CapsuleGenerator.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
18
Component::Mesh
GenerateCapsuleMesh
(
float
radius = 0.5f,
float
height = 1.0f, uint32_t segments = 32u,
19
uint32_t heightSegments = 4u);
20
21
}
// namespace Object::Utils
Mesh.hpp
Object::Utils
Definition
BoxGenerator.cpp:4
Object::Utils::GenerateCapsuleMesh
Component::Mesh GenerateCapsuleMesh(float radius, float height, uint32_t segments, uint32_t heightSegments)
Generate a capsule mesh with given radius and cylinder height.
Definition
CapsuleGenerator.cpp:6
src
plugin
object
src
utils
CapsuleGenerator.hpp
Generated by
1.16.1