2#include "Bridge/Bridge.h"
3#include "Bridge/FieldFunctions.h"
4#include "../../Terrain/Source/CogsTerrainBase.h"
5#include "Utilities/Strings.h"
10 #ifdef COGSCORE_TERRAINPROVIDER_BUILD
11 #define COGSCORE_TERRAINPROVIDER_API __declspec(dllexport)
13 #define COGSCORE_TERRAINPROVIDER_API __declspec(dllimport)
16 #define COGSCORE_TERRAINPROVIDER_API
23namespace Cogs::Core::TerrainProvider
33 FailedToOpenDiskCache,
34 FailedToCreateDiskCache,
43 virtual ErrorCode getErrorCode()
const = 0;
45 uint64_t id()
const {
return uint64_t(
this); }
61 MimeType parseMimeType(
size_t textHash);
72 unsigned minLevel = 0u;
73 unsigned maxLevel = ~0u;
74 std::vector<std::pair<StringRef, StringRef>> additionalArgs;
77 struct RasterSourceConfig
88 unsigned numThreads = 4;
89 StringRef cacheKey = NoString;
92 std::vector<Layer> layers;
93 StringRef name = NoString;
94 float noData = std::numeric_limits<float>::quiet_NaN();
95 float floatValue = 0.f;
96 TextureFormat textureFormat = TextureFormat::Unknown;
97 MimeType mimeType = MimeType::None;
98 bool isElevation =
true;
99 bool rowFirst =
false;
100 bool showErrorTile =
false;
104 StringRef baseUrl = NoString;
105 StringRef username = NoString;
106 StringRef password = NoString;
112 WMSVersion version = WMSVersion::v1_1_0;
113 std::vector<StringRef> layers;
114 std::vector<StringRef> styles;
117 StringRef layer = NoString;
122 class COGSCORE_TERRAINPROVIDER_API IRasterSource;
124 COGSCORE_TERRAINPROVIDER_API IRasterSource* open(
Cogs::Core::Context* context,
const char* path);
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Provides a weakly referenced view over the contents of a string.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
@ CoordSys
Simple coordinate system where X axis is red, Y axis is green and Z axis is blue.