Singleton responisble for loading and retrieving shaders. More...
#include <ShaderManager.h>
Public Types | |
enum class | DefaultShaders { TEXTUREFLAT , TEXTURELIGHT , COLORCONST , SPRITE } |
Collection of Preloaded Shaders. More... | |
Static Public Member Functions | |
static void | LoadShader (const MapKey &key, const std::string &path) |
Load Shader with KEY and FILE PATH. | |
static ShaderObject * | GetShader (const MapKey &key) |
Returns shader object pointer with given KEY. | |
static ShaderObject * | GetShader (DefaultShaders key) |
Returns shader object pointer from DEFAULTSHADERS. | |
Private Types | |
using | MapKey = std::string |
KEYS stored as STRINGS. | |
Singleton responisble for loading and retrieving shaders.
|
private |
KEYS stored as STRINGS.
|
strong |
|
static |
Returns shader object pointer with given KEY.
A function that returns a shader object pointer based on a user generated key. Checks if key already exists.
key |
|
static |
Returns shader object pointer from DEFAULTSHADERS.
A function that returns a shader object pointer based on the enum class DefaultShaders.
key |
|
static |
Load Shader with KEY and FILE PATH.
A function callable in SlippersResources/LoadResources that takes in a String as a key for retrieval, as well as a file path for a shader existing in Assets/Shaders. Checks for repeated key use.
key | |
path |