wren
Vulkan-based game engine
Loading...
Searching...
No Matches
mesh.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <wren/mesh.hpp>
6
8
11
12 std::filesystem::path mesh_file;
13
14 auto update_mesh(const std::filesystem::path& project_root,
15 const std::filesystem::path& mesh_path) -> expected<void> {
16 mesh_file = mesh_path;
17
18 TRY_RESULT(mesh, load_mesh(project_root / mesh_path));
19
20 return {};
21 }
22};
23
24} // namespace wren::scene::components
Definition mesh.hpp:39
Definition mesh.hpp:7
tl::expected< T, Err > expected
Definition errors.hpp:49
auto load_mesh(const std::filesystem::path &mesh_path) -> expected< Mesh >
Definition mesh_loader.cpp:90
std::filesystem::path mesh_file
Definition mesh.hpp:12
Mesh mesh
Definition mesh.hpp:10
auto update_mesh(const std::filesystem::path &project_root, const std::filesystem::path &mesh_path) -> expected< void >
Definition mesh.hpp:14
#define TRY_RESULT(...)
Definition errors.hpp:106