sculpto
scene_hierarchy_window.h
Go to the documentation of this file.
1/*!****************************************************************//*!*
2 * \file editor_scene_hierarchy_window.h
3 * \brief Scene hierarchy GUI window class definition module.
4 *
5 * \author Sabitov Kirill
6 * \date 09 July 2022
7 *********************************************************************/
8
9#pragma once
10
11#include "core/scene/scene.h"
13
14namespace scl
15{
18 {
19 private:
20 scene *Scene {};
21 std::function<void(scene_object)> OnObjectSelect {};
22 scene_object SelectedObject {};
23
24 char ObjectCreationNameTextBuffer[128] {};
25
26 public:
27 /*!*
28 * Scene hierarchy window default constructor.
29 *
30 * \param Scene - scene to display hierarchy tree of.
31 * \param SelectedSceneObject - pointer to variable to set selecting itmes in.
32 */
33 scene_hierarchy_window(scene *Scene, const std::function<void(scene_object)> &OnObjectSelect);
34
35 /*!*
36 * Draw scene hierarchy window function.
37 *
38 * \param None.
39 * \return None.
40 */
41 void Draw();
42 };
43}
scene_hierarchy_window(scene *Scene, const std::function< void(scene_object)> &OnObjectSelect)
Definition: base.h:33
Scene class defintion module.
Application scene object class defintion module.