Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
BoardTextureRuntime.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "LegacyMeshData.hpp"
4#include "ResourcePaths.hpp"
5#include "TextureCatalog.hpp"
6
7#include <expected>
8#include <memory>
9#include <string>
10#include <vector>
11
12namespace monopoly::data
13{
14 // Loads a complete immutable substitution batch. Any missing or invalid
15 // base/overlay fails the batch so callers can retain the previous mesh.
16 // Embedded recipes need no external resources and return an empty batch.
17 [[nodiscard]] std::expected<
18 std::vector<std::shared_ptr<const HmdTextureImage>>, std::string>
20 const ResourcePaths& paths,
21 const BoardTextureRecipe& recipe,
22 const BoardTextureContext& context);
23}
unsigned index
std::expected< std::vector< std::shared_ptr< const HmdTextureImage > >, std::string > loadBoardTextureImages(const ResourcePaths &paths, const BoardTextureRecipe &recipe, const BoardTextureContext &context)