API Documentation
Static Public Attributes | List of all members
nkGraphics::ShaderManager Class Referencefinal

Manages the shaders recorded. More...

Inheritance diagram for nkGraphics::ShaderManager:
nkGraphics::Manager< Shader >

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 >
ShadercreateOrRetrieve (nkMemory::StringView name)
 
Shaderrecord (nkMemory::StringView name, nkMemory::UniquePtr< Shader > resource)
 
Shaderget (nkMemory::StringView name) const
 
ShadergetByIndex (unsigned int index) const
 
void rename (nkMemory::StringView currentName, nkMemory::StringView newName)
 
void erase (nkMemory::StringView name)
 
nkMemory::UniquePtr< Shaderrelinquish (nkMemory::StringView name)
 

Detailed Description

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.


The documentation for this class was generated from the following file: