sculpto
Main Page
Namespaces
Classes
Files
File List
File Members
core
gui
windows
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
"
12
#include "
core/scene/scene_object.h
"
13
14
namespace
scl
15
{
17
class
scene_hierarchy_window
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
}
scl::scene_hierarchy_window
Definition:
scene_hierarchy_window.h:18
scl::scene_hierarchy_window::scene_hierarchy_window
scene_hierarchy_window(scene *Scene, const std::function< void(scene_object)> &OnObjectSelect)
Definition:
scene_hierarchy_window.cpp:17
scl::scene_hierarchy_window::Draw
void Draw()
Definition:
scene_hierarchy_window.cpp:20
scl::scene_object
Definition:
scene_object.h:19
scl::scene
Definition:
scene.h:27
scl
Definition:
base.h:33
scene.h
Scene class defintion module.
scene_object.h
Application scene object class defintion module.
Generated by
1.9.4