Create a shader of the specified type.
Destroy the OpenGL Shader and reset the id back to 0.
Try to compile, and throw if it didn't succeed.
Check if the Shader is succesfully compiled.
Create a shader of the specified type.
Destroy the OpenGL Shader and reset the id back to 0.
Load the source code for the shader.
The log of errors for when compilation fails.
Check if this Shader is already created in OpenGL.
Try to compile the Shader, check compiled() to see if it succeeded.
The type of this shader.
Check if this Shader is already created in OpenGL.
Ths id of this Shader, or 0 if it is not yet created in OpenGL.
Create, load, and compile a shader directly from a file.
Create, load, and compile a shader directly from source code.
An OpenGL shader.
This is a wrapper around a GLuint created by glCreateShader(type).