PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
ozz_archive_asset_io_internal.h
1#pragma once
2
3#include "ozz/animation/runtime/animation.h"
4#include "ozz/animation/runtime/skeleton.h"
5
6#include <filesystem>
7#include <string>
8#include <string_view>
9
10namespace pixelbullet::ozz_archive_asset_io_internal
11{
12[[nodiscard]] bool HasPathSuffix(std::string_view logical_path, std::string_view suffix) noexcept;
13
14[[nodiscard]] bool LoadSkeletonArchive(const std::filesystem::path& resolved_path, std::string_view logical_path,
15 ozz::animation::Skeleton& skeleton, std::string* error_message);
16[[nodiscard]] bool SaveSkeletonArchive(const std::filesystem::path& resolved_path, std::string_view logical_path,
17 const ozz::animation::Skeleton& skeleton, std::string* error_message);
18
19[[nodiscard]] bool LoadAnimationClipArchive(const std::filesystem::path& resolved_path, std::string_view logical_path,
20 ozz::animation::Animation& animation, std::string* error_message);
21[[nodiscard]] bool SaveAnimationClipArchive(const std::filesystem::path& resolved_path, std::string_view logical_path,
22 const ozz::animation::Animation& animation, std::string* error_message);
23} // namespace pixelbullet::ozz_archive_asset_io_internal