Cogs.Core
Source
Systems
Core
InstancedModelSystem.h
1
#pragma once
2
3
#include "Systems/ComponentSystem.h"
4
5
#include "Components/Core/InstancedModelComponent.h"
6
7
namespace
Cogs::Core
8
{
9
struct
InstancedModelData
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
}
Cogs::Core::ComponentSystemBase::context
Context * context
Pointer to the Context instance the system lives in.
Definition:
ComponentSystem.h:136
Cogs::Core::ComponentSystemBase::update
void update()
Updates the system state to that of the current frame.
Definition:
ComponentSystem.h:65
Cogs::Core::ComponentSystemWithDataPools
Component system template with multiple parallel structures per component stored in separate pools si...
Definition:
ComponentSystem.h:252
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::InstancedModelSystem
Definition:
InstancedModelSystem.h:15
Cogs::Memory::Allocator
Base allocator implementation.
Definition:
Allocator.h:30
Cogs::Core
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Definition:
ComponentFunctions.h:10
Cogs::SizeType
ComponentIndex SizeType
Type used to track the size of pools.
Definition:
Component.h:19
Cogs::Core::InstancedModelData
Definition:
InstancedModelSystem.h:10
Generated by
1.9.6