Cogs.Core
Extensions
TerrainProvider
Source
ColorRasterSource.h
1
#pragma once
2
#include "BaseRasterSource.h"
3
4
#include "Foundation/Collections/SmallVector.h"
5
6
#include <glm/glm.hpp>
7
8
namespace
Cogs::Core::TerrainProvider {
9
10
11
struct
ColorConfig
:
BaseConfig
12
{
13
virtual
~ColorConfig
() {}
14
Collections::SmallVector<glm::vec4, 8>
colors;
15
};
16
17
18
class
ColorRasterSource
:
public
BaseRasterSource
19
{
20
public
:
21
ColorRasterSource
(
Context
* context) :
BaseRasterSource
(context) {}
22
~ColorRasterSource
();
23
24
bool
init(
const
ColorConfig
& conf, std::unique_ptr<ICache>&& icache);
25
void
getConfig(
ColorConfig
& conf)
const
;
26
27
protected
:
28
void
requestTile(
Request
* req)
final
;
29
30
Collections::SmallVector<glm::vec4, 8>
colors;
31
};
32
33
}
Cogs::Collections::SmallVector
Definition:
SmallVector.h:431
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::TerrainProvider::BaseRasterSource
Definition:
BaseRasterSource.h:94
Cogs::Core::TerrainProvider::ColorRasterSource
Definition:
ColorRasterSource.h:19
Cogs::Core::TerrainProvider::BaseConfig
Definition:
BaseRasterSource.h:46
Cogs::Core::TerrainProvider::ColorConfig
Definition:
ColorRasterSource.h:12
Cogs::Core::TerrainProvider::Request
Definition:
BaseRasterSource.h:72
Generated by
1.9.6