载入中...
搜索中...
未找到
SceneComponent.h
浏览该文件的文档.
React-style scene component: implement build(), call setState / markDirty, then rebuild()....
Definition SceneComponent.h:15
virtual ~SceneComponent()=default
void mountAs(const std::string &hostName)
Definition SceneComponent.cpp:16
virtual void onMount(SceneHost *host)
Called once when the component is attached to a host.
Definition SceneComponent.h:22
bool updateIfDirty()
If dirty, rebuild and clear flag. Returns true if rebuilt.
Definition SceneComponent.cpp:32
virtual NodeDesc build()=0
void setState()
Subclasses call after mutating local state that affects build().
Definition SceneComponent.h:39
void rebuild(bool forceFull=false)
Rebuild tree onto host (reconcile by key when possible).
Definition SceneComponent.cpp:23
ECS mount point for one scene graph (full scene or nested subtree root). Isomorphic to eve::ui::UIHos...
Definition SceneHost.h:80
Definition ScenePicking.cpp:22
Declarative scene-node description (build once / on dirty → flatten into SceneHost::Tree)....
Definition NodeDesc.h:15