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