5#include "Foundation/Platform/FileContents.h"
11 namespace DataFetcherManager {
13 typedef size_t FetchId;
14 constexpr FetchId NoFetchId = FetchId(0);
21 COGSCORE_DLL_API
void addDataFetcher(DataFetcherBase* dataFetcher,
int priority);
26 COGSCORE_DLL_API
void removeDataFetcher(DataFetcherBase* dataFetcher);
31 COGSCORE_DLL_API FetchId fetchAsync(Context* context,
const std::string& fileName,
const FileContents::Callback& callback, uint64_t offset = 0, uint64_t size = 0,
bool cancellable=
false,
FileContentsHints hints = FileContentsHints::None);
33 COGSCORE_DLL_API
void cancelAsyncFetch(Context* context, FetchId
id);
38 COGSCORE_DLL_API FileContents::Ptr fetchSync(
const std::string& fileName, uint64_t offset = 0, uint64_t size = 0,
FileContentsHints hints = FileContentsHints::None);
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....