Module

WebGL.Raw.WebGL2

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

Re-exports from WebGL.Raw.Types

#WebGLVertexArrayObject Source

#WebGLTransformFeedback Source

#WebGLTexture Source

#WebGLSync Source

#WebGLShaderPrecisionFormat Source

#WebGLShader Source

#WebGLSampler Source

#WebGLRenderbuffer Source

#WebGLQuery Source

#WebGLProgram Source

#WebGLFramebuffer Source

#WebGLContextEvent Source

#WebGLBuffer Source

#WebGLActiveInfo Source

Re-exports from WebGL.Raw.WebGL1.Enums

#gl_VIEWPORT Source

#gl_VERTEX_SHADER Source

#gl_VERTEX_ATTRIB_ARRAY_TYPE Source

#gl_VERTEX_ATTRIB_ARRAY_STRIDE Source

#gl_VERTEX_ATTRIB_ARRAY_SIZE Source

#gl_VERTEX_ATTRIB_ARRAY_POINTER Source

#gl_VERTEX_ATTRIB_ARRAY_NORMALIZED Source

#gl_VERTEX_ATTRIB_ARRAY_ENABLED Source

#gl_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING Source

#gl_VALIDATE_STATUS Source

#gl_UNSIGNED_SHORT_5_6_5 Source

#gl_UNSIGNED_SHORT_5_5_5_1 Source

#gl_UNSIGNED_SHORT_4_4_4_4 Source

#gl_UNSIGNED_SHORT Source

#gl_UNSIGNED_INT Source

#gl_UNSIGNED_BYTE Source

#gl_UNPACK_PREMULTIPLY_ALPHA_WEBGL Source

#gl_UNPACK_FLIP_Y_WEBGL Source

#gl_UNPACK_COLORSPACE_CONVERSION_WEBGL Source

#gl_UNPACK_ALIGNMENT Source

#gl_TRIANGLE_STRIP Source

#gl_TRIANGLE_FAN Source

#gl_TRIANGLES Source

#gl_TEXTURE_WRAP_T Source

#gl_TEXTURE_WRAP_S Source

#gl_TEXTURE_MIN_FILTER Source

#gl_TEXTURE_MAG_FILTER Source

#gl_TEXTURE_CUBE_MAP_POSITIVE_Z Source

#gl_TEXTURE_CUBE_MAP_POSITIVE_Y Source

#gl_TEXTURE_CUBE_MAP_POSITIVE_X Source

#gl_TEXTURE_CUBE_MAP_NEGATIVE_Z Source

#gl_TEXTURE_CUBE_MAP_NEGATIVE_Y Source

#gl_TEXTURE_CUBE_MAP_NEGATIVE_X Source

#gl_TEXTURE_CUBE_MAP Source

#gl_TEXTURE_BINDING_CUBE_MAP Source

#gl_TEXTURE_BINDING_2D Source

#gl_TEXTURE_2D Source

#gl_TEXTURE9 Source

#gl_TEXTURE8 Source

#gl_TEXTURE7 Source

#gl_TEXTURE6 Source

#gl_TEXTURE5 Source

#gl_TEXTURE4 Source

#gl_TEXTURE31 Source

#gl_TEXTURE30 Source

#gl_TEXTURE3 Source

#gl_TEXTURE29 Source

#gl_TEXTURE28 Source

#gl_TEXTURE27 Source

#gl_TEXTURE26 Source

#gl_TEXTURE25 Source

#gl_TEXTURE24 Source

#gl_TEXTURE23 Source

#gl_TEXTURE22 Source

#gl_TEXTURE21 Source

#gl_TEXTURE20 Source

#gl_TEXTURE2 Source

#gl_TEXTURE19 Source

#gl_TEXTURE18 Source

#gl_TEXTURE17 Source

#gl_TEXTURE16 Source

#gl_TEXTURE15 Source

#gl_TEXTURE14 Source

#gl_TEXTURE13 Source

#gl_TEXTURE12 Source

#gl_TEXTURE11 Source

#gl_TEXTURE10 Source

#gl_TEXTURE1 Source

#gl_TEXTURE0 Source

#gl_SUBPIXEL_BITS Source

#gl_STREAM_DRAW Source

#gl_STENCIL_WRITEMASK Source

#gl_STENCIL_VALUE_MASK Source

#gl_STENCIL_TEST Source

#gl_STENCIL_REF Source

#gl_STENCIL_PASS_DEPTH_PASS Source

#gl_STENCIL_PASS_DEPTH_FAIL Source

#gl_STENCIL_INDEX8 Source

#gl_STENCIL_FUNC Source

#gl_STENCIL_FAIL Source

#gl_STENCIL_CLEAR_VALUE Source

#gl_STENCIL_BUFFER_BIT Source

#gl_STENCIL_BITS Source

#gl_STENCIL_BACK_WRITEMASK Source

#gl_STENCIL_BACK_VALUE_MASK Source

#gl_STENCIL_BACK_REF Source

#gl_STENCIL_BACK_PASS_DEPTH_PASS Source

#gl_STENCIL_BACK_PASS_DEPTH_FAIL Source

#gl_STENCIL_BACK_FUNC Source

#gl_STENCIL_BACK_FAIL Source

#gl_STENCIL_ATTACHMENT Source

#gl_STATIC_DRAW Source

#gl_SRC_COLOR Source

#gl_SRC_ALPHA_SATURATE Source

#gl_SRC_ALPHA Source

#gl_SHADING_LANGUAGE_VERSION Source

#gl_SHADER_TYPE Source

#gl_SCISSOR_TEST Source

#gl_SCISSOR_BOX Source

#gl_SAMPLE_COVERAGE_VALUE Source

#gl_SAMPLE_COVERAGE_INVERT Source

#gl_SAMPLE_COVERAGE Source

#gl_SAMPLE_BUFFERS Source

#gl_SAMPLE_ALPHA_TO_COVERAGE Source

#gl_SAMPLER_CUBE Source

#gl_SAMPLER_2D Source

#gl_RENDERER Source

#gl_RENDERBUFFER_WIDTH Source

#gl_RENDERBUFFER_STENCIL_SIZE Source

#gl_RENDERBUFFER_RED_SIZE Source

#gl_RENDERBUFFER_INTERNAL_FORMAT Source

#gl_RENDERBUFFER_HEIGHT Source

#gl_RENDERBUFFER_GREEN_SIZE Source

#gl_RENDERBUFFER_DEPTH_SIZE Source

#gl_RENDERBUFFER_BLUE_SIZE Source

#gl_RENDERBUFFER_BINDING Source

#gl_RENDERBUFFER_ALPHA_SIZE Source

#gl_RENDERBUFFER Source

#gl_RED_BITS Source

#gl_POLYGON_OFFSET_UNITS Source

#gl_POLYGON_OFFSET_FILL Source

#gl_POLYGON_OFFSET_FACTOR Source

#gl_PACK_ALIGNMENT Source

#gl_OUT_OF_MEMORY Source

#gl_ONE_MINUS_SRC_COLOR Source

#gl_ONE_MINUS_SRC_ALPHA Source

#gl_ONE_MINUS_DST_COLOR Source

#gl_ONE_MINUS_DST_ALPHA Source

#gl_ONE_MINUS_CONSTANT_COLOR Source

#gl_ONE_MINUS_CONSTANT_ALPHA Source

#gl_NO_ERROR Source

#gl_NOTEQUAL Source

#gl_NEAREST_MIPMAP_NEAREST Source

#gl_NEAREST_MIPMAP_LINEAR Source

#gl_MIRRORED_REPEAT Source

#gl_MEDIUM_INT Source

#gl_MEDIUM_FLOAT Source

#gl_MAX_VIEWPORT_DIMS Source

#gl_MAX_VERTEX_UNIFORM_VECTORS Source

#gl_MAX_VERTEX_TEXTURE_IMAGE_UNITS Source

#gl_MAX_VERTEX_ATTRIBS Source

#gl_MAX_VARYING_VECTORS Source

#gl_MAX_TEXTURE_SIZE Source

#gl_MAX_TEXTURE_IMAGE_UNITS Source

#gl_MAX_RENDERBUFFER_SIZE Source

#gl_MAX_FRAGMENT_UNIFORM_VECTORS Source

#gl_MAX_CUBE_MAP_TEXTURE_SIZE Source

#gl_MAX_COMBINED_TEXTURE_IMAGE_UNITS Source

#gl_LUMINANCE_ALPHA Source

#gl_LUMINANCE Source

#gl_LOW_FLOAT Source

#gl_LINE_WIDTH Source

#gl_LINE_STRIP Source

#gl_LINE_LOOP Source

#gl_LINEAR_MIPMAP_NEAREST Source

#gl_LINEAR_MIPMAP_LINEAR Source

#gl_INVALID_VALUE Source

#gl_INVALID_OPERATION Source

#gl_INVALID_FRAMEBUFFER_OPERATION Source

#gl_INVALID_ENUM Source

#gl_INT_VEC4 Source

#gl_INT_VEC3 Source

#gl_INT_VEC2 Source

#gl_INCR_WRAP Source

#gl_IMPLEMENTATION_COLOR_READ_TYPE Source

#gl_IMPLEMENTATION_COLOR_READ_FORMAT Source

#gl_HIGH_INT Source

#gl_HIGH_FLOAT Source

#gl_GREEN_BITS Source

#gl_GENERATE_MIPMAP_HINT Source

#gl_FUNC_SUBTRACT Source

#gl_FUNC_REVERSE_SUBTRACT Source

#gl_FUNC_ADD Source

#gl_FRONT_FACE Source

#gl_FRONT_AND_BACK Source

#gl_FRAMEBUFFER_UNSUPPORTED Source

#gl_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT Source

#gl_FRAMEBUFFER_INCOMPLETE_DIMENSIONS Source

#gl_FRAMEBUFFER_INCOMPLETE_ATTACHMENT Source

#gl_FRAMEBUFFER_COMPLETE Source

#gl_FRAMEBUFFER_BINDING Source

#gl_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL Source

#gl_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE Source

#gl_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE Source

#gl_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME Source

#gl_FRAMEBUFFER Source

#gl_FRAGMENT_SHADER Source

#gl_FLOAT_VEC4 Source

#gl_FLOAT_VEC3 Source

#gl_FLOAT_VEC2 Source

#gl_FLOAT_MAT4 Source

#gl_FLOAT_MAT3 Source

#gl_FLOAT_MAT2 Source

#gl_ELEMENT_ARRAY_BUFFER_BINDING Source

#gl_ELEMENT_ARRAY_BUFFER Source

#gl_DYNAMIC_DRAW Source

#gl_DST_COLOR Source

#gl_DST_ALPHA Source

#gl_DONT_CARE Source

#gl_DEPTH_WRITEMASK Source

#gl_DEPTH_TEST Source

#gl_DEPTH_STENCIL_ATTACHMENT Source

#gl_DEPTH_STENCIL Source

#gl_DEPTH_RANGE Source

#gl_DEPTH_FUNC Source

#gl_DEPTH_COMPONENT16 Source

#gl_DEPTH_COMPONENT Source

#gl_DEPTH_CLEAR_VALUE Source

#gl_DEPTH_BUFFER_BIT Source

#gl_DEPTH_BITS Source

#gl_DEPTH_ATTACHMENT Source

#gl_DELETE_STATUS Source

#gl_DECR_WRAP Source

#gl_CURRENT_VERTEX_ATTRIB Source

#gl_CURRENT_PROGRAM Source

#gl_CULL_FACE_MODE Source

#gl_CULL_FACE Source

#gl_CONTEXT_LOST_WEBGL Source

#gl_CONSTANT_COLOR Source

#gl_CONSTANT_ALPHA Source

#gl_COMPRESSED_TEXTURE_FORMATS Source

#gl_COMPILE_STATUS Source

#gl_COLOR_WRITEMASK Source

#gl_COLOR_CLEAR_VALUE Source

#gl_COLOR_BUFFER_BIT Source

#gl_COLOR_ATTACHMENT0 Source

#gl_CLAMP_TO_EDGE Source

#gl_BUFFER_USAGE Source

#gl_BUFFER_SIZE Source

#gl_BROWSER_DEFAULT_WEBGL Source

#gl_BOOL_VEC4 Source

#gl_BOOL_VEC3 Source

#gl_BOOL_VEC2 Source

#gl_BLUE_BITS Source

#gl_BLEND_SRC_RGB Source

#gl_BLEND_SRC_ALPHA Source

#gl_BLEND_EQUATION_RGB Source

#gl_BLEND_EQUATION_ALPHA Source

#gl_BLEND_EQUATION Source

#gl_BLEND_DST_RGB Source

#gl_BLEND_DST_ALPHA Source

#gl_BLEND_COLOR Source

#gl_ATTACHED_SHADERS Source

#gl_ARRAY_BUFFER_BINDING Source

#gl_ARRAY_BUFFER Source

#gl_ALPHA_BITS Source

#gl_ALIASED_POINT_SIZE_RANGE Source

#gl_ALIASED_LINE_WIDTH_RANGE Source

#gl_ACTIVE_UNIFORMS Source

#gl_ACTIVE_TEXTURE Source

#gl_ACTIVE_ATTRIBUTES Source

Re-exports from WebGL.Raw.WebGL1.Uniforms

#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

#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

#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

#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

#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

#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

#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

#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

#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

#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.

#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.

#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.

#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.

#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.

#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.

#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

Re-exports from WebGL.Raw.WebGL1.VertexAttributes

#vertexAttribPointer Source

vertexAttribPointer :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLint -> GLenum -> GLboolean -> GLsizei -> GLintptr -> Effect Unit

Usage: vertexAttribPointer gl index size type normalized stride offset

void
vertexAttribPointer ( GLuint index
                    , GLint size
                    , GLenum type
                    , GLboolean normalized
                    , GLsizei stride
                    , GLintptr offset
                    );

Documentation: WebGL 1.0 spec, section 5.14.10

#vertexAttrib4fv Source

vertexAttrib4fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> GLuint -> f -> Effect Unit

Usage: vertexAttrib4fv gl index values

void vertexAttrib4fv (GLuint index, Float32List values);

Documentation: WebGL 1.0 spec, section 5.14.10

#vertexAttrib4f Source

vertexAttrib4f :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> Effect Unit

Usage: vertexAttrib4f gl index x y z w

void
vertexAttrib4f ( GLuint index
               , GLfloat x
               , GLfloat y
               , GLfloat z
               , GLfloat w
               );

Documentation: WebGL 1.0 spec, section 5.14.10

#vertexAttrib3fv Source

vertexAttrib3fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> GLuint -> f -> Effect Unit

Usage: vertexAttrib3fv gl index values

void vertexAttrib3fv (GLuint index, Float32List values);

Documentation: WebGL 1.0 spec, section 5.14.10

#vertexAttrib3f Source

vertexAttrib3f :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLfloat -> GLfloat -> GLfloat -> Effect Unit

Usage: vertexAttrib3f gl index x y z

void vertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);

Documentation: WebGL 1.0 spec, section 5.14.10

#vertexAttrib2fv Source

vertexAttrib2fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> GLuint -> f -> Effect Unit

Usage: vertexAttrib2fv gl index values

void vertexAttrib2fv (GLuint index, Float32List values);

Documentation: WebGL 1.0 spec, section 5.14.10

#vertexAttrib2f Source

vertexAttrib2f :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLfloat -> GLfloat -> Effect Unit

Usage: vertexAttrib2f gl index x y

void vertexAttrib2f (GLuint index, GLfloat x, GLfloat y);

Documentation: WebGL 1.0 spec, section 5.14.10

#vertexAttrib1fv Source

vertexAttrib1fv :: forall f c. IsWebGLRenderingContext c => IsFloat32List f => c -> GLuint -> f -> Effect Unit

Usage: vertexAttrib1fv gl index values

void vertexAttrib1fv (GLuint index, Float32List values);

Documentation: WebGL 1.0 spec, section 5.14.10

#vertexAttrib1f Source

vertexAttrib1f :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLfloat -> Effect Unit

Usage: vertexAttrib1f gl index x

void vertexAttrib1f (GLuint index, GLfloat x);

Documentation: WebGL 1.0 spec, section 5.14.10

#getVertexAttribWebGLBuffer Source

getVertexAttribWebGLBuffer :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLenum -> Effect (Maybe WebGLBuffer)

Usage: getVertexAttribWebGLBuffer gl index pname

Use when:

  • pname = VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
any getVertexAttrib (GLuint index, GLenum pname);

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.

#getVertexAttribOffset Source

getVertexAttribOffset :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLenum -> Effect GLintptr

Usage: getVertexAttribOffset gl index pname

[WebGLHandlesContextLoss] GLintptr
getVertexAttribOffset (GLuint index, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.10

#getVertexAttribGLint Source

getVertexAttribGLint :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLenum -> Effect (Maybe GLint)

Usage: getVertexAttribGLint gl index pname

Use when:

  • pname = VERTEX_ATTRIB_ARRAY_SIZE
  • pname = VERTEX_ATTRIB_ARRAY_STRIDE
  • pname = VERTEX_ATTRIB_ARRAY_DIVISOR (WebGL2)
any getVertexAttrib (GLuint index, GLenum pname);

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.

#getVertexAttribGLenum Source

getVertexAttribGLenum :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLenum -> Effect (Maybe GLenum)

Usage: getVertexAttribGLenum gl index pname

Use when:

  • pname = VERTEX_ATTRIB_ARRAY_TYPE
any getVertexAttrib (GLuint index, GLenum pname);

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.

#getVertexAttribGLboolean Source

getVertexAttribGLboolean :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLenum -> Effect (Maybe GLboolean)

Usage: getVertexAttribGLboolean gl index pname

Use when:

  • pname = VERTEX_ATTRIB_ARRAY_ENABLED
  • pname = VERTEX_ATTRIB_ARRAY_NORMALIZED
  • pname = VERTEX_ATTRIB_ARRAY_INTEGER (WebGL2)
any getVertexAttrib (GLuint index, GLenum pname);

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.

#getVertexAttribFloat32Array Source

getVertexAttribFloat32Array :: forall c. IsWebGLRenderingContext c => c -> GLuint -> GLenum -> Effect (Maybe (ArrayView Float32))

Usage: getVertexAttribFloat32Array gl index pname

Use when:

  • pname = CURRENT_VERTEX_ATTRIB
any getVertexAttrib (GLuint index, GLenum pname);

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.

#getAttribLocation Source

getAttribLocation :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> String -> Effect GLint

Usage: getAttribLocation gl program name

[WebGLHandlesContextLoss] GLint
getAttribLocation (WebGLProgram program, DOMString name);

Documentation: WebGL 1.0 spec, section 5.14.10

#getActiveAttrib Source

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

Usage: getActiveAttrib gl program index

WebGLActiveInfo? getActiveAttrib (WebGLProgram program, GLuint index);

Documentation: WebGL 1.0 spec, section 5.14.10

#enableVertexAttribArray Source

enableVertexAttribArray :: forall c. IsWebGLRenderingContext c => c -> GLuint -> Effect Unit

Usage: enableVertexAttribArray gl index

void enableVertexAttribArray (GLuint index);

Documentation: WebGL 1.0 spec, section 5.14.10

#disableVertexAttribArray Source

disableVertexAttribArray :: forall c. IsWebGLRenderingContext c => c -> GLuint -> Effect Unit

Usage: disableVertexAttribArray gl index

void disableVertexAttribArray (GLuint index);

Documentation: WebGL 1.0 spec, section 5.14.10

Re-exports from WebGL.Raw.WebGL1.WebGLActiveInfo

#getType Source

getType :: WebGLActiveInfo -> Effect GLenum

Usage: getType webglactiveinfo

Documentation: WebGL 1.0 spec, section 5.11.1

#getSize Source

getSize :: WebGLActiveInfo -> Effect GLint

Usage: getSize webglactiveinfo

Documentation: WebGL 1.0 spec, section 5.11.1

#getName Source

getName :: WebGLActiveInfo -> Effect String

Usage: getName webglactiveinfo

Documentation: WebGL 1.0 spec, section 5.11.1

Re-exports from WebGL.Raw.WebGL1.WebGLBuffer

#isBuffer Source

isBuffer :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLBuffer -> Effect GLboolean

Usage: isBuffer gl buffer

[WebGLHandlesContextLoss] GLboolean isBuffer (WebGLBuffer? buffer);

Documentation: WebGL 1.0 spec, section 5.14.5

#getBufferParameterGLint Source

getBufferParameterGLint :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLint)

Usage: getBufferParameterGLint gl target pname

Use when:

  • pname = BUFFER_SIZE
any getBufferParameter (GLenum target, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.5

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.

#getBufferParameterGLenum Source

getBufferParameterGLenum :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLenum)

Usage: getBufferParameterGLenum gl target pname

Use when:

  • pname = BUFFER_USAGE
any getBufferParameter (GLenum target, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.5

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.

#deleteBuffer Source

deleteBuffer :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLBuffer -> Effect Unit

Usage: deleteBuffer gl buffer

void deleteBuffer (WebGLBuffer? buffer);

Documentation: WebGL 1.0 spec, section 5.14.5

#createBuffer Source

createBuffer :: forall c. IsWebGLRenderingContext c => c -> Effect (Maybe WebGLBuffer)

Usage: createBuffer gl

WebGLBuffer? createBuffer();

Documentation: WebGL 1.0 spec, section 5.14.5

#bufferDataSetSize Source

bufferDataSetSize :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLsizeiptr -> GLenum -> Effect Unit

Usage: bufferDataSetSize gl target size usage

void bufferData (GLenum target, GLsizeiptr size, GLenum usage);

Documentation: WebGL 1.0 spec, section 5.14.5

#bindBuffer Source

bindBuffer :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Maybe WebGLBuffer -> Effect Unit

Usage: bindBuffer gl target buffer

void bindBuffer (GLenum target, WebGLBuffer? buffer);

Documentation: WebGL 1.0 spec, section 5.14.5

Re-exports from WebGL.Raw.WebGL1.WebGLContextEvent

#getStatusMessage Source

getStatusMessage :: WebGLContextEvent -> Effect String

Usage: getStatusMessage webglcontextevent

Re-exports from WebGL.Raw.WebGL1.WebGLFramebuffer

#isFramebuffer Source

isFramebuffer :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLFramebuffer -> Effect GLboolean

Usage: isFramebuffer gl framebuffer

[WebGLHandlesContextLoss] GLboolean
isFramebuffer (WebGLFramebuffer? framebuffer);

Documentation: WebGL 1.0 spec, section 5.14.6

#getFramebufferAttachmentParameterWebGLTexture Source

getFramebufferAttachmentParameterWebGLTexture :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLenum -> Effect (Maybe WebGLTexture)

Usage: getFramebufferAttachmentParameterWebGLTexture gl target attachment pname

Use when:

  • pname = FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
any
getFramebufferAttachmentParameter ( GLenum target
                                  , GLenum attachment
                                  , GLenum pname
                                  );

Documentation: WebGL 1.0 spec, section 5.14.6

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.

#getFramebufferAttachmentParameterWebGLRenderbuffer Source

getFramebufferAttachmentParameterWebGLRenderbuffer :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLenum -> Effect (Maybe WebGLRenderbuffer)

Usage: getFramebufferAttachmentParameterWebGLRenderbuffer gl target attachment pname

Use when:

  • pname = FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
any
getFramebufferAttachmentParameter ( GLenum target
                                  , GLenum attachment
                                  , GLenum pname
                                  );

Documentation: WebGL 1.0 spec, section 5.14.6

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.

#getFramebufferAttachmentParameterGLint Source

getFramebufferAttachmentParameterGLint :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLenum -> Effect (Maybe GLint)

Usage: getFramebufferAttachmentParameterGLint gl target attachment pname

Use when:

  • pname = FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
  • pname = FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
  • pname = FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE (WebGL2)
  • pname = FRAMEBUFFER_ATTACHMENT_BLUE_SIZE (WebGL2)
  • pname = FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE (WebGL2)
  • pname = FRAMEBUFFER_ATTACHMENT_GREEN_SIZE (WebGL2)
  • pname = FRAMEBUFFER_ATTACHMENT_RED_SIZE (WebGL2)
  • pname = FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE (WebGL2)
  • pname = FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER (WebGL2)
any
getFramebufferAttachmentParameter ( GLenum target
                                  , GLenum attachment
                                  , GLenum pname
                                  );

Documentation: WebGL 1.0 spec, section 5.14.6

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.

#getFramebufferAttachmentParameterGLenum Source

getFramebufferAttachmentParameterGLenum :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLenum -> Effect (Maybe GLenum)

Usage: getFramebufferAttachmentParameterGLenum gl target attachment pname

Use when:

  • pname = FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
  • pname = FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING (WebGL2)
  • pname = FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE (WebGL2)
any
getFramebufferAttachmentParameter ( GLenum target
                                  , GLenum attachment
                                  , GLenum pname
                                  );

Documentation: WebGL 1.0 spec, section 5.14.6

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.

#framebufferTexture2D Source

framebufferTexture2D :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLenum -> Maybe WebGLTexture -> GLint -> Effect Unit

Usage: framebufferTexture2D gl target attachment textarget texture level

void
framebufferTexture2D ( GLenum target
                     , GLenum attachment
                     , GLenum textarget
                     , WebGLTexture? texture
                     , GLint level
                     );

Documentation: WebGL 1.0 spec, section 5.14.6

#framebufferRenderbuffer Source

framebufferRenderbuffer :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLenum -> Maybe WebGLRenderbuffer -> Effect Unit

Usage: framebufferRenderbuffer gl target attachment renderbuffertarget renderbuffer

void
framebufferRenderbuffer ( GLenum target
                        , GLenum attachment
                        , GLenum renderbuffertarget
                        , WebGLRenderbuffer? renderbuffer
                        );

Documentation: WebGL 1.0 spec, section 5.14.6

#deleteFramebuffer Source

deleteFramebuffer :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLFramebuffer -> Effect Unit

Usage: deleteFramebuffer gl framebuffer

void deleteFramebuffer (WebGLFramebuffer? framebuffer);

Documentation: WebGL 1.0 spec, section 5.14.6

#createFramebuffer Source

createFramebuffer :: forall c. IsWebGLRenderingContext c => c -> Effect (Maybe WebGLFramebuffer)

Usage: createFramebuffer gl

WebGLFramebuffer? createFramebuffer();

Documentation: WebGL 1.0 spec, section 5.14.6

#checkFramebufferStatus Source

checkFramebufferStatus :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect GLenum

Usage: checkFramebufferStatus gl target

[WebGLHandlesContextLoss] GLenum
checkFramebufferStatus (GLenum target);

Documentation: WebGL 1.0 spec, section 5.14.6

#bindFramebuffer Source

bindFramebuffer :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Maybe WebGLFramebuffer -> Effect Unit

Usage: bindFramebuffer gl target framebuffer

void bindFramebuffer (GLenum target, WebGLFramebuffer? framebuffer);

Documentation: WebGL 1.0 spec, section 5.14.6

Re-exports from WebGL.Raw.WebGL1.WebGLProgram

#validateProgram Source

validateProgram :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> Effect Unit

Usage: validateProgram gl program

void validateProgram (WebGLProgram program);

Documentation: WebGL 1.0 spec, section 5.14.9

#useProgram Source

useProgram :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLProgram -> Effect Unit

Usage: useProgram gl program

void useProgram (WebGLProgram? program);

Documentation: WebGL 1.0 spec, section 5.14.9

#linkProgram Source

linkProgram :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> Effect Unit

Usage: linkProgram gl program

void linkProgram (WebGLProgram program);

Documentation: WebGL 1.0 spec, section 5.14.9

#isProgram Source

isProgram :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLProgram -> Effect GLboolean

Usage: isProgram gl program

[WebGLHandlesContextLoss] GLboolean isProgram (WebGLProgram? program);

Documentation: WebGL 1.0 spec, section 5.14.9

#getProgramParameterGLint Source

getProgramParameterGLint :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> GLenum -> Effect (Maybe GLint)

Usage: getProgramParameterGLint gl program pname

Use when:

  • pname = ACTIVE_ATTRIBUTES
  • pname = ACTIVE_UNIFORMS
  • pname = ATTACHED_SHADERS
  • pname = ACTIVE_UNIFORM_BLOCKS (WebGL2)
  • pname = TRANSFORM_FEEDBACK_VARYINGS (WebGL2)
any getProgramParameter (WebGLProgram program, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.9

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.

#getProgramParameterGLboolean Source

getProgramParameterGLboolean :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> GLenum -> Effect (Maybe GLboolean)

Usage: getProgramParameterGLboolean gl program pname

Use when:

  • pname = DELETE_STATUS
  • pname = LINK_STATUS
  • pname = VALIDATE_STATUS
any getProgramParameter (WebGLProgram program, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.9

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.

#getProgramInfoLog Source

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

Usage: getProgramInfoLog gl program

DOMString? getProgramInfoLog (WebGLProgram program);

Documentation: WebGL 1.0 spec, section 5.14.9

#getAttachedShaders Source

getAttachedShaders :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> Effect (Maybe (Array WebGLShader))

Usage: getAttachedShaders gl program

sequence<WebGLShader>? getAttachedShaders (WebGLProgram program);

Documentation: WebGL 1.0 spec, section 5.14.9

#detachShader Source

detachShader :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> WebGLShader -> Effect Unit

Usage: detachShader gl program shader

void detachShader (WebGLProgram program, WebGLShader shader);

Documentation: WebGL 1.0 spec, section 5.14.9

#deleteProgram Source

deleteProgram :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLProgram -> Effect Unit

Usage: deleteProgram gl program

void deleteProgram (WebGLProgram? program);

Documentation: WebGL 1.0 spec, section 5.14.9

#bindAttribLocation Source

bindAttribLocation :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> GLuint -> String -> Effect Unit

Usage: bindAttribLocation gl program index name

void
bindAttribLocation ( WebGLProgram program
                   , GLuint index
                   , DOMString name
                   );

Documentation: WebGL 1.0 spec, section 5.14.9

#attachShader Source

attachShader :: forall c. IsWebGLRenderingContext c => c -> WebGLProgram -> WebGLShader -> Effect Unit

Usage: attachShader gl program shader

void attachShader (WebGLProgram program, WebGLShader shader);

Documentation: WebGL 1.0 spec, section 5.14.9

Re-exports from WebGL.Raw.WebGL1.WebGLRenderbuffer

#renderbufferStorage Source

renderbufferStorage :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLsizei -> GLsizei -> Effect Unit

Usage: renderbufferStorage gl target internalformat width height

void
renderbufferStorage ( GLenum target
                    , GLenum internalformat
                    , GLsizei width
                    , GLsizei height
                    );

Documentation: WebGL 1.0 spec, section 5.14.7

#isRenderbuffer Source

isRenderbuffer :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLRenderbuffer -> Effect GLboolean

Usage: isRenderbuffer gl renderbuffer

[WebGLHandlesContextLoss] GLboolean
isRenderbuffer (WebGLRenderbuffer? renderbuffer);

Documentation: WebGL 1.0 spec, section 5.14.7

#getRenderbufferParameterGLint Source

getRenderbufferParameterGLint :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLint)

Usage: getRenderbufferParameterGLint gl target pname

Use when:

  • pname = RENDERBUFFER_ALPHA_SIZE
  • pname = RENDERBUFFER_BLUE_SIZE
  • pname = RENDERBUFFER_DEPTH_SIZE
  • pname = RENDERBUFFER_GREEN_SIZE
  • pname = RENDERBUFFER_HEIGHT
  • pname = RENDERBUFFER_RED_SIZE
  • pname = RENDERBUFFER_STENCIL_SIZE
  • pname = RENDERBUFFER_WIDTH
  • pname = RENDERBUFFER_SAMPLES (WebGL2)
any getRenderbufferParameter (GLenum target, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.7

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.

#getRenderbufferParameterGLenum Source

getRenderbufferParameterGLenum :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLenum)

Usage: getRenderbufferParameterGLenum gl target pname

Use when:

  • pname = RENDERBUFFER_INTERNAL_FORMAT
any getRenderbufferParameter (GLenum target, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.7

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.

#deleteRenderbuffer Source

deleteRenderbuffer :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLRenderbuffer -> Effect Unit

Usage: deleteRenderbuffer gl renderbuffer

void deleteRenderbuffer (WebGLRenderbuffer? renderbuffer);

Documentation: WebGL 1.0 spec, section 5.14.7

#createRenderbuffer Source

createRenderbuffer :: forall c. IsWebGLRenderingContext c => c -> Effect (Maybe WebGLRenderbuffer)

Usage: createRenderbuffer gl

WebGLRenderbuffer? createRenderbuffer();

Documentation: WebGL 1.0 spec, section 5.14.7

#bindRenderbuffer Source

bindRenderbuffer :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Maybe WebGLRenderbuffer -> Effect Unit

Usage: bindRenderbuffer gl target renderbuffer

void
bindRenderbuffer (GLenum target, WebGLRenderbuffer? renderbuffer);

Documentation: WebGL 1.0 spec, section 5.14.7

Re-exports from WebGL.Raw.WebGL1.WebGLRenderingContext

#viewport Source

viewport :: forall c. IsWebGLRenderingContext c => c -> GLint -> GLint -> GLsizei -> GLsizei -> Effect Unit

Usage: viewport gl x y width height

void viewport (GLint x, GLint y, GLsizei width, GLsizei height);

Documentation: WebGL 1.0 spec, section 5.14.4

#stencilOpSeparate Source

stencilOpSeparate :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLenum -> GLenum -> Effect Unit

Usage: stencilOpSeparate gl face fail zfail zpass

void
stencilOpSeparate ( GLenum face
                  , GLenum fail
                  , GLenum zfail
                  , GLenum zpass
                  );

Documentation: WebGL 1.0 spec, section 5.14.3

#stencilOp Source

stencilOp :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLenum -> Effect Unit

Usage: stencilOp gl fail zfail zpass

void stencilOp (GLenum fail, GLenum zfail, GLenum zpass);

Documentation: WebGL 1.0 spec, section 5.14.3

#stencilMaskSeparate Source

stencilMaskSeparate :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLuint -> Effect Unit

Usage: stencilMaskSeparate gl face mask

void stencilMaskSeparate (GLenum face, GLuint mask);

Documentation: WebGL 1.0 spec, section 5.14.3

#stencilMask Source

stencilMask :: forall c. IsWebGLRenderingContext c => c -> GLuint -> Effect Unit

Usage: stencilMask gl mask

void stencilMask (GLuint mask);

Documentation: WebGL 1.0 spec, section 5.14.3

#stencilFuncSeparate Source

stencilFuncSeparate :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLint -> GLuint -> Effect Unit

Usage: stencilFuncSeparate gl face func ref mask

void
stencilFuncSeparate ( GLenum face
                    , GLenum func
                    , GLint ref
                    , GLuint mask
                    );

Documentation: WebGL 1.0 spec, section 5.14.3

#stencilFunc Source

stencilFunc :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLint -> GLuint -> Effect Unit

Usage: stencilFunc gl func ref mask

void stencilFunc (GLenum func, GLint ref, GLuint mask);

Documentation: WebGL 1.0 spec, section 5.14.3

#scissor Source

scissor :: forall c. IsWebGLRenderingContext c => c -> GLint -> GLint -> GLsizei -> GLsizei -> Effect Unit

Usage: scissor gl x y width height

void scissor (GLint x, GLint y, GLsizei width, GLsizei height);

Documentation: WebGL 1.0 spec, section 5.14.4

#sampleCoverage Source

sampleCoverage :: forall c. IsWebGLRenderingContext c => c -> GLclampf -> GLboolean -> Effect Unit

Usage: sampleCoverage gl value invert

void sampleCoverage (GLclampf value, GLboolean invert);

Documentation: WebGL 1.0 spec, section 5.14.3

#polygonOffset Source

polygonOffset :: forall c. IsWebGLRenderingContext c => c -> GLfloat -> GLfloat -> Effect Unit

Usage: polygonOffset gl factor units

void polygonOffset (GLfloat factor, GLfloat units);

Documentation: WebGL 1.0 spec, section 5.14.3

#pixelStorei Source

pixelStorei :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLint -> Effect Unit

Usage: pixelStorei gl pname param

void pixelStorei (GLenum pname, GLint param);

Documentation: WebGL 1.0 spec, section 5.14.3

#lineWidth Source

lineWidth :: forall c. IsWebGLRenderingContext c => c -> GLfloat -> Effect Unit

Usage: lineWidth gl width

void lineWidth (GLfloat width);

Documentation: WebGL 1.0 spec, section 5.14.3

#isEnabled Source

isEnabled :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect GLboolean

Usage: isEnabled gl cap

[WebGLHandlesContextLoss] GLboolean isEnabled (GLenum cap);

Documentation: WebGL 1.0 spec, section 5.14.3

#isContextLost Source

isContextLost :: forall c. IsWebGLRenderingContext c => c -> Effect Boolean

Usage: isContextLost gl

[WebGLHandlesContextLoss] boolean isContextLost();

Documentation: WebGL 1.0 spec, section 5.14.13

#hint Source

hint :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect Unit

Usage: hint gl target mode

void hint (GLenum target, GLenum mode);

Documentation: WebGL 1.0 spec, section 5.14.3

#getSupportedExtensions Source

getSupportedExtensions :: forall c. IsWebGLRenderingContext c => c -> Effect (Maybe (Array String))

Usage: getSupportedExtensions gl

sequence<DOMString>? getSupportedExtensions();

Documentation: WebGL 1.0 spec, section 5.14.14

#getParameterWebGLTexture Source

getParameterWebGLTexture :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe WebGLTexture)

Usage: getParameterWebGLTexture gl pname

Use when:

  • pname = TEXTURE_BINDING_2D
  • pname = TEXTURE_BINDING_CUBE_MAP
  • pname = TEXTURE_BINDING_2D_ARRAY (WebGL2)
  • pname = TEXTURE_BINDING_3D (WebGL2)
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterWebGLRenderbuffer Source

getParameterWebGLRenderbuffer :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe WebGLRenderbuffer)

Usage: getParameterWebGLRenderbuffer gl pname

Use when:

  • pname = RENDERBUFFER_BINDING
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterWebGLProgram Source

getParameterWebGLProgram :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe WebGLProgram)

Usage: getParameterWebGLProgram gl pname

Use when:

  • pname = CURRENT_PROGRAM
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterWebGLFramebuffer Source

getParameterWebGLFramebuffer :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe WebGLFramebuffer)

Usage: getParameterWebGLFramebuffer gl pname

Use when:

  • pname = FRAMEBUFFER_BINDING
  • pname = DRAW_FRAMEBUFFER_BINDING (WebGL2)
  • pname = READ_FRAMEBUFFER_BINDING (WebGL2)
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterWebGLBuffer Source

getParameterWebGLBuffer :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe WebGLBuffer)

Usage: getParameterWebGLBuffer gl pname

Use when:

  • pname = ARRAY_BUFFER_BINDING
  • pname = ELEMENT_ARRAY_BUFFER_BINDING
  • pname = COPY_READ_BUFFER_BINDING (WebGL2)
  • pname = COPY_WRITE_BUFFER_BINDING (WebGL2)
  • pname = PIXEL_PACK_BUFFER_BINDING (WebGL2)
  • pname = PIXEL_UNPACK_BUFFER_BINDING (WebGL2)
  • pname = TRANSFORM_FEEDBACK_BUFFER_BINDING (WebGL2)
  • pname = UNIFORM_BUFFER_BINDING (WebGL2)
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterUint32Array Source

getParameterUint32Array :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe (ArrayView Uint32))

Usage: getParameterUint32Array gl pname

Use when:

  • pname = COMPRESSED_TEXTURE_FORMATS
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterString Source

getParameterString :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe String)

Usage: getParameterString gl pname

Use when:

  • pname = RENDERER
  • pname = SHADING_LANGUAGE_VERSION
  • pname = VENDOR
  • pname = VERSION
  • pname = UNMASKED_RENDERER_WEBGL (WEBGL_debug_renderer_info)
  • pname = UNMASKED_VENDOR_WEBGL (WEBGL_debug_renderer_info)
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterInt32Array Source

getParameterInt32Array :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe (ArrayView Int32))

Usage: getParameterInt32Array gl pname

Use when:

  • pname = MAX_VIEWPORT_DIMS
  • pname = SCISSOR_BOX
  • pname = VIEWPORT
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterGLuint64EXT Source

getParameterGLuint64EXT :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe GLuint64EXT)

Usage: getParameterGLuint64EXT gl pname

Use when:

  • pname = TIMESTAMP_EXT (EXT_disjoint_timer_query, EXT_disjoint_timer_query_webgl2)
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterGLuint Source

getParameterGLuint :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe GLuint)

Usage: getParameterGLuint gl pname

Use when:

  • pname = STENCIL_BACK_VALUE_MASK
  • pname = STENCIL_BACK_WRITEMASK
  • pname = STENCIL_VALUE_MASK
  • pname = STENCIL_WRITEMASK
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterGLint Source

getParameterGLint :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe GLint)

Usage: getParameterGLint gl pname

Use when:

  • pname = ALPHA_BITS
  • pname = BLUE_BITS
  • pname = DEPTH_BITS
  • pname = GREEN_BITS
  • pname = MAX_COMBINED_TEXTURE_IMAGE_UNITS
  • pname = MAX_CUBE_MAP_TEXTURE_SIZE
  • pname = MAX_FRAGMENT_UNIFORM_VECTORS
  • pname = MAX_RENDERBUFFER_SIZE
  • pname = MAX_TEXTURE_IMAGE_UNITS
  • pname = MAX_TEXTURE_SIZE
  • pname = MAX_VARYING_VECTORS
  • pname = MAX_VERTEX_ATTRIBS
  • pname = MAX_VERTEX_TEXTURE_IMAGE_UNITS
  • pname = MAX_VERTEX_UNIFORM_VECTORS
  • pname = PACK_ALIGNMENT
  • pname = RED_BITS
  • pname = SAMPLES
  • pname = SAMPLE_BUFFERS
  • pname = STENCIL_BACK_REF
  • pname = STENCIL_BITS
  • pname = STENCIL_CLEAR_VALUE
  • pname = STENCIL_REF
  • pname = SUBPIXEL_BITS
  • pname = UNPACK_ALIGNMENT
  • pname = MAX_3D_TEXTURE_SIZE (WebGL2)
  • pname = MAX_ARRAY_TEXTURE_LAYERS (WebGL2)
  • pname = MAX_COLOR_ATTACHMENTS (WebGL2)
  • pname = MAX_COMBINED_UNIFORM_BLOCKS (WebGL2)
  • pname = MAX_DRAW_BUFFERS (WebGL2)
  • pname = MAX_ELEMENTS_INDICES (WebGL2)
  • pname = MAX_ELEMENTS_VERTICES (WebGL2)
  • pname = MAX_FRAGMENT_INPUT_COMPONENTS (WebGL2)
  • pname = MAX_FRAGMENT_UNIFORM_BLOCKS (WebGL2)
  • pname = MAX_FRAGMENT_UNIFORM_COMPONENTS (WebGL2)
  • pname = MAX_PROGRAM_TEXEL_OFFSET (WebGL2)
  • pname = MAX_SAMPLES (WebGL2)
  • pname = MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS (WebGL2)
  • pname = MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS (WebGL2)
  • pname = MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS (WebGL2)
  • pname = MAX_UNIFORM_BUFFER_BINDINGS (WebGL2)
  • pname = MAX_VARYING_COMPONENTS (WebGL2)
  • pname = MAX_VERTEX_OUTPUT_COMPONENTS (WebGL2)
  • pname = MAX_VERTEX_UNIFORM_BLOCKS (WebGL2)
  • pname = MAX_VERTEX_UNIFORM_COMPONENTS (WebGL2)
  • pname = MIN_PROGRAM_TEXEL_OFFSET (WebGL2)
  • pname = PACK_ROW_LENGTH (WebGL2)
  • pname = PACK_SKIP_PIXELS (WebGL2)
  • pname = PACK_SKIP_ROWS (WebGL2)
  • pname = UNIFORM_BUFFER_OFFSET_ALIGNMENT (WebGL2)
  • pname = UNPACK_IMAGE_HEIGHT (WebGL2)
  • pname = UNPACK_ROW_LENGTH (WebGL2)
  • pname = UNPACK_SKIP_IMAGES (WebGL2)
  • pname = UNPACK_SKIP_PIXELS (WebGL2)
  • pname = UNPACK_SKIP_ROWS (WebGL2)
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterGLfloat Source

getParameterGLfloat :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe GLfloat)

Usage: getParameterGLfloat gl pname

Use when:

  • pname = DEPTH_CLEAR_VALUE
  • pname = LINE_WIDTH
  • pname = POLYGON_OFFSET_FACTOR
  • pname = POLYGON_OFFSET_UNITS
  • pname = SAMPLE_COVERAGE_VALUE
  • pname = MAX_TEXTURE_LOD_BIAS (WebGL2)
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterGLenum Source

getParameterGLenum :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe GLenum)

Usage: getParameterGLenum gl pname

Use when:

  • pname = ACTIVE_TEXTURE
  • pname = BLEND_DST_ALPHA
  • pname = BLEND_DST_RGB
  • pname = BLEND_EQUATION_ALPHA
  • pname = BLEND_EQUATION_RGB
  • pname = BLEND_SRC_ALPHA
  • pname = BLEND_SRC_RGB
  • pname = CULL_FACE_MODE
  • pname = DEPTH_FUNC
  • pname = FRONT_FACE
  • pname = GENERATE_MIPMAP_HINT
  • pname = IMPLEMENTATION_COLOR_READ_FORMAT
  • pname = IMPLEMENTATION_COLOR_READ_TYPE
  • pname = STENCIL_BACK_FAIL
  • pname = STENCIL_BACK_FUNC
  • pname = STENCIL_BACK_PASS_DEPTH_FAIL
  • pname = STENCIL_BACK_PASS_DEPTH_PASS
  • pname = STENCIL_FAIL
  • pname = STENCIL_FUNC
  • pname = STENCIL_PASS_DEPTH_FAIL
  • pname = STENCIL_PASS_DEPTH_PASS
  • pname = UNPACK_COLORSPACE_CONVERSION_WEBGL
  • pname = DRAW_BUFFERi (WebGL2)
  • pname = FRAGMENT_SHADER_DERIVATIVE_HINT (WebGL2)
  • pname = READ_BUFFER (WebGL2)
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterGLbooleanArray Source

getParameterGLbooleanArray :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe (Array GLboolean))

Usage: getParameterGLbooleanArray gl pname

Use when:

  • pname = COLOR_WRITEMASK
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterGLboolean Source

getParameterGLboolean :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe GLboolean)

Usage: getParameterGLboolean gl pname

Use when:

  • pname = BLEND
  • pname = CULL_FACE
  • pname = DEPTH_TEST
  • pname = DEPTH_WRITEMASK
  • pname = DITHER
  • pname = POLYGON_OFFSET_FILL
  • pname = SAMPLE_ALPHA_TO_COVERAGE
  • pname = SAMPLE_COVERAGE
  • pname = SAMPLE_COVERAGE_INVERT
  • pname = SCISSOR_TEST
  • pname = STENCIL_TEST
  • pname = UNPACK_FLIP_Y_WEBGL
  • pname = UNPACK_PREMULTIPLY_ALPHA_WEBGL
  • pname = RASTERIZER_DISCARD (WebGL2)
  • pname = TRANSFORM_FEEDBACK_ACTIVE (WebGL2)
  • pname = TRANSFORM_FEEDBACK_PAUSED (WebGL2)
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterFloat32Array Source

getParameterFloat32Array :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe (ArrayView Float32))

Usage: getParameterFloat32Array gl pname

Use when:

  • pname = ALIASED_LINE_WIDTH_RANGE
  • pname = ALIASED_POINT_SIZE_RANGE
  • pname = BLEND_COLOR
  • pname = COLOR_CLEAR_VALUE
  • pname = DEPTH_RANGE
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getParameterBoolean Source

getParameterBoolean :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe Boolean)

Usage: getParameterBoolean gl pname

Use when:

  • pname = GPU_DISJOINT_EXT (EXT_disjoint_timer_query, EXT_disjoint_timer_query_webgl2)
any getParameter (GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.3

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.

#getError Source

getError :: forall c. IsWebGLRenderingContext c => c -> Effect GLenum

Usage: getError gl

[WebGLHandlesContextLoss] GLenum getError();

Documentation: WebGL 1.0 spec, section 5.14.3

#getDrawingBufferWidth Source

getDrawingBufferWidth :: forall c. IsWebGLRenderingContext c => c -> Effect GLsizei

Usage: getDrawingBufferWidth gl

Documentation: WebGL 1.0 spec, section 5.14.1

#getDrawingBufferHeight Source

getDrawingBufferHeight :: forall c. IsWebGLRenderingContext c => c -> Effect GLsizei

Usage: getDrawingBufferHeight gl

Documentation: WebGL 1.0 spec, section 5.14.1

#getContextAttributes Source

getContextAttributes :: forall c. IsWebGLRenderingContext c => c -> Effect (Maybe WebGLContextAttributes)

Usage: getContextAttributes gl

[WebGLHandlesContextLoss] WebGLContextAttributes?
getContextAttributes();

Documentation: WebGL 1.0 spec, section 5.14.2

#getCanvas Source

getCanvas :: forall c. IsWebGLRenderingContext c => c -> Effect HTMLCanvasElement

Usage: getCanvas gl

Documentation: WebGL 1.0 spec, section 5.14.1

#frontFace Source

frontFace :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect Unit

Usage: frontFace gl mode

void frontFace (GLenum mode);

Documentation: WebGL 1.0 spec, section 5.14.3

#flush Source

flush :: forall c. IsWebGLRenderingContext c => c -> Effect Unit

Usage: flush gl

void flush();

Documentation: WebGL 1.0 spec, section 5.14.11

#finish Source

finish :: forall c. IsWebGLRenderingContext c => c -> Effect Unit

Usage: finish gl

void finish();

Documentation: WebGL 1.0 spec, section 5.14.11

#enable Source

enable :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect Unit

Usage: enable gl cap

void enable (GLenum cap);

Documentation: WebGL 1.0 spec, section 5.14.3

#drawElements Source

drawElements :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLsizei -> GLenum -> GLintptr -> Effect Unit

Usage: drawElements gl mode count type offset

void
drawElements ( GLenum mode
             , GLsizei count
             , GLenum type
             , GLintptr offset
             );

Documentation: WebGL 1.0 spec, section 5.14.11

#drawArrays Source

drawArrays :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLint -> GLsizei -> Effect Unit

Usage: drawArrays gl mode first count

void drawArrays (GLenum mode, GLint first, GLsizei count);

Documentation: WebGL 1.0 spec, section 5.14.11

#disable Source

disable :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect Unit

Usage: disable gl cap

void disable (GLenum cap);

Documentation: WebGL 1.0 spec, section 5.14.3

#depthRange Source

depthRange :: forall c. IsWebGLRenderingContext c => c -> GLclampf -> GLclampf -> Effect Unit

Usage: depthRange gl zNear zFar

void depthRange (GLclampf zNear, GLclampf zFar);

Documentation: WebGL 1.0 spec, section 5.14.3

#depthMask Source

depthMask :: forall c. IsWebGLRenderingContext c => c -> GLboolean -> Effect Unit

Usage: depthMask gl flag

void depthMask (GLboolean flag);

Documentation: WebGL 1.0 spec, section 5.14.3

#depthFunc Source

depthFunc :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect Unit

Usage: depthFunc gl func

void depthFunc (GLenum func);

Documentation: WebGL 1.0 spec, section 5.14.3

#cullFace Source

cullFace :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect Unit

Usage: cullFace gl mode

void cullFace (GLenum mode);

Documentation: WebGL 1.0 spec, section 5.14.3

#colorMask Source

colorMask :: forall c. IsWebGLRenderingContext c => c -> GLboolean -> GLboolean -> GLboolean -> GLboolean -> Effect Unit

Usage: colorMask gl red green blue alpha

void
colorMask ( GLboolean red
          , GLboolean green
          , GLboolean blue
          , GLboolean alpha
          );

Documentation: WebGL 1.0 spec, section 5.14.3

#clearStencil Source

clearStencil :: forall c. IsWebGLRenderingContext c => c -> GLint -> Effect Unit

Usage: clearStencil gl s

void clearStencil (GLint s);

Documentation: WebGL 1.0 spec, section 5.14.3

#clearDepth Source

clearDepth :: forall c. IsWebGLRenderingContext c => c -> GLclampf -> Effect Unit

Usage: clearDepth gl depth

void clearDepth (GLclampf depth);

Documentation: WebGL 1.0 spec, section 5.14.3

#clearColor Source

clearColor :: forall c. IsWebGLRenderingContext c => c -> GLclampf -> GLclampf -> GLclampf -> GLclampf -> Effect Unit

Usage: clearColor gl red green blue alpha

void
clearColor ( GLclampf red
           , GLclampf green
           , GLclampf blue
           , GLclampf alpha
           );

Documentation: WebGL 1.0 spec, section 5.14.3

#clear Source

clear :: forall c. IsWebGLRenderingContext c => c -> GLbitfield -> Effect Unit

Usage: clear gl mask

void clear (GLbitfield mask);

Documentation: WebGL 1.0 spec, section 5.14.11

#blendFuncSeparate Source

blendFuncSeparate :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLenum -> GLenum -> Effect Unit

Usage: blendFuncSeparate gl srcRGB dstRGB srcAlpha dstAlpha

void
blendFuncSeparate ( GLenum srcRGB
                  , GLenum dstRGB
                  , GLenum srcAlpha
                  , GLenum dstAlpha
                  );

Documentation: WebGL 1.0 spec, section 5.14.3

#blendFunc Source

blendFunc :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect Unit

Usage: blendFunc gl sfactor dfactor

void blendFunc (GLenum sfactor, GLenum dfactor);

Documentation: WebGL 1.0 spec, section 5.14.3

#blendEquationSeparate Source

blendEquationSeparate :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect Unit

Usage: blendEquationSeparate gl modeRGB modeAlpha

void blendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);

Documentation: WebGL 1.0 spec, section 5.14.3

#blendEquation Source

blendEquation :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect Unit

Usage: blendEquation gl mode

void blendEquation (GLenum mode);

Documentation: WebGL 1.0 spec, section 5.14.3

#blendColor Source

blendColor :: forall c. IsWebGLRenderingContext c => c -> GLclampf -> GLclampf -> GLclampf -> GLclampf -> Effect Unit

Usage: blendColor gl red green blue alpha

void
blendColor ( GLclampf red
           , GLclampf green
           , GLclampf blue
           , GLclampf alpha
           );

Documentation: WebGL 1.0 spec, section 5.14.3

#activeTexture Source

activeTexture :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect Unit

Usage: activeTexture gl texture

void activeTexture (GLenum texture);

Documentation: WebGL 1.0 spec, section 5.14.3

Re-exports from WebGL.Raw.WebGL1.WebGLShader

#shaderSource Source

shaderSource :: forall c. IsWebGLRenderingContext c => c -> WebGLShader -> String -> Effect Unit

Usage: shaderSource gl shader source

void shaderSource (WebGLShader shader, DOMString source);

Documentation: WebGL 1.0 spec, section 5.14.9

#isShader Source

isShader :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLShader -> Effect GLboolean

Usage: isShader gl shader

[WebGLHandlesContextLoss] GLboolean isShader (WebGLShader? shader);

Documentation: WebGL 1.0 spec, section 5.14.9

#getShaderSource Source

getShaderSource :: forall c. IsWebGLRenderingContext c => c -> WebGLShader -> Effect (Maybe String)

Usage: getShaderSource gl shader

DOMString? getShaderSource (WebGLShader shader);

Documentation: WebGL 1.0 spec, section 5.14.9

#getShaderPrecisionFormat Source

getShaderPrecisionFormat :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe WebGLShaderPrecisionFormat)

Usage: getShaderPrecisionFormat gl shadertype precisiontype

WebGLShaderPrecisionFormat?
getShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype);

Documentation: WebGL 1.0 spec, section 5.14.9

#getShaderParameterGLenum Source

getShaderParameterGLenum :: forall c. IsWebGLRenderingContext c => c -> WebGLShader -> GLenum -> Effect (Maybe GLenum)

Usage: getShaderParameterGLenum gl shader pname

Use when:

  • pname = SHADER_TYPE
any getShaderParameter (WebGLShader shader, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.9

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.

#getShaderParameterGLboolean Source

getShaderParameterGLboolean :: forall c. IsWebGLRenderingContext c => c -> WebGLShader -> GLenum -> Effect (Maybe GLboolean)

Usage: getShaderParameterGLboolean gl shader pname

Use when:

  • pname = COMPILE_STATUS
  • pname = DELETE_STATUS
any getShaderParameter (WebGLShader shader, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.9

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.

#getShaderInfoLog Source

getShaderInfoLog :: forall c. IsWebGLRenderingContext c => c -> WebGLShader -> Effect (Maybe String)

Usage: getShaderInfoLog gl shader

DOMString? getShaderInfoLog (WebGLShader shader);

Documentation: WebGL 1.0 spec, section 5.14.9

#deleteShader Source

deleteShader :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLShader -> Effect Unit

Usage: deleteShader gl shader

void deleteShader (WebGLShader? shader);

Documentation: WebGL 1.0 spec, section 5.14.9

#createShader Source

createShader :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect (Maybe WebGLShader)

Usage: createShader gl type

WebGLShader? createShader (GLenum type);

Documentation: WebGL 1.0 spec, section 5.14.9

#createProgram Source

createProgram :: forall c. IsWebGLRenderingContext c => c -> Effect (Maybe WebGLProgram)

Usage: createProgram gl

WebGLProgram? createProgram();

Documentation: WebGL 1.0 spec, section 5.14.9

#compileShader Source

compileShader :: forall c. IsWebGLRenderingContext c => c -> WebGLShader -> Effect Unit

Usage: compileShader gl shader

void compileShader (WebGLShader shader);

Documentation: WebGL 1.0 spec, section 5.14.9

Re-exports from WebGL.Raw.WebGL1.WebGLShaderPrecisionFormat

#getRangeMin Source

getRangeMin :: WebGLShaderPrecisionFormat -> Effect GLint

Usage: getRangeMin webglshaderprecisionformat

Documentation: WebGL 1.0 spec, section 5.12.1

#getRangeMax Source

getRangeMax :: WebGLShaderPrecisionFormat -> Effect GLint

Usage: getRangeMax webglshaderprecisionformat

Documentation: WebGL 1.0 spec, section 5.12.1

#getPrecision Source

getPrecision :: WebGLShaderPrecisionFormat -> Effect GLint

Usage: getPrecision webglshaderprecisionformat

Documentation: WebGL 1.0 spec, section 5.12.1

Re-exports from WebGL.Raw.WebGL1.WebGLTexture

#texSubImage2DImageSource Source

texSubImage2DImageSource :: forall t c. IsWebGLRenderingContext c => IsTexImageSource t => c -> GLenum -> GLint -> GLint -> GLint -> GLenum -> GLenum -> t -> Effect Unit

Usage: texSubImage2DImageSource gl target level xoffset yoffset format type source

void
texSubImage2D ( GLenum target
              , GLint level
              , GLint xoffset
              , GLint yoffset
              , GLenum format
              , GLenum type
              , TexImageSource source
              );

Documentation: WebGL 1.0 spec, section 5.14.8

#texSubImage2D Source

texSubImage2D :: forall c a. IsWebGLRenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> Maybe a -> Effect Unit

Usage: texSubImage2D gl target level xoffset yoffset width height format type pixels

void
texSubImage2D ( GLenum target
              , GLint level
              , GLint xoffset
              , GLint yoffset
              , GLsizei width
              , GLsizei height
              , GLenum format
              , GLenum type
              , [AllowShared] ArrayBufferView? pixels
              );

Documentation: WebGL 1.0 spec, section 5.14.8

#texParameteri Source

texParameteri :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLint -> Effect Unit

Usage: texParameteri gl target pname param

void texParameteri (GLenum target, GLenum pname, GLint param);

Documentation: WebGL 1.0 spec, section 5.14.8

#texParameterf Source

texParameterf :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLfloat -> Effect Unit

Usage: texParameterf gl target pname param

void texParameterf (GLenum target, GLenum pname, GLfloat param);

Documentation: WebGL 1.0 spec, section 5.14.8

#texImage2DImageSource Source

texImage2DImageSource :: forall t c. IsWebGLRenderingContext c => IsTexImageSource t => c -> GLenum -> GLint -> GLint -> GLenum -> GLenum -> t -> Effect Unit

Usage: texImage2DImageSource gl target level internalformat format type source

void
texImage2D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLenum format
           , GLenum type
           , TexImageSource source
           );

Documentation: WebGL 1.0 spec, section 5.14.8

#texImage2D Source

texImage2D :: forall c a. IsWebGLRenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> Maybe a -> Effect Unit

Usage: texImage2D gl target level internalformat width height border format type pixels

void
texImage2D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLsizei width
           , GLsizei height
           , GLint border
           , GLenum format
           , GLenum type
           , [AllowShared] ArrayBufferView? pixels
           );

Documentation: WebGL 1.0 spec, section 5.14.8

#isTexture Source

isTexture :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLTexture -> Effect GLboolean

Usage: isTexture gl texture

[WebGLHandlesContextLoss] GLboolean isTexture (WebGLTexture? texture);

Documentation: WebGL 1.0 spec, section 5.14.8

#getTexParameterGLenum Source

getTexParameterGLenum :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLenum)

Usage: getTexParameterGLenum gl target pname

Use when:

  • pname = TEXTURE_MAG_FILTER
  • pname = TEXTURE_MIN_FILTER
  • pname = TEXTURE_WRAP_S
  • pname = TEXTURE_WRAP_T
  • pname = TEXTURE_COMPARE_FUNC (WebGL2)
  • pname = TEXTURE_COMPARE_MODE (WebGL2)
  • pname = TEXTURE_WRAP_R (WebGL2)
any getTexParameter (GLenum target, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.8

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.

#generateMipmap Source

generateMipmap :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect Unit

Usage: generateMipmap gl target

void generateMipmap (GLenum target);

Documentation: WebGL 1.0 spec, section 5.14.8

#deleteTexture Source

deleteTexture :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLTexture -> Effect Unit

Usage: deleteTexture gl texture

void deleteTexture (WebGLTexture? texture);

Documentation: WebGL 1.0 spec, section 5.14.8

#createTexture Source

createTexture :: forall c. IsWebGLRenderingContext c => c -> Effect (Maybe WebGLTexture)

Usage: createTexture gl

WebGLTexture? createTexture();

Documentation: WebGL 1.0 spec, section 5.14.8

#copyTexSubImage2D Source

copyTexSubImage2D :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLint -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> Effect Unit

Usage: copyTexSubImage2D gl target level xoffset yoffset x y width height

void
copyTexSubImage2D ( GLenum target
                  , GLint level
                  , GLint xoffset
                  , GLint yoffset
                  , GLint x
                  , GLint y
                  , GLsizei width
                  , GLsizei height
                  );

Documentation: WebGL 1.0 spec, section 5.14.8

#copyTexImage2D Source

copyTexImage2D :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLint -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLint -> Effect Unit

Usage: copyTexImage2D gl target level internalformat x y width height border

void
copyTexImage2D ( GLenum target
               , GLint level
               , GLenum internalformat
               , GLint x
               , GLint y
               , GLsizei width
               , GLsizei height
               , GLint border
               );

Documentation: WebGL 1.0 spec, section 5.14.8

#bindTexture Source

bindTexture :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Maybe WebGLTexture -> Effect Unit

Usage: bindTexture gl target texture

void bindTexture (GLenum target, WebGLTexture? texture);

Documentation: WebGL 1.0 spec, section 5.14.8

Re-exports from WebGL.Raw.WebGL2.Enums

#gl_WAIT_FAILED Source

#gl_VERTEX_ATTRIB_ARRAY_INTEGER Source

#gl_VERTEX_ATTRIB_ARRAY_DIVISOR Source

#gl_VERTEX_ARRAY_BINDING Source

#gl_UNSIGNED_NORMALIZED Source

#gl_UNSIGNED_INT_VEC4 Source

#gl_UNSIGNED_INT_VEC3 Source

#gl_UNSIGNED_INT_VEC2 Source

#gl_UNSIGNED_INT_SAMPLER_CUBE Source

#gl_UNSIGNED_INT_SAMPLER_3D Source

#gl_UNSIGNED_INT_SAMPLER_2D_ARRAY Source

#gl_UNSIGNED_INT_SAMPLER_2D Source

#gl_UNSIGNED_INT_5_9_9_9_REV Source

#gl_UNSIGNED_INT_2_10_10_10_REV Source

#gl_UNSIGNED_INT_24_8 Source

#gl_UNSIGNED_INT_10F_11F_11F_REV Source

#gl_UNSIGNALED Source

#gl_UNPACK_SKIP_ROWS Source

#gl_UNPACK_SKIP_PIXELS Source

#gl_UNPACK_SKIP_IMAGES Source

#gl_UNPACK_ROW_LENGTH Source

#gl_UNPACK_IMAGE_HEIGHT Source

#gl_UNIFORM_TYPE Source

#gl_UNIFORM_SIZE Source

#gl_UNIFORM_OFFSET Source

#gl_UNIFORM_MATRIX_STRIDE Source

#gl_UNIFORM_IS_ROW_MAJOR Source

#gl_UNIFORM_BUFFER_START Source

#gl_UNIFORM_BUFFER_SIZE Source

#gl_UNIFORM_BUFFER_OFFSET_ALIGNMENT Source

#gl_UNIFORM_BUFFER_BINDING Source

#gl_UNIFORM_BUFFER Source

#gl_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER Source

#gl_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER Source

#gl_UNIFORM_BLOCK_INDEX Source

#gl_UNIFORM_BLOCK_DATA_SIZE Source

#gl_UNIFORM_BLOCK_BINDING Source

#gl_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES Source

#gl_UNIFORM_BLOCK_ACTIVE_UNIFORMS Source

#gl_UNIFORM_ARRAY_STRIDE Source

#gl_TRANSFORM_FEEDBACK_VARYINGS Source

#gl_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN Source

#gl_TRANSFORM_FEEDBACK_PAUSED Source

#gl_TRANSFORM_FEEDBACK_BUFFER_START Source

#gl_TRANSFORM_FEEDBACK_BUFFER_SIZE Source

#gl_TRANSFORM_FEEDBACK_BUFFER_MODE Source

#gl_TRANSFORM_FEEDBACK_BUFFER_BINDING Source

#gl_TRANSFORM_FEEDBACK_BUFFER Source

#gl_TRANSFORM_FEEDBACK_BINDING Source

#gl_TRANSFORM_FEEDBACK_ACTIVE Source

#gl_TRANSFORM_FEEDBACK Source

#gl_TIMEOUT_IGNORED Source

#gl_TIMEOUT_EXPIRED Source

#gl_TEXTURE_WRAP_R Source

#gl_TEXTURE_MIN_LOD Source

#gl_TEXTURE_MAX_LOD Source

#gl_TEXTURE_MAX_LEVEL Source

#gl_TEXTURE_IMMUTABLE_LEVELS Source

#gl_TEXTURE_IMMUTABLE_FORMAT Source

#gl_TEXTURE_COMPARE_MODE Source

#gl_TEXTURE_COMPARE_FUNC Source

#gl_TEXTURE_BINDING_3D Source

#gl_TEXTURE_BINDING_2D_ARRAY Source

#gl_TEXTURE_BASE_LEVEL Source

#gl_TEXTURE_3D Source

#gl_TEXTURE_2D_ARRAY Source

#gl_SYNC_STATUS Source

#gl_SYNC_GPU_COMMANDS_COMPLETE Source

#gl_SYNC_FLUSH_COMMANDS_BIT Source

#gl_SYNC_FLAGS Source

#gl_SYNC_FENCE Source

#gl_SYNC_CONDITION Source

#gl_STREAM_READ Source

#gl_STREAM_COPY Source

#gl_STATIC_READ Source

#gl_STATIC_COPY Source

#gl_SRGB8_ALPHA8 Source

#gl_SIGNED_NORMALIZED Source

#gl_SIGNALED Source

#gl_SEPARATE_ATTRIBS Source

#gl_SAMPLER_CUBE_SHADOW Source

#gl_SAMPLER_BINDING Source

#gl_SAMPLER_3D Source

#gl_SAMPLER_2D_SHADOW Source

#gl_SAMPLER_2D_ARRAY_SHADOW Source

#gl_SAMPLER_2D_ARRAY Source

#gl_RG_INTEGER Source

#gl_RGB_INTEGER Source

#gl_RGBA_INTEGER Source

#gl_RGBA8_SNORM Source

#gl_RGBA32UI Source

#gl_RGBA16UI Source

#gl_RGB8_SNORM Source

#gl_RGB10_A2UI Source

#gl_RGB10_A2 Source

#gl_RG8_SNORM Source

#gl_RENDERBUFFER_SAMPLES Source

#gl_RED_INTEGER Source

#gl_READ_FRAMEBUFFER_BINDING Source

#gl_READ_FRAMEBUFFER Source

#gl_READ_BUFFER Source

#gl_RASTERIZER_DISCARD Source

#gl_R8_SNORM Source

#gl_R11F_G11F_B10F Source

#gl_QUERY_RESULT_AVAILABLE Source

#gl_QUERY_RESULT Source

#gl_PIXEL_UNPACK_BUFFER_BINDING Source

#gl_PIXEL_UNPACK_BUFFER Source

#gl_PIXEL_PACK_BUFFER_BINDING Source

#gl_PIXEL_PACK_BUFFER Source

#gl_PACK_SKIP_ROWS Source

#gl_PACK_SKIP_PIXELS Source

#gl_PACK_ROW_LENGTH Source

#gl_OBJECT_TYPE Source

#gl_MIN_PROGRAM_TEXEL_OFFSET Source

#gl_MAX_VERTEX_UNIFORM_COMPONENTS Source

#gl_MAX_VERTEX_UNIFORM_BLOCKS Source

#gl_MAX_VERTEX_OUTPUT_COMPONENTS Source

#gl_MAX_VARYING_COMPONENTS Source

#gl_MAX_UNIFORM_BUFFER_BINDINGS Source

#gl_MAX_UNIFORM_BLOCK_SIZE Source

#gl_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS Source

#gl_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS Source

#gl_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS Source

#gl_MAX_TEXTURE_LOD_BIAS Source

#gl_MAX_SERVER_WAIT_TIMEOUT Source

#gl_MAX_SAMPLES Source

#gl_MAX_PROGRAM_TEXEL_OFFSET Source

#gl_MAX_FRAGMENT_UNIFORM_COMPONENTS Source

#gl_MAX_FRAGMENT_UNIFORM_BLOCKS Source

#gl_MAX_FRAGMENT_INPUT_COMPONENTS Source

#gl_MAX_ELEMENT_INDEX Source

#gl_MAX_ELEMENTS_VERTICES Source

#gl_MAX_ELEMENTS_INDICES Source

#gl_MAX_DRAW_BUFFERS Source

#gl_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS Source

#gl_MAX_COMBINED_UNIFORM_BLOCKS Source

#gl_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS Source

#gl_MAX_COLOR_ATTACHMENTS Source

#gl_MAX_CLIENT_WAIT_TIMEOUT_WEBGL Source

#gl_MAX_ARRAY_TEXTURE_LAYERS Source

#gl_MAX_3D_TEXTURE_SIZE Source

#gl_INVALID_INDEX Source

#gl_INT_SAMPLER_CUBE Source

#gl_INT_SAMPLER_3D Source

#gl_INT_SAMPLER_2D_ARRAY Source

#gl_INT_SAMPLER_2D Source

#gl_INT_2_10_10_10_REV Source

#gl_INTERLEAVED_ATTRIBS Source

#gl_HALF_FLOAT Source

#gl_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE Source

#gl_FRAMEBUFFER_DEFAULT Source

#gl_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER Source

#gl_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE Source

#gl_FRAMEBUFFER_ATTACHMENT_RED_SIZE Source

#gl_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE Source

#gl_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE Source

#gl_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE Source

#gl_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING Source

#gl_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE Source

#gl_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE Source

#gl_FRAGMENT_SHADER_DERIVATIVE_HINT Source

#gl_FLOAT_MAT4x3 Source

#gl_FLOAT_MAT4x2 Source

#gl_FLOAT_MAT3x4 Source

#gl_FLOAT_MAT3x2 Source

#gl_FLOAT_MAT2x4 Source

#gl_FLOAT_MAT2x3 Source

#gl_FLOAT_32_UNSIGNED_INT_24_8_REV Source

#gl_DYNAMIC_READ Source

#gl_DYNAMIC_COPY Source

#gl_DRAW_FRAMEBUFFER_BINDING Source

#gl_DRAW_FRAMEBUFFER Source

#gl_DRAW_BUFFER9 Source

#gl_DRAW_BUFFER8 Source

#gl_DRAW_BUFFER7 Source

#gl_DRAW_BUFFER6 Source

#gl_DRAW_BUFFER5 Source

#gl_DRAW_BUFFER4 Source

#gl_DRAW_BUFFER3 Source

#gl_DRAW_BUFFER2 Source

#gl_DRAW_BUFFER15 Source

#gl_DRAW_BUFFER14 Source

#gl_DRAW_BUFFER13 Source

#gl_DRAW_BUFFER12 Source

#gl_DRAW_BUFFER11 Source

#gl_DRAW_BUFFER10 Source

#gl_DRAW_BUFFER1 Source

#gl_DRAW_BUFFER0 Source

#gl_DEPTH_COMPONENT32F Source

#gl_DEPTH_COMPONENT24 Source

#gl_DEPTH32F_STENCIL8 Source

#gl_DEPTH24_STENCIL8 Source

#gl_CURRENT_QUERY Source

#gl_COPY_WRITE_BUFFER_BINDING Source

#gl_COPY_WRITE_BUFFER Source

#gl_COPY_READ_BUFFER_BINDING Source

#gl_COPY_READ_BUFFER Source

#gl_CONDITION_SATISFIED Source

#gl_COMPARE_REF_TO_TEXTURE Source

#gl_COLOR_ATTACHMENT9 Source

#gl_COLOR_ATTACHMENT8 Source

#gl_COLOR_ATTACHMENT7 Source

#gl_COLOR_ATTACHMENT6 Source

#gl_COLOR_ATTACHMENT5 Source

#gl_COLOR_ATTACHMENT4 Source

#gl_COLOR_ATTACHMENT3 Source

#gl_COLOR_ATTACHMENT2 Source

#gl_COLOR_ATTACHMENT15 Source

#gl_COLOR_ATTACHMENT14 Source

#gl_COLOR_ATTACHMENT13 Source

#gl_COLOR_ATTACHMENT12 Source

#gl_COLOR_ATTACHMENT11 Source

#gl_COLOR_ATTACHMENT10 Source

#gl_COLOR_ATTACHMENT1 Source

#gl_ANY_SAMPLES_PASSED_CONSERVATIVE Source

#gl_ANY_SAMPLES_PASSED Source

#gl_ALREADY_SIGNALED Source

#gl_ACTIVE_UNIFORM_BLOCKS Source

Re-exports from WebGL.Raw.WebGL2.UniformBufferObjects

#uniformBlockBinding Source

uniformBlockBinding :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> GLuint -> Effect Unit

Usage: uniformBlockBinding gl program uniformBlockIndex uniformBlockBinding

void
uniformBlockBinding ( WebGLProgram program
                    , GLuint uniformBlockIndex
                    , GLuint uniformBlockBinding
                    );

Documentation: WebGL 2.0 spec, section 3.7.16

#getUniformIndices Source

getUniformIndices :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array String -> Effect (Maybe (Array GLuint))

Usage: getUniformIndices gl program uniformNames

sequence<GLuint>?
getUniformIndices ( WebGLProgram program
                  , sequence<DOMString> uniformNames
                  );

Documentation: WebGL 2.0 spec, section 3.7.16

#getUniformBlockIndex Source

getUniformBlockIndex :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> String -> Effect GLuint

Usage: getUniformBlockIndex gl program uniformBlockName

GLuint
getUniformBlockIndex ( WebGLProgram program
                     , DOMString uniformBlockName
                     );

Documentation: WebGL 2.0 spec, section 3.7.16

#getActiveUniformsGLuintArray Source

getActiveUniformsGLuintArray :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array GLuint -> GLenum -> Effect (Maybe (Array GLuint))

Usage: getActiveUniformsGLuintArray gl program uniformIndices pname

Use when:

  • pname = UNIFORM_SIZE
any
getActiveUniforms ( WebGLProgram program
                  , sequence<GLuint> uniformIndices
                  , GLenum pname
                  );

Documentation: WebGL 2.0 spec, section 3.7.16

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.

#getActiveUniformsGLintArray Source

getActiveUniformsGLintArray :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array GLuint -> GLenum -> Effect (Maybe (Array GLint))

Usage: getActiveUniformsGLintArray gl program uniformIndices pname

Use when:

  • pname = UNIFORM_ARRAY_STRIDE
  • pname = UNIFORM_BLOCK_INDEX
  • pname = UNIFORM_MATRIX_STRIDE
  • pname = UNIFORM_OFFSET
any
getActiveUniforms ( WebGLProgram program
                  , sequence<GLuint> uniformIndices
                  , GLenum pname
                  );

Documentation: WebGL 2.0 spec, section 3.7.16

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.

#getActiveUniformsGLenumArray Source

getActiveUniformsGLenumArray :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array GLuint -> GLenum -> Effect (Maybe (Array GLenum))

Usage: getActiveUniformsGLenumArray gl program uniformIndices pname

Use when:

  • pname = UNIFORM_TYPE
any
getActiveUniforms ( WebGLProgram program
                  , sequence<GLuint> uniformIndices
                  , GLenum pname
                  );

Documentation: WebGL 2.0 spec, section 3.7.16

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.

#getActiveUniformsGLbooleanArray Source

getActiveUniformsGLbooleanArray :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array GLuint -> GLenum -> Effect (Maybe (Array GLboolean))

Usage: getActiveUniformsGLbooleanArray gl program uniformIndices pname

Use when:

  • pname = UNIFORM_IS_ROW_MAJOR
any
getActiveUniforms ( WebGLProgram program
                  , sequence<GLuint> uniformIndices
                  , GLenum pname
                  );

Documentation: WebGL 2.0 spec, section 3.7.16

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.

#getActiveUniformBlockParameterUint32Array Source

getActiveUniformBlockParameterUint32Array :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> GLenum -> Effect (Maybe (ArrayView Uint32))

Usage: getActiveUniformBlockParameterUint32Array gl program uniformBlockIndex pname

Use when:

  • pname = UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
any
getActiveUniformBlockParameter ( WebGLProgram program
                               , GLuint uniformBlockIndex
                               , GLenum pname
                               );

Documentation: WebGL 2.0 spec, section 3.7.16

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.

#getActiveUniformBlockParameterGLuint Source

getActiveUniformBlockParameterGLuint :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> GLenum -> Effect (Maybe GLuint)

Usage: getActiveUniformBlockParameterGLuint gl program uniformBlockIndex pname

Use when:

  • pname = UNIFORM_BLOCK_ACTIVE_UNIFORMS
  • pname = UNIFORM_BLOCK_BINDING
  • pname = UNIFORM_BLOCK_DATA_SIZE
any
getActiveUniformBlockParameter ( WebGLProgram program
                               , GLuint uniformBlockIndex
                               , GLenum pname
                               );

Documentation: WebGL 2.0 spec, section 3.7.16

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.

#getActiveUniformBlockParameterGLboolean Source

getActiveUniformBlockParameterGLboolean :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> GLenum -> Effect (Maybe GLboolean)

Usage: getActiveUniformBlockParameterGLboolean gl program uniformBlockIndex pname

Use when:

  • pname = UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
  • pname = UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
any
getActiveUniformBlockParameter ( WebGLProgram program
                               , GLuint uniformBlockIndex
                               , GLenum pname
                               );

Documentation: WebGL 2.0 spec, section 3.7.16

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.

#getActiveUniformBlockName Source

getActiveUniformBlockName :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> Effect (Maybe String)

Usage: getActiveUniformBlockName gl program uniformBlockIndex

DOMString?
getActiveUniformBlockName ( WebGLProgram program
                          , GLuint uniformBlockIndex
                          );

Documentation: WebGL 2.0 spec, section 3.7.16

#bindBufferRange Source

bindBufferRange :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLuint -> Maybe WebGLBuffer -> GLintptr -> GLsizeiptr -> Effect Unit

Usage: bindBufferRange gl target index buffer offset size

void
bindBufferRange ( GLenum target
                , GLuint index
                , WebGLBuffer? buffer
                , GLintptr offset
                , GLsizeiptr size
                );

Documentation: WebGL 2.0 spec, section 3.7.16

#bindBufferBase Source

bindBufferBase :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLuint -> Maybe WebGLBuffer -> Effect Unit

Usage: bindBufferBase gl target index buffer

void
bindBufferBase (GLenum target, GLuint index, WebGLBuffer? buffer);

Documentation: WebGL 2.0 spec, section 3.7.16

Re-exports from WebGL.Raw.WebGL2.Uniforms

#uniformMatrix4x3fv Source

uniformMatrix4x3fv :: forall f c. IsWebGL2RenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> GLboolean -> f -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: uniformMatrix4x3fv gl location transpose data srcOffset srcLength

void
uniformMatrix4x3fv ( WebGLUniformLocation? location
                   , GLboolean transpose
                   , Float32List data
                   , optional GLuint srcOffset = 0
                   , optional GLuint srcLength = 0
                   );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniformMatrix4x2fv Source

uniformMatrix4x2fv :: forall f c. IsWebGL2RenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> GLboolean -> f -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: uniformMatrix4x2fv gl location transpose data srcOffset srcLength

void
uniformMatrix4x2fv ( WebGLUniformLocation? location
                   , GLboolean transpose
                   , Float32List data
                   , optional GLuint srcOffset = 0
                   , optional GLuint srcLength = 0
                   );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniformMatrix4fv Source

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

Usage: uniformMatrix4fv gl location transpose data srcOffset srcLength

void
uniformMatrix4fv ( WebGLUniformLocation? location
                 , GLboolean transpose
                 , Float32List data
                 , optional GLuint srcOffset = 0
                 , optional GLuint srcLength = 0
                 );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniformMatrix3x4fv Source

uniformMatrix3x4fv :: forall f c. IsWebGL2RenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> GLboolean -> f -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: uniformMatrix3x4fv gl location transpose data srcOffset srcLength

void
uniformMatrix3x4fv ( WebGLUniformLocation? location
                   , GLboolean transpose
                   , Float32List data
                   , optional GLuint srcOffset = 0
                   , optional GLuint srcLength = 0
                   );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniformMatrix3x2fv Source

uniformMatrix3x2fv :: forall f c. IsWebGL2RenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> GLboolean -> f -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: uniformMatrix3x2fv gl location transpose data srcOffset srcLength

void
uniformMatrix3x2fv ( WebGLUniformLocation? location
                   , GLboolean transpose
                   , Float32List data
                   , optional GLuint srcOffset = 0
                   , optional GLuint srcLength = 0
                   );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniformMatrix3fv Source

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

Usage: uniformMatrix3fv gl location transpose data srcOffset srcLength

void
uniformMatrix3fv ( WebGLUniformLocation? location
                 , GLboolean transpose
                 , Float32List data
                 , optional GLuint srcOffset = 0
                 , optional GLuint srcLength = 0
                 );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniformMatrix2x4fv Source

uniformMatrix2x4fv :: forall f c. IsWebGL2RenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> GLboolean -> f -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: uniformMatrix2x4fv gl location transpose data srcOffset srcLength

void
uniformMatrix2x4fv ( WebGLUniformLocation? location
                   , GLboolean transpose
                   , Float32List data
                   , optional GLuint srcOffset = 0
                   , optional GLuint srcLength = 0
                   );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniformMatrix2x3fv Source

uniformMatrix2x3fv :: forall f c. IsWebGL2RenderingContext c => IsFloat32List f => c -> Maybe WebGLUniformLocation -> GLboolean -> f -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: uniformMatrix2x3fv gl location transpose data srcOffset srcLength

void
uniformMatrix2x3fv ( WebGLUniformLocation? location
                   , GLboolean transpose
                   , Float32List data
                   , optional GLuint srcOffset = 0
                   , optional GLuint srcLength = 0
                   );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniformMatrix2fv Source

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

Usage: uniformMatrix2fv gl location transpose data srcOffset srcLength

void
uniformMatrix2fv ( WebGLUniformLocation? location
                 , GLboolean transpose
                 , Float32List data
                 , optional GLuint srcOffset = 0
                 , optional GLuint srcLength = 0
                 );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform4uiv Source

uniform4uiv :: forall u c. IsWebGL2RenderingContext c => IsUint32List u => c -> Maybe WebGLUniformLocation -> u -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: uniform4uiv gl location data srcOffset srcLength

void
uniform4uiv ( WebGLUniformLocation? location
            , Uint32List data
            , optional GLuint srcOffset = 0
            , optional GLuint srcLength = 0
            );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform4ui Source

uniform4ui :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLUniformLocation -> GLuint -> GLuint -> GLuint -> GLuint -> Effect Unit

Usage: uniform4ui gl location v0 v1 v2 v3

void
uniform4ui ( WebGLUniformLocation? location
           , GLuint v0
           , GLuint v1
           , GLuint v2
           , GLuint v3
           );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform4iv Source

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

Usage: uniform4iv gl location data srcOffset srcLength

void
uniform4iv ( WebGLUniformLocation? location
           , Int32List data
           , optional GLuint srcOffset = 0
           , optional GLuint srcLength = 0
           );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform4fv Source

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

Usage: uniform4fv gl location data srcOffset srcLength

void
uniform4fv ( WebGLUniformLocation? location
           , Float32List data
           , optional GLuint srcOffset = 0
           , optional GLuint srcLength = 0
           );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform3uiv Source

uniform3uiv :: forall u c. IsWebGL2RenderingContext c => IsUint32List u => c -> Maybe WebGLUniformLocation -> u -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: uniform3uiv gl location data srcOffset srcLength

void
uniform3uiv ( WebGLUniformLocation? location
            , Uint32List data
            , optional GLuint srcOffset = 0
            , optional GLuint srcLength = 0
            );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform3ui Source

uniform3ui :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLUniformLocation -> GLuint -> GLuint -> GLuint -> Effect Unit

Usage: uniform3ui gl location v0 v1 v2

void
uniform3ui ( WebGLUniformLocation? location
           , GLuint v0
           , GLuint v1
           , GLuint v2
           );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform3iv Source

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

Usage: uniform3iv gl location data srcOffset srcLength

void
uniform3iv ( WebGLUniformLocation? location
           , Int32List data
           , optional GLuint srcOffset = 0
           , optional GLuint srcLength = 0
           );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform3fv Source

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

Usage: uniform3fv gl location data srcOffset srcLength

void
uniform3fv ( WebGLUniformLocation? location
           , Float32List data
           , optional GLuint srcOffset = 0
           , optional GLuint srcLength = 0
           );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform2uiv Source

uniform2uiv :: forall u c. IsWebGL2RenderingContext c => IsUint32List u => c -> Maybe WebGLUniformLocation -> u -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: uniform2uiv gl location data srcOffset srcLength

void
uniform2uiv ( WebGLUniformLocation? location
            , Uint32List data
            , optional GLuint srcOffset = 0
            , optional GLuint srcLength = 0
            );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform2ui Source

uniform2ui :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLUniformLocation -> GLuint -> GLuint -> Effect Unit

Usage: uniform2ui gl location v0 v1

void
uniform2ui (WebGLUniformLocation? location, GLuint v0, GLuint v1);

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform2iv Source

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

Usage: uniform2iv gl location data srcOffset srcLength

void
uniform2iv ( WebGLUniformLocation? location
           , Int32List data
           , optional GLuint srcOffset = 0
           , optional GLuint srcLength = 0
           );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform2fv Source

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

Usage: uniform2fv gl location data srcOffset srcLength

void
uniform2fv ( WebGLUniformLocation? location
           , Float32List data
           , optional GLuint srcOffset = 0
           , optional GLuint srcLength = 0
           );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform1uiv Source

uniform1uiv :: forall u c. IsWebGL2RenderingContext c => IsUint32List u => c -> Maybe WebGLUniformLocation -> u -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: uniform1uiv gl location data srcOffset srcLength

void
uniform1uiv ( WebGLUniformLocation? location
            , Uint32List data
            , optional GLuint srcOffset = 0
            , optional GLuint srcLength = 0
            );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform1ui Source

uniform1ui :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLUniformLocation -> GLuint -> Effect Unit

Usage: uniform1ui gl location v0

void uniform1ui (WebGLUniformLocation? location, GLuint v0);

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform1iv Source

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

Usage: uniform1iv gl location data srcOffset srcLength

void
uniform1iv ( WebGLUniformLocation? location
           , Int32List data
           , optional GLuint srcOffset = 0
           , optional GLuint srcLength = 0
           );

Documentation: WebGL 2.0 spec, section 3.7.8

#uniform1fv Source

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

Usage: uniform1fv gl location data srcOffset srcLength

void
uniform1fv ( WebGLUniformLocation? location
           , Float32List data
           , optional GLuint srcOffset = 0
           , optional GLuint srcLength = 0
           );

Documentation: WebGL 2.0 spec, section 3.7.8

#getUniformUint32Array Source

getUniformUint32Array :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> WebGLUniformLocation -> Effect (Maybe (ArrayView Uint32))

Usage: getUniformUint32Array gl program location

Use when:

  • uniform type is uvec2
  • uniform type is uvec3
  • uniform type is uvec4
any getUniform (WebGLProgram program, WebGLUniformLocation location);

Documentation: WebGL 2.0 spec, section 3.7.8

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.

#getUniformGLuint Source

getUniformGLuint :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> WebGLUniformLocation -> Effect (Maybe GLuint)

Usage: getUniformGLuint gl program location

Use when:

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

Documentation: WebGL 2.0 spec, section 3.7.8

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.

Re-exports from WebGL.Raw.WebGL2.VertexAttributes

#vertexAttribIPointer Source

vertexAttribIPointer :: forall c. IsWebGL2RenderingContext c => c -> GLuint -> GLint -> GLenum -> GLsizei -> GLintptr -> Effect Unit

Usage: vertexAttribIPointer gl index size type stride offset

void
vertexAttribIPointer ( GLuint index
                     , GLint size
                     , GLenum type
                     , GLsizei stride
                     , GLintptr offset
                     );

Documentation: WebGL 2.0 spec, section 3.7.8

#vertexAttribI4uiv Source

vertexAttribI4uiv :: forall u c. IsWebGL2RenderingContext c => IsUint32List u => c -> GLuint -> u -> Effect Unit

Usage: vertexAttribI4uiv gl index values

void vertexAttribI4uiv (GLuint index, Uint32List values);

Documentation: WebGL 2.0 spec, section 3.7.8

#vertexAttribI4ui Source

vertexAttribI4ui :: forall c. IsWebGL2RenderingContext c => c -> GLuint -> GLuint -> GLuint -> GLuint -> GLuint -> Effect Unit

Usage: vertexAttribI4ui gl index x y z w

void
vertexAttribI4ui ( GLuint index
                 , GLuint x
                 , GLuint y
                 , GLuint z
                 , GLuint w
                 );

Documentation: WebGL 2.0 spec, section 3.7.8

#vertexAttribI4iv Source

vertexAttribI4iv :: forall i c. IsWebGL2RenderingContext c => IsInt32List i => c -> GLuint -> i -> Effect Unit

Usage: vertexAttribI4iv gl index values

void vertexAttribI4iv (GLuint index, Int32List values);

Documentation: WebGL 2.0 spec, section 3.7.8

#vertexAttribI4i Source

vertexAttribI4i :: forall c. IsWebGL2RenderingContext c => c -> GLuint -> GLint -> GLint -> GLint -> GLint -> Effect Unit

Usage: vertexAttribI4i gl index x y z w

void
vertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);

Documentation: WebGL 2.0 spec, section 3.7.8

#getVertexAttribUint32Array Source

getVertexAttribUint32Array :: forall c. IsWebGL2RenderingContext c => c -> GLuint -> GLenum -> Effect (Maybe (ArrayView Uint32))

Usage: getVertexAttribUint32Array gl index pname

Use when:

  • pname = CURRENT_VERTEX_ATTRIB
any getVertexAttrib (GLuint index, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.8

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.

#getVertexAttribInt32Array Source

getVertexAttribInt32Array :: forall c. IsWebGL2RenderingContext c => c -> GLuint -> GLenum -> Effect (Maybe (ArrayView Int32))

Usage: getVertexAttribInt32Array gl index pname

Use when:

  • pname = CURRENT_VERTEX_ATTRIB
any getVertexAttrib (GLuint index, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.8

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.

Re-exports from WebGL.Raw.WebGL2.WebGL2RenderingContext

#vertexAttribDivisor Source

vertexAttribDivisor :: forall c. IsWebGL2RenderingContext c => c -> GLuint -> GLuint -> Effect Unit

Usage: vertexAttribDivisor gl index divisor

void vertexAttribDivisor (GLuint index, GLuint divisor);

Documentation: WebGL 2.0 spec, section 3.7.9

#readPixelsPackBuffer Source

readPixelsPackBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> GLintptr -> Effect Unit

Usage: readPixelsPackBuffer gl x y width height format type offset

void
readPixels ( GLint x
           , GLint y
           , GLsizei width
           , GLsizei height
           , GLenum format
           , GLenum type
           , GLintptr offset
           );

Documentation: WebGL 2.0 spec, section 3.7.10

#readPixels Source

readPixels :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> a -> GLuint -> Effect Unit

Usage: readPixels gl x y width height format type dstData dstOffset

void
readPixels ( GLint x
           , GLint y
           , GLsizei width
           , GLsizei height
           , GLenum format
           , GLenum type
           , [AllowShared] ArrayBufferView dstData
           , GLuint dstOffset
           );

Documentation: WebGL 2.0 spec, section 3.7.10

#getWebGL2RenderingContext Source

getWebGL2RenderingContext :: HTMLCanvasElement -> Maybe WebGLContextAttributes -> Effect (Maybe WebGL2RenderingContext)

Usage: getWebGL2RenderingContext canvas attributes

#getParameterWebGLVertexArrayObject Source

getParameterWebGLVertexArrayObject :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> Effect (Maybe WebGLVertexArrayObject)

Usage: getParameterWebGLVertexArrayObject gl pname

Use when:

  • pname = VERTEX_ARRAY_BINDING
any getParameter (GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.2

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.

#getParameterWebGLTransformFeedback Source

getParameterWebGLTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> Effect (Maybe WebGLTransformFeedback)

Usage: getParameterWebGLTransformFeedback gl pname

Use when:

  • pname = TRANSFORM_FEEDBACK_BINDING
any getParameter (GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.2

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.

#getParameterWebGLSampler Source

getParameterWebGLSampler :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> Effect (Maybe WebGLSampler)

Usage: getParameterWebGLSampler gl pname

Use when:

  • pname = SAMPLER_BINDING
any getParameter (GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.2

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.

#getParameterGLint64 Source

getParameterGLint64 :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> Effect (Maybe GLint64)

Usage: getParameterGLint64 gl pname

Use when:

  • pname = MAX_CLIENT_WAIT_TIMEOUT_WEBGL
  • pname = MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
  • pname = MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
  • pname = MAX_ELEMENT_INDEX
  • pname = MAX_SERVER_WAIT_TIMEOUT
  • pname = MAX_UNIFORM_BLOCK_SIZE
any getParameter (GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.2

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.

#getIndexedParameterWebGLBuffer Source

getIndexedParameterWebGLBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLuint -> Effect (Maybe WebGLBuffer)

Usage: getIndexedParameterWebGLBuffer gl target index

Use when:

  • target = TRANSFORM_FEEDBACK_BUFFER_BINDING
  • target = UNIFORM_BUFFER_BINDING
any getIndexedParameter (GLenum target, GLuint index);

Documentation: WebGL 2.0 spec, section 3.7.2

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.

#getIndexedParameterGLsizeiptr Source

getIndexedParameterGLsizeiptr :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLuint -> Effect (Maybe GLsizeiptr)

Usage: getIndexedParameterGLsizeiptr gl target index

Use when:

  • target = TRANSFORM_FEEDBACK_BUFFER_SIZE
  • target = UNIFORM_BUFFER_SIZE
any getIndexedParameter (GLenum target, GLuint index);

Documentation: WebGL 2.0 spec, section 3.7.2

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.

#getIndexedParameterGLintptr Source

getIndexedParameterGLintptr :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLuint -> Effect (Maybe GLintptr)

Usage: getIndexedParameterGLintptr gl target index

Use when:

  • target = TRANSFORM_FEEDBACK_BUFFER_START
  • target = UNIFORM_BUFFER_START
any getIndexedParameter (GLenum target, GLuint index);

Documentation: WebGL 2.0 spec, section 3.7.2

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.

#drawRangeElements Source

drawRangeElements :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLuint -> GLuint -> GLsizei -> GLenum -> GLintptr -> Effect Unit

Usage: drawRangeElements gl mode start end count type offset

void
drawRangeElements ( GLenum mode
                  , GLuint start
                  , GLuint end
                  , GLsizei count
                  , GLenum type
                  , GLintptr offset
                  );

Documentation: WebGL 2.0 spec, section 3.7.9

#drawElementsInstanced Source

drawElementsInstanced :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLsizei -> GLenum -> GLintptr -> GLsizei -> Effect Unit

Usage: drawElementsInstanced gl mode count type offset instanceCount

void
drawElementsInstanced ( GLenum mode
                      , GLsizei count
                      , GLenum type
                      , GLintptr offset
                      , GLsizei instanceCount
                      );

Documentation: WebGL 2.0 spec, section 3.7.9

#drawBuffers Source

drawBuffers :: forall c. IsWebGL2RenderingContext c => c -> Array GLenum -> Effect Unit

Usage: drawBuffers gl buffers

void drawBuffers (sequence<GLenum> buffers);

Documentation: WebGL 2.0 spec, section 3.7.11

#drawArraysInstanced Source

drawArraysInstanced :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLsizei -> GLsizei -> Effect Unit

Usage: drawArraysInstanced gl mode first count instanceCount

void
drawArraysInstanced ( GLenum mode
                    , GLint first
                    , GLsizei count
                    , GLsizei instanceCount
                    );

Documentation: WebGL 2.0 spec, section 3.7.9

#clearBufferuiv Source

clearBufferuiv :: forall u c. IsWebGL2RenderingContext c => IsUint32List u => c -> GLenum -> GLint -> u -> Maybe GLuint -> Effect Unit

Usage: clearBufferuiv gl buffer drawbuffer values srcOffset

void
clearBufferuiv ( GLenum buffer
               , GLint drawbuffer
               , Uint32List values
               , optional GLuint srcOffset = 0
               );

#clearBufferiv Source

clearBufferiv :: forall i c. IsWebGL2RenderingContext c => IsInt32List i => c -> GLenum -> GLint -> i -> Maybe GLuint -> Effect Unit

Usage: clearBufferiv gl buffer drawbuffer values srcOffset

void
clearBufferiv ( GLenum buffer
              , GLint drawbuffer
              , Int32List values
              , optional GLuint srcOffset = 0
              );

#clearBufferfv Source

clearBufferfv :: forall f c. IsWebGL2RenderingContext c => IsFloat32List f => c -> GLenum -> GLint -> f -> Maybe GLuint -> Effect Unit

Usage: clearBufferfv gl buffer drawbuffer values srcOffset

void
clearBufferfv ( GLenum buffer
              , GLint drawbuffer
              , Float32List values
              , optional GLuint srcOffset = 0
              );

#clearBufferfi Source

clearBufferfi :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLfloat -> GLint -> Effect Unit

Usage: clearBufferfi gl buffer drawbuffer depth stencil

void
clearBufferfi ( GLenum buffer
              , GLint drawbuffer
              , GLfloat depth
              , GLint stencil
              );

Re-exports from WebGL.Raw.WebGL2.WebGLBuffer

#getBufferSubData Source

getBufferSubData :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLintptr -> a -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: getBufferSubData gl target srcByteOffset dstBuffer dstOffset length

void
getBufferSubData ( GLenum target
                 , GLintptr srcByteOffset
                 , [AllowShared] ArrayBufferView dstBuffer
                 , optional GLuint dstOffset = 0
                 , optional GLuint length = 0
                 );

Documentation: WebGL 2.0 spec, section 3.7.3

#copyBufferSubData Source

copyBufferSubData :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLenum -> GLintptr -> GLintptr -> GLsizeiptr -> Effect Unit

Usage: copyBufferSubData gl readTarget writeTarget readOffset writeOffset size

void
copyBufferSubData ( GLenum readTarget
                  , GLenum writeTarget
                  , GLintptr readOffset
                  , GLintptr writeOffset
                  , GLsizeiptr size
                  );

Documentation: WebGL 2.0 spec, section 3.7.3

#bufferSubData Source

bufferSubData :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLintptr -> a -> GLuint -> Maybe GLuint -> Effect Unit

Usage: bufferSubData gl target dstByteOffset srcData srcOffset length

void
bufferSubData ( GLenum target
              , GLintptr dstByteOffset
              , [AllowShared] ArrayBufferView srcData
              , GLuint srcOffset
              , optional GLuint length = 0
              );

Documentation: WebGL 2.0 spec, section 3.7.3

#bufferData Source

bufferData :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> a -> GLenum -> GLuint -> Maybe GLuint -> Effect Unit

Usage: bufferData gl target srcData usage srcOffset length

void
bufferData ( GLenum target
           , [AllowShared] ArrayBufferView srcData
           , GLenum usage
           , GLuint srcOffset
           , optional GLuint length = 0
           );

Documentation: WebGL 2.0 spec, section 3.7.3

Re-exports from WebGL.Raw.WebGL2.WebGLFramebuffer

#readBuffer Source

readBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> Effect Unit

Usage: readBuffer gl src

void readBuffer (GLenum src);

Documentation: WebGL 2.0 spec, section 3.7.4

#invalidateSubFramebuffer Source

invalidateSubFramebuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> Array GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> Effect Unit

Usage: invalidateSubFramebuffer gl target attachments x y width height

void
invalidateSubFramebuffer ( GLenum target
                         , sequence<GLenum> attachments
                         , GLint x
                         , GLint y
                         , GLsizei width
                         , GLsizei height
                         );

Documentation: WebGL 2.0 spec, section 3.7.4

#invalidateFramebuffer Source

invalidateFramebuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> Array GLenum -> Effect Unit

Usage: invalidateFramebuffer gl target attachments

void
invalidateFramebuffer (GLenum target, sequence<GLenum> attachments);

Documentation: WebGL 2.0 spec, section 3.7.4

#framebufferTextureLayer Source

framebufferTextureLayer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLenum -> Maybe WebGLTexture -> GLint -> GLint -> Effect Unit

Usage: framebufferTextureLayer gl target attachment texture level layer

void
framebufferTextureLayer ( GLenum target
                        , GLenum attachment
                        , WebGLTexture? texture
                        , GLint level
                        , GLint layer
                        );

Documentation: WebGL 2.0 spec, section 3.7.4

#blitFramebuffer Source

blitFramebuffer :: forall c. IsWebGL2RenderingContext c => c -> GLint -> GLint -> GLint -> GLint -> GLint -> GLint -> GLint -> GLint -> GLbitfield -> GLenum -> Effect Unit

Usage: blitFramebuffer gl srcX0 srcY0 srcX1 srcY1 dstX0 dstY0 dstX1 dstY1 mask filter

void
blitFramebuffer ( GLint srcX0
                , GLint srcY0
                , GLint srcX1
                , GLint srcY1
                , GLint dstX0
                , GLint dstY0
                , GLint dstX1
                , GLint dstY1
                , GLbitfield mask
                , GLenum filter
                );

Documentation: WebGL 2.0 spec, section 3.7.4

Re-exports from WebGL.Raw.WebGL2.WebGLProgram

#getProgramParameterGLenum Source

getProgramParameterGLenum :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLenum -> Effect (Maybe GLenum)

Usage: getProgramParameterGLenum gl program pname

Use when:

  • pname = TRANSFORM_FEEDBACK_BUFFER_MODE
any getProgramParameter (WebGLProgram program, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.7

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.

#getFragDataLocation Source

getFragDataLocation :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> String -> Effect GLint

Usage: getFragDataLocation gl program name

[WebGLHandlesContextLoss] GLint
getFragDataLocation (WebGLProgram program, DOMString name);

Documentation: WebGL 2.0 spec, section 3.7.7

Re-exports from WebGL.Raw.WebGL2.WebGLQuery

#isQuery Source

isQuery :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLQuery -> Effect GLboolean

Usage: isQuery gl query

[WebGLHandlesContextLoss] GLboolean isQuery (WebGLQuery? query);

Documentation: WebGL 2.0 spec, section 3.7.12

#getQueryParameterGLuint Source

getQueryParameterGLuint :: forall c. IsWebGL2RenderingContext c => c -> WebGLQuery -> GLenum -> Effect (Maybe GLuint)

Usage: getQueryParameterGLuint gl query pname

Use when:

  • pname = QUERY_RESULT
any getQueryParameter (WebGLQuery query, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.12

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.

#getQueryParameterGLboolean Source

getQueryParameterGLboolean :: forall c. IsWebGL2RenderingContext c => c -> WebGLQuery -> GLenum -> Effect (Maybe GLboolean)

Usage: getQueryParameterGLboolean gl query pname

Use when:

  • pname = QUERY_RESULT_AVAILABLE
any getQueryParameter (WebGLQuery query, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.12

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.

#getQuery Source

getQuery :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe WebGLQuery)

Usage: getQuery gl target pname

WebGLQuery? getQuery (GLenum target, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.12

#endQuery Source

endQuery :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> Effect Unit

Usage: endQuery gl target

void endQuery (GLenum target);

Documentation: WebGL 2.0 spec, section 3.7.12

#deleteQuery Source

deleteQuery :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLQuery -> Effect Unit

Usage: deleteQuery gl query

void deleteQuery (WebGLQuery? query);

Documentation: WebGL 2.0 spec, section 3.7.12

#createQuery Source

createQuery :: forall c. IsWebGL2RenderingContext c => c -> Effect (Maybe WebGLQuery)

Usage: createQuery gl

WebGLQuery? createQuery();

Documentation: WebGL 2.0 spec, section 3.7.12

#beginQuery Source

beginQuery :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> WebGLQuery -> Effect Unit

Usage: beginQuery gl target query

void beginQuery (GLenum target, WebGLQuery query);

Documentation: WebGL 2.0 spec, section 3.7.12

Re-exports from WebGL.Raw.WebGL2.WebGLRenderbuffer

#renderbufferStorageMultisample Source

renderbufferStorageMultisample :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> Effect Unit

Usage: renderbufferStorageMultisample gl target samples internalformat width height

void
renderbufferStorageMultisample ( GLenum target
                               , GLsizei samples
                               , GLenum internalformat
                               , GLsizei width
                               , GLsizei height
                               );

Documentation: WebGL 2.0 spec, section 3.7.5

#getInternalformatParameterInt32Array Source

getInternalformatParameterInt32Array :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLenum -> GLenum -> Effect (Maybe (ArrayView Int32))

Usage: getInternalformatParameterInt32Array gl target internalformat pname

Use when:

  • pname = SAMPLES
any
getInternalformatParameter ( GLenum target
                           , GLenum internalformat
                           , GLenum pname
                           );

Documentation: WebGL 2.0 spec, section 3.7.5

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.

Re-exports from WebGL.Raw.WebGL2.WebGLSampler

#samplerParameteri Source

samplerParameteri :: forall c. IsWebGL2RenderingContext c => c -> WebGLSampler -> GLenum -> GLint -> Effect Unit

Usage: samplerParameteri gl sampler pname param

void
samplerParameteri (WebGLSampler sampler, GLenum pname, GLint param);

Documentation: WebGL 2.0 spec, section 3.7.13

#samplerParameterf Source

samplerParameterf :: forall c. IsWebGL2RenderingContext c => c -> WebGLSampler -> GLenum -> GLfloat -> Effect Unit

Usage: samplerParameterf gl sampler pname param

void
samplerParameterf (WebGLSampler sampler, GLenum pname, GLfloat param);

Documentation: WebGL 2.0 spec, section 3.7.13

#isSampler Source

isSampler :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLSampler -> Effect GLboolean

Usage: isSampler gl sampler

[WebGLHandlesContextLoss] GLboolean isSampler (WebGLSampler? sampler);

Documentation: WebGL 2.0 spec, section 3.7.13

#getSamplerParameterGLfloat Source

getSamplerParameterGLfloat :: forall c. IsWebGL2RenderingContext c => c -> WebGLSampler -> GLenum -> Effect (Maybe GLfloat)

Usage: getSamplerParameterGLfloat gl sampler pname

Use when:

  • pname = TEXTURE_MAX_LOD
  • pname = TEXTURE_MIN_LOD
any getSamplerParameter (WebGLSampler sampler, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.13

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.

#getSamplerParameterGLenum Source

getSamplerParameterGLenum :: forall c. IsWebGL2RenderingContext c => c -> WebGLSampler -> GLenum -> Effect (Maybe GLenum)

Usage: getSamplerParameterGLenum gl sampler pname

Use when:

  • pname = TEXTURE_COMPARE_FUNC
  • pname = TEXTURE_COMPARE_MODE
  • pname = TEXTURE_MAG_FILTER
  • pname = TEXTURE_MIN_FILTER
  • pname = TEXTURE_WRAP_R
  • pname = TEXTURE_WRAP_S
  • pname = TEXTURE_WRAP_T
any getSamplerParameter (WebGLSampler sampler, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.13

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.

#deleteSampler Source

deleteSampler :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLSampler -> Effect Unit

Usage: deleteSampler gl sampler

void deleteSampler (WebGLSampler? sampler);

Documentation: WebGL 2.0 spec, section 3.7.13

#createSampler Source

createSampler :: forall c. IsWebGL2RenderingContext c => c -> Effect (Maybe WebGLSampler)

Usage: createSampler gl

WebGLSampler? createSampler();

Documentation: WebGL 2.0 spec, section 3.7.13

#bindSampler Source

bindSampler :: forall c. IsWebGL2RenderingContext c => c -> GLuint -> Maybe WebGLSampler -> Effect Unit

Usage: bindSampler gl unit sampler

void bindSampler (GLuint unit, WebGLSampler? sampler);

Documentation: WebGL 2.0 spec, section 3.7.13

Re-exports from WebGL.Raw.WebGL2.WebGLSync

#waitSync Source

waitSync :: forall c. IsWebGL2RenderingContext c => c -> WebGLSync -> GLbitfield -> GLint64 -> Effect Unit

Usage: waitSync gl sync flags timeout

void waitSync (WebGLSync sync, GLbitfield flags, GLint64 timeout);

Documentation: WebGL 2.0 spec, section 3.7.14

#isSync Source

isSync :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLSync -> Effect GLboolean

Usage: isSync gl sync

[WebGLHandlesContextLoss] GLboolean isSync (WebGLSync? sync);

Documentation: WebGL 2.0 spec, section 3.7.14

#getSyncParameterGLenum Source

getSyncParameterGLenum :: forall c. IsWebGL2RenderingContext c => c -> WebGLSync -> GLenum -> Effect (Maybe GLenum)

Usage: getSyncParameterGLenum gl sync pname

Use when:

  • pname = OBJECT_TYPE
  • pname = SYNC_CONDITION
  • pname = SYNC_STATUS
any getSyncParameter (WebGLSync sync, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.14

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.

#getSyncParameterGLbitfield Source

getSyncParameterGLbitfield :: forall c. IsWebGL2RenderingContext c => c -> WebGLSync -> GLenum -> Effect (Maybe GLbitfield)

Usage: getSyncParameterGLbitfield gl sync pname

Use when:

  • pname = SYNC_FLAGS
any getSyncParameter (WebGLSync sync, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.14

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.

#fenceSync Source

fenceSync :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLbitfield -> Effect (Maybe WebGLSync)

Usage: fenceSync gl condition flags

WebGLSync? fenceSync (GLenum condition, GLbitfield flags);

Documentation: WebGL 2.0 spec, section 3.7.14

#deleteSync Source

deleteSync :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLSync -> Effect Unit

Usage: deleteSync gl sync

void deleteSync (WebGLSync? sync);

Documentation: WebGL 2.0 spec, section 3.7.14

#clientWaitSync Source

clientWaitSync :: forall c. IsWebGL2RenderingContext c => c -> WebGLSync -> GLbitfield -> GLuint64 -> Effect GLenum

Usage: clientWaitSync gl sync flags timeout

GLenum
clientWaitSync (WebGLSync sync, GLbitfield flags, GLuint64 timeout);

Documentation: WebGL 2.0 spec, section 3.7.14

Re-exports from WebGL.Raw.WebGL2.WebGLTexture

#texSubImage3DUnpackBuffer Source

texSubImage3DUnpackBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLenum -> GLintptr -> Effect Unit

Usage: texSubImage3DUnpackBuffer gl target level xoffset yoffset zoffset width height depth format type pboOffset

void
texSubImage3D ( GLenum target
              , GLint level
              , GLint xoffset
              , GLint yoffset
              , GLint zoffset
              , GLsizei width
              , GLsizei height
              , GLsizei depth
              , GLenum format
              , GLenum type
              , GLintptr pboOffset
              );

Documentation: WebGL 2.0 spec, section 3.7.6

#texSubImage3DImageSource Source

texSubImage3DImageSource :: forall t c. IsWebGL2RenderingContext c => IsTexImageSource t => c -> GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLenum -> t -> Effect Unit

Usage: texSubImage3DImageSource gl target level xoffset yoffset zoffset width height depth format type source

void
texSubImage3D ( GLenum target
              , GLint level
              , GLint xoffset
              , GLint yoffset
              , GLint zoffset
              , GLsizei width
              , GLsizei height
              , GLsizei depth
              , GLenum format
              , GLenum type
              , TexImageSource source
              );

Documentation: WebGL 2.0 spec, section 3.7.6

#texSubImage3D Source

texSubImage3D :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLenum -> Maybe a -> Maybe GLuint -> Effect Unit

Usage: texSubImage3D gl target level xoffset yoffset zoffset width height depth format type srcData srcOffset

void
texSubImage3D ( GLenum target
              , GLint level
              , GLint xoffset
              , GLint yoffset
              , GLint zoffset
              , GLsizei width
              , GLsizei height
              , GLsizei depth
              , GLenum format
              , GLenum type
              , [AllowShared] ArrayBufferView? srcData
              , optional GLuint srcOffset = 0
              );

Documentation: WebGL 2.0 spec, section 3.7.6

#texSubImage2DWithSize Source

texSubImage2DWithSize :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> a -> GLuint -> Effect Unit

Usage: texSubImage2DWithSize gl target level xoffset yoffset width height format type srcData srcOffset

void
texSubImage2D ( GLenum target
              , GLint level
              , GLint xoffset
              , GLint yoffset
              , GLsizei width
              , GLsizei height
              , GLenum format
              , GLenum type
              , [AllowShared] ArrayBufferView srcData
              , GLuint srcOffset
              );

Documentation: WebGL 2.0 spec, section 3.7.6

#texSubImage2DUnpackBuffer Source

texSubImage2DUnpackBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> GLintptr -> Effect Unit

Usage: texSubImage2DUnpackBuffer gl target level xoffset yoffset width height format type pboOffset

void
texSubImage2D ( GLenum target
              , GLint level
              , GLint xoffset
              , GLint yoffset
              , GLsizei width
              , GLsizei height
              , GLenum format
              , GLenum type
              , GLintptr pboOffset
              );

Documentation: WebGL 2.0 spec, section 3.7.6

#texSubImage2DImageSourceWithSize Source

texSubImage2DImageSourceWithSize :: forall t c. IsWebGL2RenderingContext c => IsTexImageSource t => c -> GLenum -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> t -> Effect Unit

Usage: texSubImage2DImageSourceWithSize gl target level xoffset yoffset width height format type source

void
texSubImage2D ( GLenum target
              , GLint level
              , GLint xoffset
              , GLint yoffset
              , GLsizei width
              , GLsizei height
              , GLenum format
              , GLenum type
              , TexImageSource source
              );

Documentation: WebGL 2.0 spec, section 3.7.6

#texStorage3D Source

texStorage3D :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> GLsizei -> Effect Unit

Usage: texStorage3D gl target levels internalformat width height depth

void
texStorage3D ( GLenum target
             , GLsizei levels
             , GLenum internalformat
             , GLsizei width
             , GLsizei height
             , GLsizei depth
             );

Documentation: WebGL 2.0 spec, section 3.7.6

#texStorage2D Source

texStorage2D :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLsizei -> GLenum -> GLsizei -> GLsizei -> Effect Unit

Usage: texStorage2D gl target levels internalformat width height

void
texStorage2D ( GLenum target
             , GLsizei levels
             , GLenum internalformat
             , GLsizei width
             , GLsizei height
             );

Documentation: WebGL 2.0 spec, section 3.7.6

#texImage3DUnpackBuffer Source

texImage3DUnpackBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> GLintptr -> Effect Unit

Usage: texImage3DUnpackBuffer gl target level internalformat width height depth border format type pboOffset

void
texImage3D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLsizei width
           , GLsizei height
           , GLsizei depth
           , GLint border
           , GLenum format
           , GLenum type
           , GLintptr pboOffset
           );

Documentation: WebGL 2.0 spec, section 3.7.6

#texImage3DOffset Source

texImage3DOffset :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> a -> GLuint -> Effect Unit

Usage: texImage3DOffset gl target level internalformat width height depth border format type srcData srcOffset

void
texImage3D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLsizei width
           , GLsizei height
           , GLsizei depth
           , GLint border
           , GLenum format
           , GLenum type
           , [AllowShared] ArrayBufferView srcData
           , GLuint srcOffset
           );

Documentation: WebGL 2.0 spec, section 3.7.6

#texImage3DImageSource Source

texImage3DImageSource :: forall t c. IsWebGL2RenderingContext c => IsTexImageSource t => c -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> t -> Effect Unit

Usage: texImage3DImageSource gl target level internalformat width height depth border format type source

void
texImage3D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLsizei width
           , GLsizei height
           , GLsizei depth
           , GLint border
           , GLenum format
           , GLenum type
           , TexImageSource source
           );

Documentation: WebGL 2.0 spec, section 3.7.6

#texImage3D Source

texImage3D :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> Maybe a -> Effect Unit

Usage: texImage3D gl target level internalformat width height depth border format type srcData

void
texImage3D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLsizei width
           , GLsizei height
           , GLsizei depth
           , GLint border
           , GLenum format
           , GLenum type
           , [AllowShared] ArrayBufferView? srcData
           );

Documentation: WebGL 2.0 spec, section 3.7.6

#texImage2DWithSize Source

texImage2DWithSize :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> a -> GLuint -> Effect Unit

Usage: texImage2DWithSize gl target level internalformat width height border format type srcData srcOffset

void
texImage2D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLsizei width
           , GLsizei height
           , GLint border
           , GLenum format
           , GLenum type
           , [AllowShared] ArrayBufferView srcData
           , GLuint srcOffset
           );

Documentation: WebGL 2.0 spec, section 3.7.6

#texImage2DUnpackBuffer Source

texImage2DUnpackBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> GLintptr -> Effect Unit

Usage: texImage2DUnpackBuffer gl target level internalformat width height border format type pboOffset

void
texImage2D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLsizei width
           , GLsizei height
           , GLint border
           , GLenum format
           , GLenum type
           , GLintptr pboOffset
           );

Documentation: WebGL 2.0 spec, section 3.7.6

#texImage2DImageSourceWithSize Source

texImage2DImageSourceWithSize :: forall t c. IsWebGL2RenderingContext c => IsTexImageSource t => c -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> t -> Effect Unit

Usage: texImage2DImageSourceWithSize gl target level internalformat width height border format type source

void
texImage2D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLsizei width
           , GLsizei height
           , GLint border
           , GLenum format
           , GLenum type
           , TexImageSource source
           );

Documentation: WebGL 2.0 spec, section 3.7.6

#getTexParameterGLuint Source

getTexParameterGLuint :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLuint)

Usage: getTexParameterGLuint gl target pname

Use when:

  • pname = TEXTURE_IMMUTABLE_LEVELS
any getTexParameter (GLenum target, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.6

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.

#getTexParameterGLint Source

getTexParameterGLint :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLint)

Usage: getTexParameterGLint gl target pname

Use when:

  • pname = TEXTURE_BASE_LEVEL
  • pname = TEXTURE_MAX_LEVEL
any getTexParameter (GLenum target, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.6

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.

#getTexParameterGLfloat Source

getTexParameterGLfloat :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLfloat)

Usage: getTexParameterGLfloat gl target pname

Use when:

  • pname = TEXTURE_MAX_LOD
  • pname = TEXTURE_MIN_LOD
any getTexParameter (GLenum target, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.6

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.

#getTexParameterGLboolean Source

getTexParameterGLboolean :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLboolean)

Usage: getTexParameterGLboolean gl target pname

Use when:

  • pname = TEXTURE_IMMUTABLE_FORMAT
any getTexParameter (GLenum target, GLenum pname);

Documentation: WebGL 2.0 spec, section 3.7.6

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.

#copyTexSubImage3D Source

copyTexSubImage3D :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLint -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> Effect Unit

Usage: copyTexSubImage3D gl target level xoffset yoffset zoffset x y width height

void
copyTexSubImage3D ( GLenum target
                  , GLint level
                  , GLint xoffset
                  , GLint yoffset
                  , GLint zoffset
                  , GLint x
                  , GLint y
                  , GLsizei width
                  , GLsizei height
                  );

Documentation: WebGL 2.0 spec, section 3.7.6

#compressedTexSubImage3DUnpackBuffer Source

compressedTexSubImage3DUnpackBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> GLsizei -> GLintptr -> Effect Unit

Usage: compressedTexSubImage3DUnpackBuffer gl target level xoffset yoffset zoffset width height depth format imageSize offset

void
compressedTexSubImage3D ( GLenum target
                        , GLint level
                        , GLint xoffset
                        , GLint yoffset
                        , GLint zoffset
                        , GLsizei width
                        , GLsizei height
                        , GLsizei depth
                        , GLenum format
                        , GLsizei imageSize
                        , GLintptr offset
                        );

Documentation: WebGL 2.0 spec, section 3.7.6

#compressedTexSubImage3D Source

compressedTexSubImage3D :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLsizei -> GLenum -> a -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: compressedTexSubImage3D gl target level xoffset yoffset zoffset width height depth format srcData srcOffset srcLengthOverride

void
compressedTexSubImage3D ( GLenum target
                        , GLint level
                        , GLint xoffset
                        , GLint yoffset
                        , GLint zoffset
                        , GLsizei width
                        , GLsizei height
                        , GLsizei depth
                        , GLenum format
                        , [AllowShared] ArrayBufferView srcData
                        , optional GLuint srcOffset = 0
                        , optional GLuint srcLengthOverride = 0
                        );

Documentation: WebGL 2.0 spec, section 3.7.6

#compressedTexSubImage2DUnpackBuffer Source

compressedTexSubImage2DUnpackBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLsizei -> GLintptr -> Effect Unit

Usage: compressedTexSubImage2DUnpackBuffer gl target level xoffset yoffset width height format imageSize offset

void
compressedTexSubImage2D ( GLenum target
                        , GLint level
                        , GLint xoffset
                        , GLint yoffset
                        , GLsizei width
                        , GLsizei height
                        , GLenum format
                        , GLsizei imageSize
                        , GLintptr offset
                        );

Documentation: WebGL 2.0 spec, section 3.7.6

#compressedTexSubImage2D Source

compressedTexSubImage2D :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> a -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: compressedTexSubImage2D gl target level xoffset yoffset width height format srcData srcOffset srcLengthOverride

void
compressedTexSubImage2D ( GLenum target
                        , GLint level
                        , GLint xoffset
                        , GLint yoffset
                        , GLsizei width
                        , GLsizei height
                        , GLenum format
                        , [AllowShared] ArrayBufferView srcData
                        , optional GLuint srcOffset = 0
                        , optional GLuint srcLengthOverride = 0
                        );

Documentation: WebGL 2.0 spec, section 3.7.6

#compressedTexImage3DUnpackBuffer Source

compressedTexImage3DUnpackBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLint -> GLsizei -> GLintptr -> Effect Unit

Usage: compressedTexImage3DUnpackBuffer gl target level internalformat width height depth border imageSize offset

void
compressedTexImage3D ( GLenum target
                     , GLint level
                     , GLenum internalformat
                     , GLsizei width
                     , GLsizei height
                     , GLsizei depth
                     , GLint border
                     , GLsizei imageSize
                     , GLintptr offset
                     );

Documentation: WebGL 2.0 spec, section 3.7.6

#compressedTexImage3D Source

compressedTexImage3D :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLsizei -> GLint -> a -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: compressedTexImage3D gl target level internalformat width height depth border srcData srcOffset srcLengthOverride

void
compressedTexImage3D ( GLenum target
                     , GLint level
                     , GLenum internalformat
                     , GLsizei width
                     , GLsizei height
                     , GLsizei depth
                     , GLint border
                     , [AllowShared] ArrayBufferView srcData
                     , optional GLuint srcOffset = 0
                     , optional GLuint srcLengthOverride = 0
                     );

Documentation: WebGL 2.0 spec, section 3.7.6

#compressedTexImage2DUnpackBuffer Source

compressedTexImage2DUnpackBuffer :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLint -> GLsizei -> GLintptr -> Effect Unit

Usage: compressedTexImage2DUnpackBuffer gl target level internalformat width height border imageSize offset

void
compressedTexImage2D ( GLenum target
                     , GLint level
                     , GLenum internalformat
                     , GLsizei width
                     , GLsizei height
                     , GLint border
                     , GLsizei imageSize
                     , GLintptr offset
                     );

Documentation: WebGL 2.0 spec, section 3.7.6

#compressedTexImage2D Source

compressedTexImage2D :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLint -> a -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: compressedTexImage2D gl target level internalformat width height border srcData srcOffset srcLengthOverride

void
compressedTexImage2D ( GLenum target
                     , GLint level
                     , GLenum internalformat
                     , GLsizei width
                     , GLsizei height
                     , GLint border
                     , [AllowShared] ArrayBufferView srcData
                     , optional GLuint srcOffset = 0
                     , optional GLuint srcLengthOverride = 0
                     );

Documentation: WebGL 2.0 spec, section 3.7.6

Re-exports from WebGL.Raw.WebGL2.WebGLTransformFeedback

#transformFeedbackVaryings Source

transformFeedbackVaryings :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> Array String -> GLenum -> Effect Unit

Usage: transformFeedbackVaryings gl program varyings bufferMode

void
transformFeedbackVaryings ( WebGLProgram program
                          , sequence<DOMString> varyings
                          , GLenum bufferMode
                          );

Documentation: WebGL 2.0 spec, section 3.7.15

#resumeTransformFeedback Source

resumeTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Effect Unit

Usage: resumeTransformFeedback gl

void resumeTransformFeedback();

Documentation: WebGL 2.0 spec, section 3.7.15

#pauseTransformFeedback Source

pauseTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Effect Unit

Usage: pauseTransformFeedback gl

void pauseTransformFeedback();

Documentation: WebGL 2.0 spec, section 3.7.15

#isTransformFeedback Source

isTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLTransformFeedback -> Effect GLboolean

Usage: isTransformFeedback gl tf

[WebGLHandlesContextLoss] GLboolean
isTransformFeedback (WebGLTransformFeedback? tf);

Documentation: WebGL 2.0 spec, section 3.7.15

#getTransformFeedbackVarying Source

getTransformFeedbackVarying :: forall c. IsWebGL2RenderingContext c => c -> WebGLProgram -> GLuint -> Effect (Maybe WebGLActiveInfo)

Usage: getTransformFeedbackVarying gl program index

WebGLActiveInfo?
getTransformFeedbackVarying (WebGLProgram program, GLuint index);

Documentation: WebGL 2.0 spec, section 3.7.15

#endTransformFeedback Source

endTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Effect Unit

Usage: endTransformFeedback gl

void endTransformFeedback();

Documentation: WebGL 2.0 spec, section 3.7.15

#deleteTransformFeedback Source

deleteTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLTransformFeedback -> Effect Unit

Usage: deleteTransformFeedback gl tf

void deleteTransformFeedback (WebGLTransformFeedback? tf);

Documentation: WebGL 2.0 spec, section 3.7.15

#createTransformFeedback Source

createTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> Effect (Maybe WebGLTransformFeedback)

Usage: createTransformFeedback gl

WebGLTransformFeedback? createTransformFeedback();

Documentation: WebGL 2.0 spec, section 3.7.15

#bindTransformFeedback Source

bindTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> Maybe WebGLTransformFeedback -> Effect Unit

Usage: bindTransformFeedback gl target tf

void
bindTransformFeedback (GLenum target, WebGLTransformFeedback? tf);

Documentation: WebGL 2.0 spec, section 3.7.15

#beginTransformFeedback Source

beginTransformFeedback :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> Effect Unit

Usage: beginTransformFeedback gl primitiveMode

void beginTransformFeedback (GLenum primitiveMode);

Documentation: WebGL 2.0 spec, section 3.7.15

Re-exports from WebGL.Raw.WebGL2.WebGLVertexArrayObject

#isVertexArray Source

isVertexArray :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLVertexArrayObject -> Effect GLboolean

Usage: isVertexArray gl vertexArray

[WebGLHandlesContextLoss] GLboolean
isVertexArray (WebGLVertexArrayObject? vertexArray);

Documentation: WebGL 2.0 spec, section 3.7.17

#deleteVertexArray Source

deleteVertexArray :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLVertexArrayObject -> Effect Unit

Usage: deleteVertexArray gl vertexArray

void deleteVertexArray (WebGLVertexArrayObject? vertexArray);

Documentation: WebGL 2.0 spec, section 3.7.17

#createVertexArray Source

createVertexArray :: forall c. IsWebGL2RenderingContext c => c -> Effect (Maybe WebGLVertexArrayObject)

Usage: createVertexArray gl

WebGLVertexArrayObject? createVertexArray();

Documentation: WebGL 2.0 spec, section 3.7.17

#bindVertexArray Source

bindVertexArray :: forall c. IsWebGL2RenderingContext c => c -> Maybe WebGLVertexArrayObject -> Effect Unit

Usage: bindVertexArray gl array

void bindVertexArray (WebGLVertexArrayObject? array);

Documentation: WebGL 2.0 spec, section 3.7.17

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