15 enum class Type : uint8_t {
23 Shader(
const char* source,
Type,
const char* gles20Source =
nullptr);
Linked vertex and fragment shaders.
Fragment or vertex GLSL shader.
Shader(const char *source, Type, const char *gles20Source=nullptr)
Creates a vertex or fragment shader by compiling it.
Type
Type of a Shader. To link a ShaderProgram, one shader of each type is needed.
Shader(const std::istream &source, Type)
This is an overloaded member function, provided for convenience. It differs from the above function o...