|
SleakEngine 1.0.0
C++23 multi-backend game engine
|
Go to the source code of this file.
Functions | |
| Sleak::MeshData | GetCapsuleMesh (int segments, int rings, float height, float radius) |
| Builds a capsule (cylinder with hemispherical caps) centered at the origin. | |
| Sleak::MeshData | GetCubeMesh () |
| Builds a unit cube with per-face vertices for hard-edged normals. | |
| Sleak::MeshData | GetCylinderMesh (int segments, float height, float radius) |
| Builds a capped cylinder centered at the origin, extending +/- height/2 along Y. | |
| Sleak::MeshData | GetPlaneMesh (float width, float height, int subdivisionsX=1, int subdivisionsY=1) |
| Builds a subdivided flat quad on the XZ plane, facing up. | |
| Sleak::MeshData | GetPyramidMesh () |
| Builds a square-based pyramid (4 triangular faces plus a quad base). | |
| Sleak::MeshData | GetSphereMesh (int stacks=16, int slices=16) |
| Builds a UV sphere of unit radius with the given stack/slice resolution. | |
| Sleak::MeshData | GetTorusMesh (int segments, int rings, float innerRadius, float outerRadius) |
| Builds a torus (donut) mesh spanning innerRadius to outerRadius. | |
|
inline |
Builds a capsule (cylinder with hemispherical caps) centered at the origin.
Definition at line 214 of file InternalGeometry.hpp.
|
inline |
Builds a unit cube with per-face vertices for hard-edged normals.
Definition at line 57 of file InternalGeometry.hpp.
|
inline |
Builds a capped cylinder centered at the origin, extending +/- height/2 along Y.
Definition at line 150 of file InternalGeometry.hpp.
|
inline |
Builds a subdivided flat quad on the XZ plane, facing up.
Definition at line 8 of file InternalGeometry.hpp.
|
inline |
Builds a square-based pyramid (4 triangular faces plus a quad base).
Definition at line 316 of file InternalGeometry.hpp.
|
inline |
Builds a UV sphere of unit radius with the given stack/slice resolution.
Definition at line 116 of file InternalGeometry.hpp.
|
inline |
Builds a torus (donut) mesh spanning innerRadius to outerRadius.
Definition at line 270 of file InternalGeometry.hpp.