Cogs.Core
FloatRasterSource.h
1#pragma once
2#include "BaseRasterSource.h"
3
4namespace Cogs::Core::TerrainProvider {
5
6
8 {
9 virtual ~FloatConfig() {}
10 float value = 0.f;
11 };
12
13
15 {
16 public:
17 FloatRasterSource(Context* context) : BaseRasterSource(context) {}
19
20 bool init(const FloatConfig& conf, std::unique_ptr<ICache>&& icache);
21 void getConfig(FloatConfig& conf) const;
22
23 protected:
24 void requestTile(Request* req) final;
25
26 float value = 0.f;
27
28 };
29
30}
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83