Cogs.Core
InstancedModelSystem.h
1#pragma once
2
3#include "Systems/ComponentSystem.h"
4
5#include "Components/Core/InstancedModelComponent.h"
6
7namespace Cogs::Core
8{
10 {
11 bool isLoaded = false;
12 };
13
14 class InstancedModelSystem : public ComponentSystemWithDataPools<InstancedModelComponent, InstancedModelData>
15 {
16 public:
17 InstancedModelSystem(Memory::Allocator * allocator, SizeType capacity) : ComponentSystemWithDataPools(allocator, capacity) {}
18
19 void update(Context * context) override;
20 };
21}
Context * context
Pointer to the Context instance the system lives in.
void update()
Updates the system state to that of the current frame.
Component system template with multiple parallel structures per component stored in separate pools si...
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
Base allocator implementation.
Definition: Allocator.h:30
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
ComponentIndex SizeType
Type used to track the size of pools.
Definition: Component.h:19