Foundation
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
Mesh.hpp File Reference
#include <Native/Filesystem.hpp>
#include <RHICore/Common.hpp>
#include <Core/Core.hpp>
#include <Math/Math.hpp>

Go to the source code of this file.

Classes

struct  ModelViewer::MeshVertex
 Full-size vertex structure for static meshes. More...
 
struct  ModelViewer::MeshVertexCompact
 Compact 4-byte aligned vertex structure for static meshes. More...
 
struct  ModelViewer::MeshMeshlet
 Meshlet structure containing offsets and counts to access meshlet data. More...
 

Namespaces

namespace  ModelViewer
 ModelViewer implementation.
 

Typedefs

using ModelViewer::MeshIndex = uint32_t
 
using ModelViewer::MeshMicroIndex = uint8_t
 

Functions

void ModelViewer::meshBuildMeshlets (Vector< MeshMeshlet > &outMeshlet, Vector< MeshIndex > &outMeshletVertices, Vector< MeshMicroIndex > &outMeshletTriangles, Span< const MeshVertex > vertices, Span< const MeshIndex > indices)
 Build meshlets from a mesh.
 
float ModelViewer::meshGenerateLod (Vector< MeshIndex > &outIndices, Span< const MeshVertex > vertices, Span< const MeshIndex > indices, const float lodScale)
 Generate a simplified LOD mesh index buffer from the input mesh.
 
void ModelViewer::meshLoadObjFile (Vector< MeshVertex > &outVertex, Vector< MeshIndex > &outIndex, const Native::Path &path)
 Load a mesh from an OBJ file.
 

Variables

constexpr uint32_t ModelViewer::kMeshletMaxVertices = 64
 
constexpr uint32_t ModelViewer::kMeshletMaxTriangles = 96