Wrapper around an OpenGL fragment shader: a program executed on the GPU that computes the colors of pixels.
More...
#include <GLUtil.hh>
|
| Shader (GLenum type, std::string_view filename) |
| Instantiates a shader.
|
|
| Shader (GLenum type, std::string_view header, std::string_view filename) |
|
| ~Shader () |
|
Wrapper around an OpenGL fragment shader: a program executed on the GPU that computes the colors of pixels.
Definition at line 383 of file GLUtil.hh.
◆ FragmentShader() [1/2]
gl::FragmentShader::FragmentShader |
( |
std::string_view |
filename | ) |
|
|
inlineexplicit |
Instantiates a fragment shader.
- Parameters
-
filename | The GLSL source code for the shader. |
Definition at line 389 of file GLUtil.hh.
◆ FragmentShader() [2/2]
gl::FragmentShader::FragmentShader |
( |
std::string_view |
header, |
|
|
std::string_view |
filename |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: