openMSX
|
Wrapper around an OpenGL shader: a program executed on the GPU. More...
#include <GLUtil.hh>
Public Member Functions | |
Shader (const Shader &)=delete | |
Shader (Shader &&)=delete | |
Shader & | operator= (const Shader &)=delete |
Shader & | operator= (Shader &&)=delete |
bool | isOK () const |
Returns true iff this shader is loaded and compiled without errors. | |
Protected Member Functions | |
Shader (GLenum type, std::string_view filename) | |
Instantiates a shader. | |
Shader (GLenum type, std::string_view header, std::string_view filename) | |
~Shader () | |
Friends | |
class | ShaderProgram |
Wrapper around an OpenGL shader: a program executed on the GPU.
This class is a base class for vertex and fragment shaders.
|
delete |
|
delete |
|
inlineprotected |
|
inlineprotected |
bool gl::Shader::isOK | ( | ) | const |
Returns true iff this shader is loaded and compiled without errors.
Definition at line 201 of file GLUtil.cc.
Referenced by gl::ShaderProgram::attach().
|
friend |