Specifies drawing behaviours at the two programmable stages in the OpenGL ES 2.0/WebGL 1.0 pipeline (the vertex shader stage and fragment shader stage)
More...
|
std::optional< active_attribute_info > | tryGetActiveAttribute (const std::string &aAttributeName) const |
| returns a nonnull optional to an attribute info if one with the given name exists
|
|
bool | try_set_uniform (const std::string &aName, const GLfloat aValue) const |
| assign a float1 uniform from a float
|
|
bool | try_set_uniform (const std::string &aName, const graphics_vector2_type &aValue) const |
| assign a float2 uniform from a 2 component vector
|
|
bool | try_set_uniform (const std::string &aName, const graphics_vector3_type &aValue) const |
| assign a float3 uniform from a 3 component vector
|
|
bool | try_set_uniform (const std::string &aName, const graphics_vector4_type &aValue) const |
| assign a float4 uniform from a 4 component vector
|
|
bool | try_set_uniform (const std::string &aName, const std::vector< GLfloat > &avalue) const |
| assign a float uniform array from an array of floats
|
|
bool | try_set_uniform (const std::string &aName, const std::vector< graphics_vector2_type > &avalue) const |
| assign a float2 uniform array from an array of float2s
|
|
bool | try_set_uniform (const std::string &aName, const std::vector< graphics_vector3_type > &avalue) const |
| assign a value to a float3 uniform array from a vector of float3s
|
|
bool | try_set_uniform (const std::string &aName, const std::vector< graphics_vector4_type > &avalue) const |
| assign a value to a float4 uniform array from a vector of float4s
|
|
bool | try_set_uniform (const std::string &aName, const GLint aValue) const |
| assign a value to a integer uniform
|
|
bool | try_set_uniform (const std::string aName, const integer2_uniform_type &aValue) const |
| assign a value to a integer2 uniform
|
|
bool | try_set_uniform (const std::string aName, const integer3_uniform_type &aValue) const |
| assign a value to a integer3 uniform
|
|
bool | try_set_uniform (const std::string aName, const integer4_uniform_type &aValue) const |
| assign a value to a integer4 uniform
|
|
bool | try_set_uniform (const std::string &aName, const std::vector< GLint > &aValue) const |
| assign a value to a integer uniform array
|
|
bool | try_set_uniform (const std::string &aName, const std::vector< integer2_uniform_type > &aValue) const |
| assign a value to a integer2 uniform array
|
|
bool | try_set_uniform (const std::string &aName, const std::vector< integer3_uniform_type > &aValue) const |
| assign a value to a integer3 uniform array
|
|
bool | try_set_uniform (const std::string &aName, const std::vector< integer4_uniform_type > &aValue) const |
| assign a value to a integer4 uniform array
|
|
bool | try_set_uniform (const std::string &aName, const graphics_mat4x4_type &avalue) const |
| assign a value to a bool uniform More...
|
|
bool | try_set_uniform (const std::string &aName, const std::vector< graphics_mat4x4_type > &avalue) const |
| assign a mat4x4 uniform array from a vector of mat4x4s
|
|
bool | try_set_uniform (const std::string &aName, const gdk::webgl1es2_texture &aTexture) const |
| bind a texture to the context then assign it to a texture uniform
|
|
void | useProgram () const |
| bind an array of textures to the context then assign them to texture uniforms More...
|
|
bool | operator== (const webgl1es2_shader_program &) const |
| equality semantics
|
|
bool | operator!= (const webgl1es2_shader_program &) const |
| equality semantics
|
|
| webgl1es2_shader_program (webgl1es2_shader_program &&)=default |
| move semantics
|
|
webgl1es2_shader_program & | operator= (webgl1es2_shader_program &&)=default |
| move semantics
|
|
| webgl1es2_shader_program (std::string aVertexSource, std::string aFragmentSource) |
| constructs a shader program with glsl source file contents for a vertex shader and a fragment shader
|
|
Specifies drawing behaviours at the two programmable stages in the OpenGL ES 2.0/WebGL 1.0 pipeline (the vertex shader stage and fragment shader stage)