MQEngine
载入中...
搜索中...
未找到
SceneEntityViewer.h
浏览该文件的文档.
1//
2// Created by Administrator on 2025/8/25.
3//
4
5#ifndef SCENEENTITYVIEWER_H
6#define SCENEENTITYVIEWER_H
8
9namespace MQEngine {
10
12 public:
14 void renderGloabaEntityList(Scene* scene);
15 void renderTrunkEntityList(Scene* scene, std::string trunkName);
16 void renderSceneEntityList(Scene* scene);
17 void render();
18 void selectEntity(entt::entity entity, const std::string& trunkName = "", bool isGlobal = false);
19 private:
21
23 char m_newEntityName[256] = "entity";
24 std::string m_targetTrunkName;
25 bool m_createInGlobal = true;
26
27 bool m_showContextMenu = false;
29
31 void showCreateEntityDialog(const std::string& targetTrunk = "", bool isGlobal = true);
32 void createEntity(Scene* scene, const std::string& name, const std::string& trunkName = "", bool isGlobal = true);
33 void addStaticMeshComponent(entt::entity entity, const std::string& modelUuid, const std::string& meshName, bool isGlobal, const std::string& trunkName = "");
34 void addScriptComponent(entt::entity entity, const std::string& functionName, bool isGlobal, const std::string& trunkName = "");
35 void addDiffuseTextureComponent(entt::entity entity, const std::string& modelUuid, const std::string& texturePath, bool isGlobal, const std::string& trunkName = "");
36 };
37
38} // MQEngine
39
40#endif //SCENEENTITYVIEWER_H
A header file containing third party libraries and macros for platform
定义 DataManager.h:58
void selectEntity(entt::entity entity, const std::string &trunkName="", bool isGlobal=false)
定义 SceneEntityViewer.cpp:315
char m_newEntityName[256]
定义 SceneEntityViewer.h:23
void renderSceneEntityList(Scene *scene)
定义 SceneEntityViewer.cpp:252
bool m_showContextMenu
定义 SceneEntityViewer.h:27
void renderCreateEntityDialog(Scene *scene)
定义 SceneEntityViewer.cpp:25
void addDiffuseTextureComponent(entt::entity entity, const std::string &modelUuid, const std::string &texturePath, bool isGlobal, const std::string &trunkName="")
定义 SceneEntityViewer.cpp:371
void render()
定义 SceneEntityViewer.cpp:290
bool m_createInGlobal
定义 SceneEntityViewer.h:25
void createEntity(Scene *scene, const std::string &name, const std::string &trunkName="", bool isGlobal=true)
定义 SceneEntityViewer.cpp:74
void addScriptComponent(entt::entity entity, const std::string &functionName, bool isGlobal, const std::string &trunkName="")
定义 SceneEntityViewer.cpp:348
void showCreateEntityDialog(const std::string &targetTrunk="", bool isGlobal=true)
定义 SceneEntityViewer.cpp:17
void renderGloabaEntityList(Scene *scene)
定义 SceneEntityViewer.cpp:104
DataManager * m_dataManager
定义 SceneEntityViewer.h:20
void renderTrunkEntityList(Scene *scene, std::string trunkName)
定义 SceneEntityViewer.cpp:177
std::string m_targetTrunkName
定义 SceneEntityViewer.h:24
bool m_showCreateEntityDialog
定义 SceneEntityViewer.h:22
std::string m_contextMenuTarget
定义 SceneEntityViewer.h:28
SceneEntityViewer()
定义 SceneEntityViewer.cpp:13
void addStaticMeshComponent(entt::entity entity, const std::string &modelUuid, const std::string &meshName, bool isGlobal, const std::string &trunkName="")
定义 SceneEntityViewer.cpp:323
定义 Scene.h:22
定义 application.h:5