Class for managing an OpenGL fragment shader. More...
#include <Shader_Program.hpp>
Public Member Functions | |
Fragment_Shader (const vector< string > &source_code) | |
Constructor for the Fragment_Shader class. | |
![]() | |
Shader ()=delete | |
Deleted default constructor. | |
~Shader () | |
Destructor for the Shader class. | |
GLuint | get_id () const |
Gets the shader ID. | |
string * | get_error () |
Gets the compilation error message. | |
bool | is_ok () const |
Checks if the shader is compiled successfully. | |
Additional Inherited Members | |
![]() | |
Shader (const vector< string > &source_code, GLenum type) | |
Constructor for the Shader class. | |
GLuint | compile_shader () |
Compiles the shader. | |
void | show_compilation_error () |
Displays compilation errors. | |
Class for managing an OpenGL fragment shader.
|
inline |
Constructor for the Fragment_Shader class.
source_code | Vector of fragment shader source code. |