NDEVR
API Documentation
GLESShaderManager

Manages all shaders used with OpenGL and the NDEVR API. More...

Public Member Functions

 GLESShaderManager (const DynamicPointer< GLESGraphicsDevice > &device)
 Constructs a GLESShaderManager for the given device.
GLESShadercreateShader (const GLESShader::Definition &def)
 Creates and compiles a new shader from the given definition.
GLESShadershader (const GLESShader::Definition &def)
 Retrieves an existing shader matching the definition, or nullptr.
const Dictionary< uint04, GLESShader * > & shaders () const
 Returns the dictionary of all compiled shaders.

Detailed Description

Manages all shaders used with OpenGL and the NDEVR API.


Definition at line 278 of file GLESShader.h.

Constructor & Destructor Documentation

◆ GLESShaderManager()

GLESShaderManager::GLESShaderManager ( const DynamicPointer< GLESGraphicsDevice > & device)

Constructs a GLESShaderManager for the given device.

Parameters
[in]deviceThe OpenGL graphics device.

Member Function Documentation

◆ createShader()

GLESShader * GLESShaderManager::createShader ( const GLESShader::Definition & def)

Creates and compiles a new shader from the given definition.

Parameters
[in]defThe shader feature definition.
Returns
A pointer to the newly created GLESShader.

◆ shader()

GLESShader * GLESShaderManager::shader ( const GLESShader::Definition & def)

Retrieves an existing shader matching the definition, or nullptr.

Parameters
[in]defThe shader feature definition.
Returns
A pointer to the matching GLESShader, or nullptr.

◆ shaders()

const Dictionary< uint04, GLESShader * > & GLESShaderManager::shaders ( ) const
inline

Returns the dictionary of all compiled shaders.

Returns
A const reference to the shader dictionary.

Definition at line 286 of file GLESShader.h.


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