Workspace 6.21.5
Public Member Functions | List of all members
WSGLShaderProgramManager Class Reference

#include <Rendering/OpenGL/Shaders/wsglshaderprogrammanager.h>

Public Member Functions

 WSGLShaderProgramManager ()
 
 ~WSGLShaderProgramManager ()
 
WSGLShaderProgramgetProgramInContext (const QGLContext &context)
 
WSGLShaderProgramgetProgramInCurrentContext ()
 

Constructor & Destructor Documentation

◆ WSGLShaderProgramManager()

◆ ~WSGLShaderProgramManager()

Member Function Documentation

◆ getProgramInContext()

WSGLShaderProgram & getProgramInContext ( const QGLContext &  context)
Parameters
contextThe context which will be used to search for the required shader program instance.
Returns
The shader program associated with the specified context. If no such shader program exists, a new one will be created and returned.

◆ getProgramInCurrentContext()

WSGLShaderProgram & getProgramInCurrentContext ( )
Returns
The shader program associated with the current context. If no such shader program exists, a new one will be created and returned.