Cogs.Core
NullRasterSource.h
1#pragma once
2#include "BaseRasterSource.h"
3
4namespace Cogs::Core::TerrainProvider {
5
7 {
8 public:
9 NullRasterSource(Context* context) : BaseRasterSource(context) {}
11
12 bool init(const BaseConfig& conf, std::unique_ptr<ICache>&& icache) { return BaseRasterSource::init(conf, std::move(icache)); }
13 void getConfig(BaseConfig& conf) const { BaseRasterSource::getConfig(conf); }
14
15 protected:
16 void requestTile(Request* req) final { addTileFailure(req, StringView()); }
17 };
18
19}
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24