Cogs.Core
Extensions
HeightMap
Source
HeightMapSystem.h
1
#pragma once
2
3
#include "Resources/Resources.h"
4
#include "Systems/ComponentSystem.h"
5
#include "HeightMapComponent.h"
6
7
#include "Foundation/ComponentModel/ComponentDataPool.h"
8
9
namespace
Cogs
10
{
11
namespace
Core
12
{
13
class
Context;
14
15
struct
HeightMapData
16
{
17
int
layoutI
;
18
int
layoutJ
;
19
};
20
21
class
HeightMapSystem
:
public
ComponentSystemWithDataPool
<HeightMapComponent, HeightMapData>
22
{
23
public
:
24
HeightMapSystem
(
Memory::Allocator
* allocator,
SizeType
capacity) :
ComponentSystemWithDataPool
(allocator, capacity) {}
25
26
void
update
(
Context
*
context
);
27
};
28
}
29
}
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::ComponentSystemWithDataPool
Component system with parallel data per component stored in a pool similar to how the components them...
Definition:
ComponentSystem.h:365
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::HeightMapSystem
Definition:
HeightMapSystem.h:22
Cogs::Memory::Allocator
Base allocator implementation.
Definition:
Allocator.h:30
Cogs
Contains all Cogs related functionality.
Definition:
FieldSetter.h:23
Cogs::SizeType
ComponentIndex SizeType
Type used to track the size of pools.
Definition:
Component.h:19
Cogs::Core::HeightMapData
Definition:
HeightMapSystem.h:16
Cogs::Core::HeightMapData::layoutI
int layoutI
Layout used when mesh indices was generated.
Definition:
HeightMapSystem.h:17
Cogs::Core::HeightMapData::layoutJ
int layoutJ
Layout used when mesh indices was generated.
Definition:
HeightMapSystem.h:18
Generated by
1.9.6