Cogs.Core
OGC3DTilesAccessParser.h
1#pragma once
2
3#include <Context.h>
4
5#include <Resources/DataFetcherManager.h>
6
7#include <string>
8#include <functional>
9
10namespace Cogs::Core {
11 namespace OGC3DTilesAccessParser {
12 //
13 // See https://github.com/CesiumGS/3d-tiles/blob/main/specification/schema/README.md for
14 // documentation on the JSON schemas
15 //
16
17 struct TilesAccess {
18 std::string type;
19 std::string url;
20 std::string bearerToken;
21 std::string attributionsJSON; // FIXME: Do we need to properly deserialize this list of maps?
22 };
23
24 typedef std::function<void(OGC3DTilesAccessParser::TilesAccess* tilesAccess)> FetchCallback;
25 Cogs::Core::DataFetcherManager::FetchId fetch(Context* context, const std::string& baseURL, FetchCallback cb);
26 }
27}
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....