Cogs.Core
OGC3DTilesAssetsParser.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 OGC3DTilesAssetsParser {
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 TilesAsset {
18 int id = -1;
19 std::string type;
20 std::string url;
21 std::string bearerToken;
22 };
23
24 typedef std::function<void(OGC3DTilesAssetsParser::TilesAsset* tilesAsset)> FetchCallback;
25 Cogs::Core::DataFetcherManager::FetchId fetch(Context* context, const std::string& baseURL, const std::string& accessToken, int assetId, FetchCallback cb);
26 std::string getAssetHostname(const OGC3DTilesAssetsParser::TilesAsset* asset);
27 };
28};
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....