|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
classe permettant d'accède a des shaders More...
#include <OGLShaderManager.h>
Public Types | |
| enum | ShaderId { SimpleShader } |
Public Member Functions | |
| QOpenGLShaderProgram * | getShaderProgram (ShaderId shaderId) |
Static Public Member Functions | |
| static OGLShaderManager * | instance (QOpenGLContext *context) |
Private Member Functions | |
| OGLShaderManager (QOpenGLContext *context) | |
| ~OGLShaderManager ()=default | |
| void | initializeShaders () |
Private Attributes | |
| QOpenGLShaderProgram | simpleShader |
Static Private Attributes | |
| static QMap< QOpenGLContextGroup *, OGLShaderManager * > | instances |
classe permettant d'accède a des shaders
Shader manager that supports resource sharing between OpenGL contexts.
Definition at line 41 of file OGLShaderManager.h.
| Enumerator | |
|---|---|
| SimpleShader | |
Definition at line 44 of file OGLShaderManager.h.
|
private |
Definition at line 46 of file OGLShaderManager.cpp.


|
privatedefault |
| QOpenGLShaderProgram * OGLShaderManager::getShaderProgram | ( | ShaderId | shaderId | ) |
Get a shader program by its identifier.
Definition at line 35 of file OGLShaderManager.cpp.

|
private |
|
static |
Get an instance of the shader manager that can be used with the provided context.
Definition at line 23 of file OGLShaderManager.cpp.


|
staticprivate |
Definition at line 72 of file OGLShaderManager.h.
|
private |
Definition at line 70 of file OGLShaderManager.h.