Represents a 'shader' OpenGL object.
A shader is *part* of a program ought to be executed by the GPU. This class serves as a way to compile and use those program parts.
The "whole" Program is another OpenGL object constructed by assembling many Shader s.
Constructs a new shader of the specified type, using as source code the file pointed to by sourcePath
Types of shaders there can be
Get the type of the shader
See Implementation
Represents a 'shader' OpenGL object.
A shader is *part* of a program ought to be executed by the GPU. This class serves as a way to compile and use those program parts.
The "whole" Program is another OpenGL object constructed by assembling many Shader s.