载入中...
搜索中...
未找到
StaticPrefabRenderInstance.h
浏览该文件的文档.
1#pragma once
2#include <array>
3#include <cstddef>
4#include <memory>
5#include "common/Export.h"
6#include "common/Result.h"
7
8namespace eve::graphics {
9class Renderable3D;
10}
11namespace eve::asset_graphics {
12class PreparedStaticPrefabScene;
20public:
32 [[nodiscard]] static Result<std::unique_ptr<StaticPrefabRenderInstance>> create(
33 std::unique_ptr<PreparedStaticPrefabScene> preparation, const std::array<float, 16>& world);
39 [[nodiscard]] Result<void> setWorldTransform(const std::array<float, 16>& world);
41 [[nodiscard]] std::size_t rendererCount() const noexcept;
47 [[nodiscard]] Result<graphics::Renderable3D*> renderer(std::size_t index) const;
51 [[nodiscard]] Result<void> release();
52
53private:
54 struct Impl;
55 explicit StaticPrefabRenderInstance(std::unique_ptr<Impl> impl);
56 std::unique_ptr<Impl> impl_;
57};
58} // namespace eve::asset_graphics
void * impl
#define EVENGINE_API_WORLD
Definition Export.h:109
std::shared_ptr< OceanRenderer > renderer
Move-only, checked operation results for the common layer.
Graphics * graphics
uint32_t index
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Own renderer entities and their prepared prefab resources, without owning a Scene node....
StaticPrefabRenderInstance & operator=(const StaticPrefabRenderInstance &)=delete
StaticPrefabRenderInstance(const StaticPrefabRenderInstance &)=delete
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25