载入中...
搜索中...
未找到
ViewPreparation.h 文件参考
#include <cstdint>
#include <functional>
#include <glm/mat4x4.hpp>
#include <glm/vec3.hpp>
#include "common/Export.h"
#include "common/Result.h"

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::graphics
 卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局参数。 数据模型与渲染/交互逻辑见 CardTypes.h。
 
namespace  eve::graphics::detail
 

类型定义

using eve::graphics::ViewPreparation = std::function< Result< void >(Graphics &, const glm::mat4 &, const glm::vec3 &)>
 Prepare view-dependent resources before any forward target is opened. @thread Graphics thread only. Arguments are borrowed for the synchronous call. @reentrancy Must not register/remove preparers, recursively render a view, or leave a render pass open.
 

函数

Result< uint64_t > eve::graphics::addViewPreparation (ViewPreparation callback)
 Register a preparer for main and offscreen views; empty callbacks fail. @ownership Registry owns the callable until removal; captured objects must outlive registration.
 
void eve::graphics::removeViewPreparation (uint64_t token) noexcept
 Remove a registration; missing/zero tokens are harmless. @thread Graphics thread outside dispatch. Does not invoke the callback.
 
EVENGINE_API_BACKENDS Result< void > eve::graphics::detail::prepareViewResources (Graphics &graphics, const glm::mat4 &viewProjection, const glm::vec3 &eye)
 Dispatch preparers before opening the destination; no callbacks means success. @thread Graphics thread, non-reentrant. No locks are held while invoking callbacks. @lifetime Borrowed graphics and camera values are valid only through this call.