Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
Element.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Component.h
"
4
5
class
Element
6
{
7
public
:
8
std::string
profileName
=
"Element"
;
9
int
x
,
y
;
10
std::vector<Component>
components
;
11
12
void
Update
()
13
{
14
Rendering::ProfileCpuScope11
timing(
profileName
.c_str());
15
for
(UINT h = 0; h <
components
.size(); h++)
16
{
17
components
.at(h).Update();
18
}
19
}
20
21
void
Render
()
22
{
23
Rendering::ProfileCpuScope11
timing(
profileName
.c_str());
24
for
(UINT h = 0; h <
components
.size(); h++)
25
{
26
components
.at(h).Render();
27
}
28
}
29
};
Component.h
Element
Definition
Element.h:6
Element::y
int y
Definition
Element.h:9
Element::components
std::vector< Component > components
Definition
Element.h:10
Element::x
int x
Definition
Element.h:9
Element::profileName
std::string profileName
Definition
Element.h:8
Element::Update
void Update()
Definition
Element.h:12
Element::Render
void Render()
Definition
Element.h:21
Rendering::ProfileCpuScope11
Definition
FrameProfiler11.h:697
Displays
Element.h
Generated on
for Rise by
1.18.0