Manages the shaders recorded. More...
Static Public Attributes | |
static const nkMemory::StringView | DEFAULT_EMPTY_SHADER = "NILKINS_EMPTY_SHADER" |
Default (Built-in) empty shader name. | |
static const nkMemory::StringView | DEFAULT_POSITION_SHADER = "NILKINS_POSITION_SHADER" |
Default (Built-in) position shader name. | |
static const nkMemory::StringView | DEFAULT_UV_SHADER = "NILKINS_UV_SHADER" |
Default (Built-in) UV shader name. | |
static const nkMemory::StringView | DEFAULT_NORMAL_SHADER = "NILKINS_NORMAL_SHADER" |
Default (Built-in) normal shader name. | |
static const nkMemory::StringView | DEFAULT_UV_NORMAL_SHADER = "NILKINS_UV_NORMAL_SHADER" |
Default (Built-in) normal + UV shader name. | |
Additional Inherited Members | |
Public Member Functions inherited from nkGraphics::Manager< Shader > | |
Shader * | createOrRetrieve (nkMemory::StringView name) |
Shader * | record (nkMemory::StringView name, nkMemory::UniquePtr< Shader > resource) |
Shader * | get (nkMemory::StringView name) const |
Shader * | getByIndex (unsigned int index) const |
void | rename (nkMemory::StringView currentName, nkMemory::StringView newName) |
void | erase (nkMemory::StringView name) |
nkMemory::UniquePtr< Shader > | relinquish (nkMemory::StringView name) |
Manages the shaders recorded.
Shader creation / deletion can go through this class, allowing it to act as a repository of resources which lifetime will get managed as needed. Like any Manager, it is always owning the memory it owns, unless it passes back the ownership explicitly.