|
| Shader (std::string identifier_) |
|
void | compile (const byte buffer[], std::size_t bufferLength) override |
|
void | use () const |
|
void | setUniform (std::string_view name, bool value) |
|
void | setUniform (std::string_view name, unsigned int value) |
|
void | setUniform (std::string_view name, int value) |
|
void | setUniform (std::string_view name, float value) |
|
void | setUniform (std::string_view name, glm::vec2b value) |
|
void | setUniform (std::string_view name, glm::vec2u value) |
|
void | setUniform (std::string_view name, glm::vec2i value) |
|
void | setUniform (std::string_view name, glm::vec2f value) |
|
void | setUniform (std::string_view name, glm::vec3b value) |
|
void | setUniform (std::string_view name, glm::vec3u value) |
|
void | setUniform (std::string_view name, glm::vec3i value) |
|
void | setUniform (std::string_view name, glm::vec3f value) |
|
void | setUniform (std::string_view name, glm::vec4b value) |
|
void | setUniform (std::string_view name, glm::vec4u value) |
|
void | setUniform (std::string_view name, glm::vec4i value) |
|
void | setUniform (std::string_view name, glm::vec4f value) |
|
void | setUniform (std::string_view name, glm::mat4 value) |
|
bool | usesPVMatrices () const |
|
bool | usesModelMatrix () const |
|
bool | isLit () const |
|
template<typename Archive > |
void | serialize (Archive &ar) |
|
| Resource (std::string identifier_) |
|
std::string_view | getIdentifier () const |
|
|
static void | addPreprocessorSymbol (const std::string &name, const std::string &value) |
|
static void | setPreprocessorPrefix (const std::string &prefix) |
|
static void | setPreprocessorSuffix (const std::string &suffix) |
|
static void | addResourceProvider (IResourceProvider *provider) |
|
static IResourceProvider * | getLatestResourceProvider (const std::string &provider) |
|
static IResourceProvider * | getResourceProviderWithResource (const std::string &identifier) |
|
template<typename ResourceType , typename... Params> |
static SharedPointer< ResourceType > | getResource (const std::string &identifier, Params... params) |
|
template<typename ResourceType , typename... Params> |
static void | precacheResource (const std::string &identifier, Params... params) |
|
template<typename ResourceType > |
static SharedPointer< ResourceType > | getCachedResource (const std::string &identifier) |
|
template<typename ResourceType , typename... Params> |
static SharedPointer< ResourceType > | getUniqueResource (const std::string &identifier, Params... params) |
|
template<typename ResourceType , typename... Params> |
static SharedPointer< ResourceType > | getUniqueUncachedResource (const std::string &identifier, Params... params) |
| You might want to use this sparingly as it defeats the entire point of a cached, shared resource system.
|
|
template<typename ResourceType , typename... Params> |
static std::unique_ptr< ResourceType > | getUniqueUncachedPropertyResource (const std::string &identifier, const nlohmann::json &props, Params... params) |
| The only way to make a PropertiesResource without a provider is to make it unique, and not to cache it. More...
|
|
static std::pair< std::string, std::string > | splitResourceIdentifier (const std::string &identifier) |
|
static const std::vector< std::unique_ptr< IResourceProvider > > & | getResourceProviders (const std::string &providerName) |
|
static bool | hasResource (const std::string &identifier) |
|
static void | removeResource (const std::string &identifier) |
| If resource is present in the cache and has a reference count less than or equal to 2, mark it for removal.
|
|
static void | cleanup () |
| Delete all resources marked for removal.
|
|
static void | discardAll () |
| Deletes ALL resources and providers. Should only ever be called once, when the program closes.
|
|
template<typename ResourceType > |
static bool | registerDefaultResource (const std::string &identifier) |
|
template<typename ResourceType > |
static bool | hasDefaultResource () |
|
template<typename ResourceType > |
static SharedPointer< ResourceType > | getDefaultResource () |
|
static void | createDefaultResources () |
|
Definition at line 15 of file Shader.h.