3#include "../IEffects.h"
13 bool exists(FileType type,
const StringView & fileName)
override;
14 bool writeBinaryFile(FileType type,
const StringView & fileName,
const void * content,
size_t contentSize)
override;
15 bool openBinaryFile(FileType type,
const StringView & fileName, std::vector<uint8_t>& content)
override;
17 void pushSearchPaths()
override;
18 void addSearchPath(
const StringView & path)
override;
19 void popSearchPaths()
override;
22 std::vector<std::string> searchPaths = {
26 "",
"../Data/",
"../Data/Shaders/"
29 std::vector<std::string> pushedSearchPaths;
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.
bool openFile(const StringView &fileName, std::string &content) override
Callback method used to open files.
bool resolveFile(const StringView &source, const StringView &fileName, std::string &content) override
Callback method used to resolve include statements in shader code and get the contents to include.