Monopoly — Portage moderne
0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
ModernGltfMesh.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
MeshRuntime.hpp
"
4
5
#include <expected>
6
#include <filesystem>
7
#include <memory>
8
9
namespace
monopoly::data
10
{
11
struct
ModernGltfLoadOptions
12
{
13
// Initial Blender-board calibration: 486 legacy units / 24 metres.
14
// Kept explicit until calibrated against retail HMD board bounds.
15
float
unitsPerMeter
{20.25F};
16
// Rotation around glTF Y-up after node transforms. The recovered
17
// Blender tokens are authored lengthwise on X; retail pieces use Z.
18
float
yawDegrees
{};
19
std::array<float, 3>
localOffset
{};
20
bool
groundToZero
{};
21
MeshRuntimeLimits
limits
{};
22
};
23
24
// Bounded static GLB bridge for embedded geometry and modern PBR factors,
25
// PNG/JPEG maps and samplers. Unsupported animation/skin/morph contracts
26
// return a presentation error so the caller can retain retail geometry.
27
[[
nodiscard
]] std::expected<
28
std::shared_ptr<const MeshRenderData>,
29
MeshRuntimeError>
30
loadModernGltfMesh
(
31
const
std::filesystem::path&
path
,
32
ModernGltfLoadOptions options = {});
33
}
MeshRuntime.hpp
index
unsigned index
Definition
ModernIBarSkin.cpp:25
path
std::string path
Definition
StartupResources.cpp:24
monopoly::data
Definition
ArchiveAssembly.cpp:21
monopoly::data::loadModernGltfMesh
std::expected< std::shared_ptr< const MeshRenderData >, MeshRuntimeError > loadModernGltfMesh(const std::filesystem::path &path, ModernGltfLoadOptions options)
Definition
ModernGltfMesh.cpp:395
monopoly::data::MeshRuntimeLimits
Definition
MeshRuntime.hpp:49
monopoly::data::ModernGltfLoadOptions
Definition
ModernGltfMesh.hpp:12
monopoly::data::ModernGltfLoadOptions::groundToZero
bool groundToZero
Definition
ModernGltfMesh.hpp:20
monopoly::data::ModernGltfLoadOptions::unitsPerMeter
float unitsPerMeter
Definition
ModernGltfMesh.hpp:15
monopoly::data::ModernGltfLoadOptions::yawDegrees
float yawDegrees
Definition
ModernGltfMesh.hpp:18
monopoly::data::ModernGltfLoadOptions::localOffset
std::array< float, 3 > localOffset
Definition
ModernGltfMesh.hpp:19
monopoly::data::ModernGltfLoadOptions::limits
MeshRuntimeLimits limits
Definition
ModernGltfMesh.hpp:21
ModernGltfMesh.hpp
Generated by
1.9.8