Module

WebGL.Raw.WebGL1.Uniforms

Package
purescript-webgl2-raw
Repository
chrismshelton/purescript-webgl2-raw

#getActiveUniform Source

getActiveUniform :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> GLuint -> Effect (Maybe WebGLActiveInfo)

Usage: getActiveUniform gl program index

WebGLActiveInfo?
getActiveUniform (WebGLProgram program, GLuint index);

Documentation: WebGL 1.0 spec, section 5.14.10

#getUniformGLboolean Source

getUniformGLboolean :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> WebGLUniformLocation -> Effect (Maybe GLboolean)

Usage: getUniformGLboolean gl program location

Use when:

  • uniform type is boolean
any getUniform (WebGLProgram program, WebGLUniformLocation location);

Documentation: WebGL 1.0 spec, section 5.14.10

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getUniformGLfloat Source

getUniformGLfloat :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> WebGLUniformLocation -> Effect (Maybe GLfloat)

Usage: getUniformGLfloat gl program location

Use when:

  • uniform type is float
any getUniform (WebGLProgram program, WebGLUniformLocation location);

Documentation: WebGL 1.0 spec, section 5.14.10

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getUniformGLint Source

getUniformGLint :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> WebGLUniformLocation -> Effect (Maybe GLint)

Usage: getUniformGLint gl program location

Use when:

  • uniform type is int
  • uniform type is sampler2D
  • uniform type is samplerCube
  • uniform type is any sampler type (WebGL2)
any getUniform (WebGLProgram program, WebGLUniformLocation location);

Documentation: WebGL 1.0 spec, section 5.14.10

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getUniformGLbooleanArray Source

getUniformGLbooleanArray :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> WebGLUniformLocation -> Effect (Maybe (Array GLboolean))

Usage: getUniformGLbooleanArray gl program location

Use when:

  • uniform type is bvec2
  • uniform type is bvec3
  • uniform type is bvec4
any getUniform (WebGLProgram program, WebGLUniformLocation location);

Documentation: WebGL 1.0 spec, section 5.14.10

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getUniformInt32Array Source

getUniformInt32Array :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> WebGLUniformLocation -> Effect (Maybe (ArrayView Int32))

Usage: getUniformInt32Array gl program location

Use when:

  • uniform type is ivec2
  • uniform type is ivec3
  • uniform type is ivec4
any getUniform (WebGLProgram program, WebGLUniformLocation location);

Documentation: WebGL 1.0 spec, section 5.14.10

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getUniformFloat32Array Source

getUniformFloat32Array :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> WebGLUniformLocation -> Effect (Maybe (ArrayView Float32))

Usage: getUniformFloat32Array gl program location

Use when:

  • uniform type is mat2
  • uniform type is mat3
  • uniform type is mat4
  • uniform type is vec2
  • uniform type is vec3
  • uniform type is vec4
  • uniform type is mat2x3 (WebGL2)
  • uniform type is mat2x4 (WebGL2)
  • uniform type is mat3x2 (WebGL2)
  • uniform type is mat3x4 (WebGL2)
  • uniform type is mat4x2 (WebGL2)
  • uniform type is mat4x3 (WebGL2)
any getUniform (WebGLProgram program, WebGLUniformLocation location);

Documentation: WebGL 1.0 spec, section 5.14.10

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getUniformLocation Source

getUniformLocation :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> String -> Effect (Maybe WebGLUniformLocation)

Usage: getUniformLocation gl program name

WebGLUniformLocation?
getUniformLocation (WebGLProgram program, DOMString name);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform1f Source

uniform1f :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLUniformLocation -> GLfloat -> Effect Unit

Usage: uniform1f gl location x

void uniform1f (WebGLUniformLocation? location, GLfloat x);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform2f Source

uniform2f :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLUniformLocation -> GLfloat -> GLfloat -> Effect Unit

Usage: uniform2f gl location x y

void uniform2f (WebGLUniformLocation? location, GLfloat x, GLfloat y);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform3f Source

uniform3f :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLUniformLocation -> GLfloat -> GLfloat -> GLfloat -> Effect Unit

Usage: uniform3f gl location x y z

void
uniform3f ( WebGLUniformLocation? location
          , GLfloat x
          , GLfloat y
          , GLfloat z
          );

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform4f Source

uniform4f :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLUniformLocation -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> Effect Unit

Usage: uniform4f gl location x y z w

void
uniform4f ( WebGLUniformLocation? location
          , GLfloat x
          , GLfloat y
          , GLfloat z
          , GLfloat w
          );

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform1i Source

uniform1i :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLUniformLocation -> GLint -> Effect Unit

Usage: uniform1i gl location x

void uniform1i (WebGLUniformLocation? location, GLint x);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform2i Source

uniform2i :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLUniformLocation -> GLint -> GLint -> Effect Unit

Usage: uniform2i gl location x y

void uniform2i (WebGLUniformLocation? location, GLint x, GLint y);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform3i Source

uniform3i :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLUniformLocation -> GLint -> GLint -> GLint -> Effect Unit

Usage: uniform3i gl location x y z

void
uniform3i (WebGLUniformLocation? location, GLint x, GLint y, GLint z);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform4i Source

uniform4i :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLUniformLocation -> GLint -> GLint -> GLint -> GLint -> Effect Unit

Usage: uniform4i gl location x y z w

void
uniform4i ( WebGLUniformLocation? location
          , GLint x
          , GLint y
          , GLint z
          , GLint w
          );

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform1fv Source

uniform1fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> f -> Effect Unit

Usage: uniform1fv gl location v

void uniform1fv (WebGLUniformLocation? location, Float32List v);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform2fv Source

uniform2fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> f -> Effect Unit

Usage: uniform2fv gl location v

void uniform2fv (WebGLUniformLocation? location, Float32List v);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform3fv Source

uniform3fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> f -> Effect Unit

Usage: uniform3fv gl location v

void uniform3fv (WebGLUniformLocation? location, Float32List v);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform4fv Source

uniform4fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> f -> Effect Unit

Usage: uniform4fv gl location v

void uniform4fv (WebGLUniformLocation? location, Float32List v);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform1iv Source

uniform1iv :: forall i c. IsWebGLRenderingContext c => IsInt32List i => c -> Maybe WebGLUniformLocation -> i -> Effect Unit

Usage: uniform1iv gl location v

void uniform1iv (WebGLUniformLocation? location, Int32List v);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform2iv Source

uniform2iv :: forall i c. IsWebGLRenderingContext c => IsInt32List i => c -> Maybe WebGLUniformLocation -> i -> Effect Unit

Usage: uniform2iv gl location v

void uniform2iv (WebGLUniformLocation? location, Int32List v);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform3iv Source

uniform3iv :: forall i c. IsWebGLRenderingContext c => IsInt32List i => c -> Maybe WebGLUniformLocation -> i -> Effect Unit

Usage: uniform3iv gl location v

void uniform3iv (WebGLUniformLocation? location, Int32List v);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniform4iv Source

uniform4iv :: forall i c. IsWebGLRenderingContext c => IsInt32List i => c -> Maybe WebGLUniformLocation -> i -> Effect Unit

Usage: uniform4iv gl location v

void uniform4iv (WebGLUniformLocation? location, Int32List v);

Documentation: WebGL 1.0 spec, section 5.14.10

#uniformMatrix2fv Source

uniformMatrix2fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> GLboolean -> f -> Effect Unit

Usage: uniformMatrix2fv gl location transpose value

void
uniformMatrix2fv ( WebGLUniformLocation? location
                 , GLboolean transpose
                 , Float32List value
                 );

Documentation: WebGL 1.0 spec, section 5.14.10

#uniformMatrix3fv Source

uniformMatrix3fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> GLboolean -> f -> Effect Unit

Usage: uniformMatrix3fv gl location transpose value

void
uniformMatrix3fv ( WebGLUniformLocation? location
                 , GLboolean transpose
                 , Float32List value
                 );

Documentation: WebGL 1.0 spec, section 5.14.10

#uniformMatrix4fv Source

uniformMatrix4fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> GLboolean -> f -> Effect Unit

Usage: uniformMatrix4fv gl location transpose value

void
uniformMatrix4fv ( WebGLUniformLocation? location
                 , GLboolean transpose
                 , Float32List value
                 );

Documentation: WebGL 1.0 spec, section 5.14.10

Modules
WebGL.Raw.Extensions.ANGLE.InstancedArrays
WebGL.Raw.Extensions.EXT.BlendMinmax
WebGL.Raw.Extensions.EXT.ColorBufferFloat
WebGL.Raw.Extensions.EXT.ColorBufferHalfFloat
WebGL.Raw.Extensions.EXT.DisjointTimerQuery
WebGL.Raw.Extensions.EXT.DisjointTimerQueryWebgl2
WebGL.Raw.Extensions.EXT.FragDepth
WebGL.Raw.Extensions.EXT.SRGB
WebGL.Raw.Extensions.EXT.ShaderTextureLod
WebGL.Raw.Extensions.EXT.TextureFilterAnisotropic
WebGL.Raw.Extensions.OES.ElementIndexUint
WebGL.Raw.Extensions.OES.StandardDerivatives
WebGL.Raw.Extensions.OES.TextureFloat
WebGL.Raw.Extensions.OES.TextureFloatLinear
WebGL.Raw.Extensions.OES.TextureHalfFloat
WebGL.Raw.Extensions.OES.TextureHalfFloatLinear
WebGL.Raw.Extensions.OES.VertexArrayObject
WebGL.Raw.Extensions.WEBGL.ColorBufferFloat
WebGL.Raw.Extensions.WEBGL.CompressedTextureAstc
WebGL.Raw.Extensions.WEBGL.CompressedTextureEtc
WebGL.Raw.Extensions.WEBGL.CompressedTextureEtc1
WebGL.Raw.Extensions.WEBGL.CompressedTexturePvrtc
WebGL.Raw.Extensions.WEBGL.CompressedTextureS3tc
WebGL.Raw.Extensions.WEBGL.CompressedTextureS3tcSrgb
WebGL.Raw.Extensions.WEBGL.DebugRendererInfo
WebGL.Raw.Extensions.WEBGL.DebugShaders
WebGL.Raw.Extensions.WEBGL.DepthTexture
WebGL.Raw.Extensions.WEBGL.DrawBuffers
WebGL.Raw.Extensions.WEBGL.LoseContext
WebGL.Raw.Types
WebGL.Raw.WebGL1
WebGL.Raw.WebGL1.Enums
WebGL.Raw.WebGL1.Uniforms
WebGL.Raw.WebGL1.VertexAttributes
WebGL.Raw.WebGL1.WebGLActiveInfo
WebGL.Raw.WebGL1.WebGLBuffer
WebGL.Raw.WebGL1.WebGLContextEvent
WebGL.Raw.WebGL1.WebGLFramebuffer
WebGL.Raw.WebGL1.WebGLProgram
WebGL.Raw.WebGL1.WebGLRenderbuffer
WebGL.Raw.WebGL1.WebGLRenderingContext
WebGL.Raw.WebGL1.WebGLShader
WebGL.Raw.WebGL1.WebGLShaderPrecisionFormat
WebGL.Raw.WebGL1.WebGLTexture
WebGL.Raw.WebGL2
WebGL.Raw.WebGL2.Enums
WebGL.Raw.WebGL2.UniformBufferObjects
WebGL.Raw.WebGL2.Uniforms
WebGL.Raw.WebGL2.VertexAttributes
WebGL.Raw.WebGL2.WebGL2RenderingContext
WebGL.Raw.WebGL2.WebGLActiveInfo
WebGL.Raw.WebGL2.WebGLBuffer
WebGL.Raw.WebGL2.WebGLContextEvent
WebGL.Raw.WebGL2.WebGLFramebuffer
WebGL.Raw.WebGL2.WebGLProgram
WebGL.Raw.WebGL2.WebGLQuery
WebGL.Raw.WebGL2.WebGLRenderbuffer
WebGL.Raw.WebGL2.WebGLSampler
WebGL.Raw.WebGL2.WebGLShader
WebGL.Raw.WebGL2.WebGLShaderPrecisionFormat
WebGL.Raw.WebGL2.WebGLSync
WebGL.Raw.WebGL2.WebGLTexture
WebGL.Raw.WebGL2.WebGLTransformFeedback
WebGL.Raw.WebGL2.WebGLVertexArrayObject