Wrapper around an OpenGL vertex shader: a program executed on the GPU that computes per-vertex stuff.
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 vertex shader: a program executed on the GPU that computes per-vertex stuff.
Definition at line 340 of file GLUtil.hh.
◆ VertexShader() [1/2]
gl::VertexShader::VertexShader |
( |
std::string_view |
filename | ) |
|
|
inlineexplicit |
Instantiates a vertex shader.
- Parameters
-
filename | The GLSL source code for the shader. |
Definition at line 346 of file GLUtil.hh.
◆ VertexShader() [2/2]
gl::VertexShader::VertexShader |
( |
std::string_view |
header, |
|
|
std::string_view |
filename |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: