Cogs.Core
Extensions
Gui
Source
GuiRenderSystem.cpp
1
#include "GuiRenderSystem.h"
2
3
#include "GuiComponent.h"
4
5
void
Cogs::Core::GuiRenderSystem::update
(
Context
*
/*context*/
)
6
{
7
for
(
auto
& guiRenderComponent :
pool
) {
8
if
(!guiRenderComponent.guiComponent) {
9
guiRenderComponent.guiComponent = guiRenderComponent.getComponentHandle<
GuiComponent
>();
10
}
11
}
12
}
Cogs::Core::ComponentSystemBase::update
void update()
Updates the system state to that of the current frame.
Definition:
ComponentSystem.h:65
Cogs::Core::ComponentSystem< GuiRenderComponent >::pool
ComponentPool< GuiRenderComponent > pool
Pool of components managed by the system.
Definition:
ComponentSystem.h:235
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::GuiComponent
Definition:
GuiComponent.h:25
Generated by
1.9.6