Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
OGLShaderManager Class Reference

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 OGLShaderManagerinstance (QOpenGLContext *context)
 

Private Member Functions

 OGLShaderManager (QOpenGLContext *context)
 
 ~OGLShaderManager ()=default
 
void initializeShaders ()
 

Private Attributes

QOpenGLShaderProgram simpleShader
 

Static Private Attributes

static QMap< QOpenGLContextGroup *, OGLShaderManager * > instances
 

Detailed Description

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.

Member Enumeration Documentation

◆ ShaderId

Enumerator
SimpleShader 

Definition at line 44 of file OGLShaderManager.h.

Constructor & Destructor Documentation

◆ OGLShaderManager()

OGLShaderManager::OGLShaderManager ( QOpenGLContext *  context)
private

Definition at line 46 of file OGLShaderManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~OGLShaderManager()

OGLShaderManager::~OGLShaderManager ( )
privatedefault

Member Function Documentation

◆ getShaderProgram()

QOpenGLShaderProgram * OGLShaderManager::getShaderProgram ( ShaderId  shaderId)

Get a shader program by its identifier.

Definition at line 35 of file OGLShaderManager.cpp.

Here is the caller graph for this function:

◆ initializeShaders()

void OGLShaderManager::initializeShaders ( )
private

Definition at line 51 of file OGLShaderManager.cpp.

Here is the caller graph for this function:

◆ instance()

OGLShaderManager * OGLShaderManager::instance ( QOpenGLContext *  context)
static

Get an instance of the shader manager that can be used with the provided context.

Definition at line 23 of file OGLShaderManager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ instances

QMap< QOpenGLContextGroup *, OGLShaderManager * > OGLShaderManager::instances
staticprivate

Definition at line 72 of file OGLShaderManager.h.

◆ simpleShader

QOpenGLShaderProgram OGLShaderManager::simpleShader
private

Definition at line 70 of file OGLShaderManager.h.


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