sculpto
Main Page
Namespaces
Classes
Files
File List
File Members
core
application
layer.h
Go to the documentation of this file.
1
/*!****************************************************************/
/*!*
2
* \file layer.h
3
* \brief Base abstract application layer class definition module.
4
* Layers are stored in stack.
5
* Updated one by one, ordered by time of pushing to stack.
6
*
7
* \author Sabitov Kirill
8
* \date 26 June 2022
9
*********************************************************************/
10
11
#pragma once
12
13
#include "
utilities/event/event.h
"
14
15
namespace
scl
16
{
18
class
layer
abstract
19
{
20
public
:
22
layer
() =
default
;
23
25
virtual
~layer
() {}
26
27
/*!*
28
* Layer initialisation virtual callback function.
29
*
30
* \param None.
31
* \return None.
32
*/
33
virtual
void
OnInit
() {}
34
35
/*!*
36
* Layer deinitialisation virtual callback function.
37
*
38
* \param None.
39
* \return None.
40
*/
41
virtual
void
OnClose
() {}
42
43
/*!*
44
* Layer update virtual callback function.
45
*
46
* \param None.
47
* \return None.
48
*/
49
virtual
void
OnUpdate
(
float
DeltaTime) {}
50
51
/*!*
52
* Layer GUI rendering virtual callback function.
53
*
54
* \param None.
55
* \return None.
56
*/
57
virtual
void
OnGuiRender
() {}
58
};
59
}
scl::abstract::OnUpdate
virtual void OnUpdate(float DeltaTime)
Definition:
layer.h:49
scl::abstract::layer
layer()=default
scl::abstract::OnInit
virtual void OnInit()
Definition:
layer.h:33
scl::abstract::~layer
virtual ~layer()
Definition:
layer.h:25
scl::abstract::OnClose
virtual void OnClose()
Definition:
layer.h:41
scl::abstract::OnGuiRender
virtual void OnGuiRender()
Definition:
layer.h:57
event.h
scl
Definition:
base.h:33
Generated by
1.9.4