Manages compilation and usage of GPU shader programs.
More...
#include <Shader.h>
|
| Shader (const std::string &vertexSrc, const std::string &fragmentSrc) |
|
void | Bind () const |
|
void | Unbind () const |
|
void | UploadUniformMat4 (const std::string &name, const glm::mat4 &matrix) const |
|
Manages compilation and usage of GPU shader programs.
Handles the creation, compilation, and usage of shader programs for rendering. Supports vertex and fragment shaders with potential for expansion to other types.
Features:
- Shader compilation and linking
- Error checking and reporting
- Program binding and unbinding
- Resource cleanup
- Note
- Currently supports GLSL shaders through OpenGL
The documentation for this class was generated from the following files:
- src/Arnold/Graphics/Renderer/Shader.h
- src/Arnold/Graphics/Renderer/Shader.cpp