8#ifndef META_OCEAN_PLATFORM_GL_SHADER_PROGRAM_H
9#define META_OCEAN_PLATFORM_GL_SHADER_PROGRAM_H
53 inline GLuint
id()
const;
63 bool createProgram(
const std::string& vertexCode,
const std::string& fragmentCode, std::string* errorMessage =
nullptr);
77 bool setUniform(
const std::string& uniformName,
const int value);
85 bool setUniform(
const std::string& uniformName,
const float value);
129 explicit inline operator bool()
const;
141 bool createShader(
const std::string& code, GLuint& shaderId,
const GLenum shaderType, std::string* errorMessage =
nullptr);
172inline ShaderProgram::operator bool()
const
ContextAssociated()=default
Creates a new object without associated context.
Context & context()
Returns the associated context of this object.
Definition ContextAssociated.h:87
This class encapsulates an OpenGL context.
Definition platform/gl/Context.h:29
VectorT3< float > VectorF3
Definition of a 3D vector with float values.
Definition Vector3.h:43
VectorT2< float > VectorF2
Definition of a 2D vector with float values.
Definition Vector2.h:42
SquareMatrixT4< float > SquareMatrixF4
Instantiation of the SquareMatrixT4 template class using a double precision float data type.
Definition SquareMatrix4.h:53
VectorT4< float > VectorF4
Definition of a 4D vector with float values.
Definition Vector4.h:43
The namespace covering the entire Ocean framework.
Definition Accessor.h:15