载入中...
搜索中...
未找到
PrefabBoundsCatalog.h
浏览该文件的文档.
1#pragma once
2#include <map>
3#include <string>
4#include <utility>
6namespace eve::asset_graphics {
7class EvpackStaticPrefab;
13public:
20 [[nodiscard]] Result<void> add(const EvpackStaticPrefab& prefab);
22 [[nodiscard]] Result<std::array<float, 6>> localBounds(
23 const AssetRef& asset, const PersistentId& build,
24 PrefabRootPose rootPose = PrefabRootPose::Authored) const override;
25
26private:
27 using VersionKey = std::pair<PersistentId, PersistentId>;
28 std::map<VersionKey, std::array<std::array<float, 6>, 2>> entries_;
29};
30} // namespace eve::asset_graphics
std::string prefab
#define EVENGINE_API_WORLD
Definition Export.h:109
std::string build
Stable asset identity backed by PersistentId.
Definition ResourceRef.h:53
Optional immutable asset-bounds capability for explicit procedural bakes.
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Owning static-prefab GPU leases and immutable draw transforms; no ECS or Scene mutation....
Owning CPU bounds catalogue; no retained prefab, reader or GPU pointers. @thread Generation-owner aff...
Id128 public API.
Definition Identity.h:111
PrefabRootPose
Immutable prefab placement convention shared by geometry bounds and renderer preparation....