|
Katana Plug-in APIs 0.1
|
Caches a map of shader names and attributes for quick access by Renderer Info Plug-ins. More...
#include <ShaderInfoCache.h>
Public Member Functions | |
| bool | isEmpty () const |
| void | flush () |
| void | addShaderInfo (const std::string &shaderName, const TShaderInfoType &shaderInfo) |
| const TShaderInfoType & | getShaderInfo (const std::string &shaderName) const |
| Iterator | begin () const |
| Iterator | end () const |
| void | setNullValue (const TShaderInfoType &nullValue) |
Caches a map of shader names and attributes for quick access by Renderer Info Plug-ins.
| void Foundry::Katana::RendererInfo::ShaderInfoCache< TShaderInfoType >::addShaderInfo | ( | const std::string & | shaderName, |
| const TShaderInfoType & | shaderInfo | ||
| ) |
Adds information about a single shader to the cache.
| shaderName | A string representing the unique name of the shader. |
| shaderInfo | A group attribute holding information pertaining to the shader. |
| ShaderInfoCache< TShaderInfoType >::Iterator Foundry::Katana::RendererInfo::ShaderInfoCache< TShaderInfoType >::begin | ( | ) | const |
Gets a const iterator to the first Shader's information stored in the cache.
| ShaderInfoCache< TShaderInfoType >::Iterator Foundry::Katana::RendererInfo::ShaderInfoCache< TShaderInfoType >::end | ( | ) | const |
Gets a const iterator to the end of the cache.
| void Foundry::Katana::RendererInfo::ShaderInfoCache< TShaderInfoType >::flush | ( | ) |
Flush the cache, removing all data from it.
| const TShaderInfoType & Foundry::Katana::RendererInfo::ShaderInfoCache< TShaderInfoType >::getShaderInfo | ( | const std::string & | shaderName | ) | const |
Allows access to information about a shader.
| shaderName | Unique name of the shader to retreive information for. |
| bool Foundry::Katana::RendererInfo::ShaderInfoCache< TShaderInfoType >::isEmpty | ( | ) | const |
Queries whether the cache is empty.
| void Foundry::Katana::RendererInfo::ShaderInfoCache< TShaderInfoType >::setNullValue | ( | const TShaderInfoType & | nullValue | ) |
Sets the null value, which is returned if a cache item is empty or unavailable.
| nullValue | The null value. |
1.7.3