|
Krita Source Code Documentation
|
#include <kis_opengl_shader_loader.h>
Inheritance diagram for KisShaderProgram:Public Member Functions | |
| int | location (Uniform uniform) |
Static Public Attributes | |
| static std::map< Uniform, const char * > | names |
Private Attributes | |
| std::map< Uniform, int > | locationMap |
A wrapper class over Qt's QOpenGLShaderProgram to provide access to uniform locations without having to store them as constants next to the shader.
Definition at line 30 of file kis_opengl_shader_loader.h.
|
inline |
Stores uniform location in cache if it is called for the first time and retrieves the location from the map on subsequent calls.
Definition at line 42 of file kis_opengl_shader_loader.h.
References location(), locationMap, and names.
|
private |
Definition at line 53 of file kis_opengl_shader_loader.h.
|
static |
Stores the mapping of uniform enums to actual shader uniform names. The actual shader names are necessary for calls to uniformLocation.
Definition at line 23 of file kis_opengl_shader_loader.h.