ScummVM API documentation
OpenGL::ShaderManager Class Reference
Inheritance diagram for OpenGL::ShaderManager:
Common::Singleton< ShaderManager > Common::NonCopyable

Public Types

enum  ShaderUsage { kDefault = 0, kCLUT8LookUp, kMaxUsages }
 

Public Member Functions

void notifyDestroy ()
 
void notifyCreate ()
 
Shaderquery (ShaderUsage shader) const
 

Additional Inherited Members

- Static Public Member Functions inherited from Common::Singleton< ShaderManager >
static bool hasInstance ()
 
static ShaderManager & instance ()
 
static void destroy ()
 
- Protected Types inherited from Common::Singleton< ShaderManager >
typedef ShaderManager SingletonBaseType
 
- Static Protected Attributes inherited from Common::Singleton< ShaderManager >
static ShaderManager * _singleton
 

Member Enumeration Documentation

◆ ShaderUsage

Enumerator
kDefault 

Default shader implementing the GL fixed-function pipeline.

kCLUT8LookUp 

CLUT8 look up shader.

kMaxUsages 

Number of built-in shaders. Should not be used for query.

Member Function Documentation

◆ notifyDestroy()

void OpenGL::ShaderManager::notifyDestroy ( )

Notify shader manager about context destruction.

◆ notifyCreate()

void OpenGL::ShaderManager::notifyCreate ( )

Notify shader manager about context creation.

◆ query()

Shader* OpenGL::ShaderManager::query ( ShaderUsage  shader) const

Query a built-in shader. Shader returned must be destroyed by caller.


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