载入中...
搜索中...
未找到
CameraFactory.cpp
浏览该文件的文档.
1#include "common/Assert.h"
4
5namespace eve::graphics {
6
7Camera2D* Camera2D::createCamera(ecs::Table& table) {
8 Camera2D* c = Camera2D::create(table);
9 ASSERT(c != nullptr);
10 c->data()->entity = c;
11 c->data()->active = true;
12 ASSERT(c->data()->entity == c);
13 return c;
14}
15
16Camera3D* Camera3D::createCamera(ecs::Table& table) {
17 Camera3D* c = Camera3D::create(table);
18 ASSERT(c != nullptr);
19 c->data()->entity = c;
20 c->data()->active = true;
21 return c;
22}
23
24} // namespace eve::graphics
EVEngine assertion entry point, backed by zeroerr.
std::int32_t c
Declarative 2D camera (viewport center + zoom).
static Camera2D * createCamera(ecs::Table &table= *ecs::current())
Create an active camera in the current ECS table.
EVENGINE_API_BACKENDS public API.
static Camera3D * createCamera(ecs::Table &table= *ecs::current())
Create an active camera in the current ECS table.
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25