|
Monad Engine da02fba2
> Undercity Codex_
|
Wrapper around a linked OpenGL GLSL program with uniform caching. More...
Include dependency graph for ShaderProgram.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | mnd::ShaderProgram |
| Linked GLSL program with cached uniform locations. More... | |
Namespaces | |
| namespace | mnd |
Wrapper around a linked OpenGL GLSL program with uniform caching.
ShaderProgram objects are created by GraphicsAPI::CreateShaderProgram() from GLSL source strings (loaded from .vert / .frag files at runtime). Once built, they are owned by shared_ptr and shared by Material instances.
Uniform locations are cached after the first lookup to avoid repeated glGetUniformLocation calls, which are expensive if issued every frame.
Definition in file ShaderProgram.h.