ghcjs-dom-javascript-0.10.0.0: src/GHCJS/DOM/JSFFI/Generated/WebGLRenderingContextBase.hs
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from webgl1 (webref). Do not edit.
module GHCJS.DOM.JSFFI.Generated.WebGLRenderingContextBase
(js_activeTexture, js_attachShader, js_bindAttribLocation, js_bindBuffer, js_bindFramebuffer, js_bindRenderbuffer, js_bindTexture, js_blendColor, js_blendEquation, js_blendEquationSeparate, js_blendFunc, js_blendFuncSeparate, js_checkFramebufferStatus, js_clear, js_clearColor, js_clearDepth, js_clearStencil, js_colorMask, js_compileShader, js_copyTexImage2D, js_copyTexSubImage2D, js_createBuffer, js_createFramebuffer, js_createProgram, js_createRenderbuffer, js_createShader, js_createTexture, js_cullFace, js_deleteBuffer, js_deleteFramebuffer, js_deleteProgram, js_deleteRenderbuffer, js_deleteShader, js_deleteTexture, js_depthFunc, js_depthMask, js_depthRange, js_detachShader, js_disable, js_disableVertexAttribArray, js_drawArrays, js_drawElements, js_enable, js_enableVertexAttribArray, js_finish, js_flush, js_framebufferRenderbuffer, js_framebufferTexture2D, js_frontFace, js_generateMipmap, js_getActiveAttrib, js_getActiveUniform, js_getAttachedShaders, js_getAttribLocation, js_getBufferParameter, js_getContextAttributes, js_getError, js_getExtension, js_getFramebufferAttachmentParameter, js_getParameter, js_getProgramInfoLog, js_getProgramParameter, js_getRenderbufferParameter, js_getShaderInfoLog, js_getShaderParameter, js_getShaderPrecisionFormat, js_getShaderSource, js_getSupportedExtensions, js_getTexParameter, js_getUniform, js_getUniformLocation, js_getVertexAttrib, js_getVertexAttribOffset, js_hint, js_isBuffer, js_isContextLost, js_isEnabled, js_isFramebuffer, js_isProgram, js_isRenderbuffer, js_isShader, js_isTexture, js_lineWidth, js_linkProgram, js_pixelStorei, js_polygonOffset, js_renderbufferStorage, js_sampleCoverage, js_scissor, js_shaderSource, js_stencilFunc, js_stencilFuncSeparate, js_stencilMask, js_stencilMaskSeparate, js_stencilOp, js_stencilOpSeparate, js_texParameterf, js_texParameteri, js_uniform1f, js_uniform1i, js_uniform2f, js_uniform2i, js_uniform3f, js_uniform3i, js_uniform4f, js_uniform4i, js_useProgram, js_validateProgram, js_vertexAttrib1f, js_vertexAttrib1fv, js_vertexAttrib2f, js_vertexAttrib2fv, js_vertexAttrib3f, js_vertexAttrib3fv, js_vertexAttrib4f, js_vertexAttrib4fv, js_vertexAttribPointer, js_viewport, js_getCanvas, js_getDrawingBufferWidth, js_getDrawingBufferHeight, js_setDrawingBufferColorSpace, js_getDrawingBufferColorSpace, js_setUnpackColorSpace, js_getUnpackColorSpace, activeTexture, attachShader, bindAttribLocation, bindBuffer, bindFramebuffer, bindRenderbuffer, bindTexture, blendColor, blendEquation, blendEquationSeparate, blendFunc, blendFuncSeparate, checkFramebufferStatus, checkFramebufferStatus_, clear, clearColor, clearDepth, clearStencil, colorMask, compileShader, copyTexImage2D, copyTexSubImage2D, createBuffer, createBuffer_, createFramebuffer, createFramebuffer_, createProgram, createProgram_, createRenderbuffer, createRenderbuffer_, createShader, createShader_, createShaderUnsafe, createShaderUnchecked, createTexture, createTexture_, cullFace, deleteBuffer, deleteFramebuffer, deleteProgram, deleteRenderbuffer, deleteShader, deleteTexture, depthFunc, depthMask, depthRange, detachShader, disable, disableVertexAttribArray, drawArrays, drawElements, enable, enableVertexAttribArray, finish, flush, framebufferRenderbuffer, framebufferTexture2D, frontFace, generateMipmap, getActiveAttrib, getActiveAttrib_, getActiveAttribUnsafe, getActiveAttribUnchecked, getActiveUniform, getActiveUniform_, getActiveUniformUnsafe, getActiveUniformUnchecked, getAttachedShaders, getAttachedShaders_, getAttachedShadersUnsafe, getAttachedShadersUnchecked, getAttribLocation, getAttribLocation_, getBufferParameter, getBufferParameter_, getContextAttributes, getContextAttributes_, getContextAttributesUnsafe, getContextAttributesUnchecked, getError, getError_, getExtension, getExtension_, getExtensionUnsafe, getExtensionUnchecked, getFramebufferAttachmentParameter, getFramebufferAttachmentParameter_, getParameter, getParameter_, getProgramInfoLog, getProgramInfoLog_, getProgramInfoLogUnsafe, getProgramInfoLogUnchecked, getProgramParameter, getProgramParameter_, getRenderbufferParameter, getRenderbufferParameter_, getShaderInfoLog, getShaderInfoLog_, getShaderInfoLogUnsafe, getShaderInfoLogUnchecked, getShaderParameter, getShaderParameter_, getShaderPrecisionFormat, getShaderPrecisionFormat_, getShaderPrecisionFormatUnsafe, getShaderPrecisionFormatUnchecked, getShaderSource, getShaderSource_, getShaderSourceUnsafe, getShaderSourceUnchecked, getSupportedExtensions, getSupportedExtensions_, getSupportedExtensionsUnsafe, getSupportedExtensionsUnchecked, getTexParameter, getTexParameter_, getUniform, getUniform_, getUniformLocation, getUniformLocation_, getUniformLocationUnsafe, getUniformLocationUnchecked, getVertexAttrib, getVertexAttrib_, getVertexAttribOffset, getVertexAttribOffset_, hint, isBuffer, isBuffer_, isContextLost, isContextLost_, isEnabled, isEnabled_, isFramebuffer, isFramebuffer_, isProgram, isProgram_, isRenderbuffer, isRenderbuffer_, isShader, isShader_, isTexture, isTexture_, lineWidth, linkProgram, pixelStorei, polygonOffset, renderbufferStorage, sampleCoverage, scissor, shaderSource, stencilFunc, stencilFuncSeparate, stencilMask, stencilMaskSeparate, stencilOp, stencilOpSeparate, texParameterf, texParameteri, uniform1f, uniform1i, uniform2f, uniform2i, uniform3f, uniform3i, uniform4f, uniform4i, useProgram, validateProgram, vertexAttrib1f, vertexAttrib1fv, vertexAttrib2f, vertexAttrib2fv, vertexAttrib3f, vertexAttrib3fv, vertexAttrib4f, vertexAttrib4fv, vertexAttribPointer, viewport, getCanvas, getDrawingBufferWidth, getDrawingBufferHeight, setDrawingBufferColorSpace, getDrawingBufferColorSpace, setUnpackColorSpace, getUnpackColorSpace, pattern DEPTH_BUFFER_BIT, pattern STENCIL_BUFFER_BIT, pattern COLOR_BUFFER_BIT, pattern POINTS, pattern LINES, pattern LINE_LOOP, pattern LINE_STRIP, pattern TRIANGLES, pattern TRIANGLE_STRIP, pattern TRIANGLE_FAN, pattern ZERO, pattern ONE, pattern SRC_COLOR, pattern ONE_MINUS_SRC_COLOR, pattern SRC_ALPHA, pattern ONE_MINUS_SRC_ALPHA, pattern DST_ALPHA, pattern ONE_MINUS_DST_ALPHA, pattern DST_COLOR, pattern ONE_MINUS_DST_COLOR, pattern SRC_ALPHA_SATURATE, pattern FUNC_ADD, pattern BLEND_EQUATION, pattern BLEND_EQUATION_RGB, pattern BLEND_EQUATION_ALPHA, pattern FUNC_SUBTRACT, pattern FUNC_REVERSE_SUBTRACT, pattern BLEND_DST_RGB, pattern BLEND_SRC_RGB, pattern BLEND_DST_ALPHA, pattern BLEND_SRC_ALPHA, pattern CONSTANT_COLOR, pattern ONE_MINUS_CONSTANT_COLOR, pattern CONSTANT_ALPHA, pattern ONE_MINUS_CONSTANT_ALPHA, pattern BLEND_COLOR, pattern ARRAY_BUFFER, pattern ELEMENT_ARRAY_BUFFER, pattern ARRAY_BUFFER_BINDING, pattern ELEMENT_ARRAY_BUFFER_BINDING, pattern STREAM_DRAW, pattern STATIC_DRAW, pattern DYNAMIC_DRAW, pattern BUFFER_SIZE, pattern BUFFER_USAGE, pattern CURRENT_VERTEX_ATTRIB, pattern FRONT, pattern BACK, pattern FRONT_AND_BACK, pattern CULL_FACE, pattern BLEND, pattern DITHER, pattern STENCIL_TEST, pattern DEPTH_TEST, pattern SCISSOR_TEST, pattern POLYGON_OFFSET_FILL, pattern SAMPLE_ALPHA_TO_COVERAGE, pattern SAMPLE_COVERAGE, pattern NO_ERROR, pattern INVALID_ENUM, pattern INVALID_VALUE, pattern INVALID_OPERATION, pattern OUT_OF_MEMORY, pattern CW, pattern CCW, pattern LINE_WIDTH, pattern ALIASED_POINT_SIZE_RANGE, pattern ALIASED_LINE_WIDTH_RANGE, pattern CULL_FACE_MODE, pattern FRONT_FACE, pattern DEPTH_RANGE, pattern DEPTH_WRITEMASK, pattern DEPTH_CLEAR_VALUE, pattern DEPTH_FUNC, pattern STENCIL_CLEAR_VALUE, pattern STENCIL_FUNC, pattern STENCIL_FAIL, pattern STENCIL_PASS_DEPTH_FAIL, pattern STENCIL_PASS_DEPTH_PASS, pattern STENCIL_REF, pattern STENCIL_VALUE_MASK, pattern STENCIL_WRITEMASK, pattern STENCIL_BACK_FUNC, pattern STENCIL_BACK_FAIL, pattern STENCIL_BACK_PASS_DEPTH_FAIL, pattern STENCIL_BACK_PASS_DEPTH_PASS, pattern STENCIL_BACK_REF, pattern STENCIL_BACK_VALUE_MASK, pattern STENCIL_BACK_WRITEMASK, pattern VIEWPORT, pattern SCISSOR_BOX, pattern COLOR_CLEAR_VALUE, pattern COLOR_WRITEMASK, pattern UNPACK_ALIGNMENT, pattern PACK_ALIGNMENT, pattern MAX_TEXTURE_SIZE, pattern MAX_VIEWPORT_DIMS, pattern SUBPIXEL_BITS, pattern RED_BITS, pattern GREEN_BITS, pattern BLUE_BITS, pattern ALPHA_BITS, pattern DEPTH_BITS, pattern STENCIL_BITS, pattern POLYGON_OFFSET_UNITS, pattern POLYGON_OFFSET_FACTOR, pattern TEXTURE_BINDING_2D, pattern SAMPLE_BUFFERS, pattern SAMPLES, pattern SAMPLE_COVERAGE_VALUE, pattern SAMPLE_COVERAGE_INVERT, pattern COMPRESSED_TEXTURE_FORMATS, pattern DONT_CARE, pattern FASTEST, pattern NICEST, pattern GENERATE_MIPMAP_HINT, pattern BYTE, pattern UNSIGNED_BYTE, pattern SHORT, pattern UNSIGNED_SHORT, pattern INT, pattern UNSIGNED_INT, pattern FLOAT, pattern DEPTH_COMPONENT, pattern ALPHA, pattern RGB, pattern RGBA, pattern LUMINANCE, pattern LUMINANCE_ALPHA, pattern UNSIGNED_SHORT_4_4_4_4, pattern UNSIGNED_SHORT_5_5_5_1, pattern UNSIGNED_SHORT_5_6_5, pattern FRAGMENT_SHADER, pattern VERTEX_SHADER, pattern MAX_VERTEX_ATTRIBS, pattern MAX_VERTEX_UNIFORM_VECTORS, pattern MAX_VARYING_VECTORS, pattern MAX_COMBINED_TEXTURE_IMAGE_UNITS, pattern MAX_VERTEX_TEXTURE_IMAGE_UNITS, pattern MAX_TEXTURE_IMAGE_UNITS, pattern MAX_FRAGMENT_UNIFORM_VECTORS, pattern SHADER_TYPE, pattern DELETE_STATUS, pattern LINK_STATUS, pattern VALIDATE_STATUS, pattern ATTACHED_SHADERS, pattern ACTIVE_UNIFORMS, pattern ACTIVE_ATTRIBUTES, pattern SHADING_LANGUAGE_VERSION, pattern CURRENT_PROGRAM, pattern NEVER, pattern LESS, pattern EQUAL, pattern LEQUAL, pattern GREATER, pattern NOTEQUAL, pattern GEQUAL, pattern ALWAYS, pattern KEEP, pattern REPLACE, pattern INCR, pattern DECR, pattern INVERT, pattern INCR_WRAP, pattern DECR_WRAP, pattern VENDOR, pattern RENDERER, pattern VERSION, pattern NEAREST, pattern LINEAR, pattern NEAREST_MIPMAP_NEAREST, pattern LINEAR_MIPMAP_NEAREST, pattern NEAREST_MIPMAP_LINEAR, pattern LINEAR_MIPMAP_LINEAR, pattern TEXTURE_MAG_FILTER, pattern TEXTURE_MIN_FILTER, pattern TEXTURE_WRAP_S, pattern TEXTURE_WRAP_T, pattern TEXTURE_2D, pattern TEXTURE, pattern TEXTURE_CUBE_MAP, pattern TEXTURE_BINDING_CUBE_MAP, pattern TEXTURE_CUBE_MAP_POSITIVE_X, pattern TEXTURE_CUBE_MAP_NEGATIVE_X, pattern TEXTURE_CUBE_MAP_POSITIVE_Y, pattern TEXTURE_CUBE_MAP_NEGATIVE_Y, pattern TEXTURE_CUBE_MAP_POSITIVE_Z, pattern TEXTURE_CUBE_MAP_NEGATIVE_Z, pattern MAX_CUBE_MAP_TEXTURE_SIZE, pattern TEXTURE0, pattern TEXTURE1, pattern TEXTURE2, pattern TEXTURE3, pattern TEXTURE4, pattern TEXTURE5, pattern TEXTURE6, pattern TEXTURE7, pattern TEXTURE8, pattern TEXTURE9, pattern TEXTURE10, pattern TEXTURE11, pattern TEXTURE12, pattern TEXTURE13, pattern TEXTURE14, pattern TEXTURE15, pattern TEXTURE16, pattern TEXTURE17, pattern TEXTURE18, pattern TEXTURE19, pattern TEXTURE20, pattern TEXTURE21, pattern TEXTURE22, pattern TEXTURE23, pattern TEXTURE24, pattern TEXTURE25, pattern TEXTURE26, pattern TEXTURE27, pattern TEXTURE28, pattern TEXTURE29, pattern TEXTURE30, pattern TEXTURE31, pattern ACTIVE_TEXTURE, pattern REPEAT, pattern CLAMP_TO_EDGE, pattern MIRRORED_REPEAT, pattern FLOAT_VEC2, pattern FLOAT_VEC3, pattern FLOAT_VEC4, pattern INT_VEC2, pattern INT_VEC3, pattern INT_VEC4, pattern BOOL, pattern BOOL_VEC2, pattern BOOL_VEC3, pattern BOOL_VEC4, pattern FLOAT_MAT2, pattern FLOAT_MAT3, pattern FLOAT_MAT4, pattern SAMPLER_2D, pattern SAMPLER_CUBE, pattern VERTEX_ATTRIB_ARRAY_ENABLED, pattern VERTEX_ATTRIB_ARRAY_SIZE, pattern VERTEX_ATTRIB_ARRAY_STRIDE, pattern VERTEX_ATTRIB_ARRAY_TYPE, pattern VERTEX_ATTRIB_ARRAY_NORMALIZED, pattern VERTEX_ATTRIB_ARRAY_POINTER, pattern VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, pattern IMPLEMENTATION_COLOR_READ_TYPE, pattern IMPLEMENTATION_COLOR_READ_FORMAT, pattern COMPILE_STATUS, pattern LOW_FLOAT, pattern MEDIUM_FLOAT, pattern HIGH_FLOAT, pattern LOW_INT, pattern MEDIUM_INT, pattern HIGH_INT, pattern FRAMEBUFFER, pattern RENDERBUFFER, pattern RGBA4, pattern RGB5_A1, pattern RGBA8, pattern RGB565, pattern DEPTH_COMPONENT16, pattern STENCIL_INDEX8, pattern DEPTH_STENCIL, pattern RENDERBUFFER_WIDTH, pattern RENDERBUFFER_HEIGHT, pattern RENDERBUFFER_INTERNAL_FORMAT, pattern RENDERBUFFER_RED_SIZE, pattern RENDERBUFFER_GREEN_SIZE, pattern RENDERBUFFER_BLUE_SIZE, pattern RENDERBUFFER_ALPHA_SIZE, pattern RENDERBUFFER_DEPTH_SIZE, pattern RENDERBUFFER_STENCIL_SIZE, pattern FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, pattern FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, pattern FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, pattern FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE, pattern COLOR_ATTACHMENT0, pattern DEPTH_ATTACHMENT, pattern STENCIL_ATTACHMENT, pattern DEPTH_STENCIL_ATTACHMENT, pattern NONE, pattern FRAMEBUFFER_COMPLETE, pattern FRAMEBUFFER_INCOMPLETE_ATTACHMENT, pattern FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT, pattern FRAMEBUFFER_INCOMPLETE_DIMENSIONS, pattern FRAMEBUFFER_UNSUPPORTED, pattern FRAMEBUFFER_BINDING, pattern RENDERBUFFER_BINDING, pattern MAX_RENDERBUFFER_SIZE, pattern INVALID_FRAMEBUFFER_OPERATION, pattern UNPACK_FLIP_Y_WEBGL, pattern UNPACK_PREMULTIPLY_ALPHA_WEBGL, pattern CONTEXT_LOST_WEBGL, pattern UNPACK_COLORSPACE_CONVERSION_WEBGL, pattern BROWSER_DEFAULT_WEBGL, WebGLRenderingContextBase(..), gTypeWebGLRenderingContextBase, IsWebGLRenderingContextBase, toWebGLRenderingContextBase)
where
import Prelude ((.), (==), (>>=), (<$>), (++), Bool(..), Maybe(..), IO, Int, Word, Double, Float)
import qualified Prelude as P
import Control.Monad (void)
import GHCJS.Types (JSVal, JSString)
import GHCJS.Foreign (jsUndefined, jsNull)
import GHCJS.DOM.Types
import qualified GHCJS.DOM.Types as Types
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import GHCJS.DOM.JSFFI.Generated.Enums
foreign import javascript safe "(($1, $2) => { return $1[\"activeTexture\"]($2); })"
js_activeTexture :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture MDN WebGLRenderingContextBase.activeTexture documentation>
activeTexture :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
activeTexture self texture = liftDOM (void ((js_activeTexture ((Types.toWebGLRenderingContextBase self)) (texture))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"attachShader\"]($2, $3); })"
js_attachShader :: WebGLRenderingContextBase -> WebGLProgram -> WebGLShader -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader MDN WebGLRenderingContextBase.attachShader documentation>
attachShader :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> WebGLShader -> m ()
attachShader self program shader = liftDOM (void ((js_attachShader ((Types.toWebGLRenderingContextBase self)) (program) (shader))))
foreign import javascript safe "(($1, $2, $3, $4) => { return $1[\"bindAttribLocation\"]($2, $3, $4); })"
js_bindAttribLocation :: WebGLRenderingContextBase -> WebGLProgram -> Word -> JSString -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation MDN WebGLRenderingContextBase.bindAttribLocation documentation>
bindAttribLocation :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name) => self -> WebGLProgram -> Word -> name -> m ()
bindAttribLocation self program index name = liftDOM (void ((js_bindAttribLocation ((Types.toWebGLRenderingContextBase self)) (program) (index) (toJSString name))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"bindBuffer\"]($2, $3); })"
js_bindBuffer :: WebGLRenderingContextBase -> Word -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer MDN WebGLRenderingContextBase.bindBuffer documentation>
bindBuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Maybe WebGLBuffer -> m ()
bindBuffer self target buffer = liftDOM (void (((toJSVal buffer) >>= \a3' -> js_bindBuffer ((Types.toWebGLRenderingContextBase self)) (target) a3')))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"bindFramebuffer\"]($2, $3); })"
js_bindFramebuffer :: WebGLRenderingContextBase -> Word -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer MDN WebGLRenderingContextBase.bindFramebuffer documentation>
bindFramebuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Maybe WebGLFramebuffer -> m ()
bindFramebuffer self target framebuffer = liftDOM (void (((toJSVal framebuffer) >>= \a3' -> js_bindFramebuffer ((Types.toWebGLRenderingContextBase self)) (target) a3')))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"bindRenderbuffer\"]($2, $3); })"
js_bindRenderbuffer :: WebGLRenderingContextBase -> Word -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer MDN WebGLRenderingContextBase.bindRenderbuffer documentation>
bindRenderbuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Maybe WebGLRenderbuffer -> m ()
bindRenderbuffer self target renderbuffer = liftDOM (void (((toJSVal renderbuffer) >>= \a3' -> js_bindRenderbuffer ((Types.toWebGLRenderingContextBase self)) (target) a3')))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"bindTexture\"]($2, $3); })"
js_bindTexture :: WebGLRenderingContextBase -> Word -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture MDN WebGLRenderingContextBase.bindTexture documentation>
bindTexture :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Maybe WebGLTexture -> m ()
bindTexture self target texture = liftDOM (void (((toJSVal texture) >>= \a3' -> js_bindTexture ((Types.toWebGLRenderingContextBase self)) (target) a3')))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"blendColor\"]($2, $3, $4, $5); })"
js_blendColor :: WebGLRenderingContextBase -> Float -> Float -> Float -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor MDN WebGLRenderingContextBase.blendColor documentation>
blendColor :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Float -> Float -> Float -> Float -> m ()
blendColor self red green blue alpha = liftDOM (void ((js_blendColor ((Types.toWebGLRenderingContextBase self)) (red) (green) (blue) (alpha))))
foreign import javascript safe "(($1, $2) => { return $1[\"blendEquation\"]($2); })"
js_blendEquation :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation MDN WebGLRenderingContextBase.blendEquation documentation>
blendEquation :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
blendEquation self mode = liftDOM (void ((js_blendEquation ((Types.toWebGLRenderingContextBase self)) (mode))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"blendEquationSeparate\"]($2, $3); })"
js_blendEquationSeparate :: WebGLRenderingContextBase -> Word -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate MDN WebGLRenderingContextBase.blendEquationSeparate documentation>
blendEquationSeparate :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m ()
blendEquationSeparate self modeRGB modeAlpha = liftDOM (void ((js_blendEquationSeparate ((Types.toWebGLRenderingContextBase self)) (modeRGB) (modeAlpha))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"blendFunc\"]($2, $3); })"
js_blendFunc :: WebGLRenderingContextBase -> Word -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc MDN WebGLRenderingContextBase.blendFunc documentation>
blendFunc :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m ()
blendFunc self sfactor dfactor = liftDOM (void ((js_blendFunc ((Types.toWebGLRenderingContextBase self)) (sfactor) (dfactor))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"blendFuncSeparate\"]($2, $3, $4, $5); })"
js_blendFuncSeparate :: WebGLRenderingContextBase -> Word -> Word -> Word -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate MDN WebGLRenderingContextBase.blendFuncSeparate documentation>
blendFuncSeparate :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Word -> Word -> m ()
blendFuncSeparate self srcRGB dstRGB srcAlpha dstAlpha = liftDOM (void ((js_blendFuncSeparate ((Types.toWebGLRenderingContextBase self)) (srcRGB) (dstRGB) (srcAlpha) (dstAlpha))))
foreign import javascript safe "(($1, $2) => { return $1[\"checkFramebufferStatus\"]($2); })"
js_checkFramebufferStatus :: WebGLRenderingContextBase -> Word -> IO Word
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus MDN WebGLRenderingContextBase.checkFramebufferStatus documentation>
checkFramebufferStatus :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m Word
checkFramebufferStatus self target = liftDOM ((js_checkFramebufferStatus ((Types.toWebGLRenderingContextBase self)) (target)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus MDN WebGLRenderingContextBase.checkFramebufferStatus documentation>
checkFramebufferStatus_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
checkFramebufferStatus_ self target = liftDOM (void ((js_checkFramebufferStatus ((Types.toWebGLRenderingContextBase self)) (target))))
foreign import javascript safe "(($1, $2) => { return $1[\"clear\"]($2); })"
js_clear :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear MDN WebGLRenderingContextBase.clear documentation>
clear :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
clear self mask = liftDOM (void ((js_clear ((Types.toWebGLRenderingContextBase self)) (mask))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"clearColor\"]($2, $3, $4, $5); })"
js_clearColor :: WebGLRenderingContextBase -> Float -> Float -> Float -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor MDN WebGLRenderingContextBase.clearColor documentation>
clearColor :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Float -> Float -> Float -> Float -> m ()
clearColor self red green blue alpha = liftDOM (void ((js_clearColor ((Types.toWebGLRenderingContextBase self)) (red) (green) (blue) (alpha))))
foreign import javascript safe "(($1, $2) => { return $1[\"clearDepth\"]($2); })"
js_clearDepth :: WebGLRenderingContextBase -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth MDN WebGLRenderingContextBase.clearDepth documentation>
clearDepth :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Float -> m ()
clearDepth self depth = liftDOM (void ((js_clearDepth ((Types.toWebGLRenderingContextBase self)) (depth))))
foreign import javascript safe "(($1, $2) => { return $1[\"clearStencil\"]($2); })"
js_clearStencil :: WebGLRenderingContextBase -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil MDN WebGLRenderingContextBase.clearStencil documentation>
clearStencil :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Int -> m ()
clearStencil self s = liftDOM (void ((js_clearStencil ((Types.toWebGLRenderingContextBase self)) (s))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"colorMask\"]($2, $3, $4, $5); })"
js_colorMask :: WebGLRenderingContextBase -> Bool -> Bool -> Bool -> Bool -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask MDN WebGLRenderingContextBase.colorMask documentation>
colorMask :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Bool -> Bool -> Bool -> Bool -> m ()
colorMask self red green blue alpha = liftDOM (void ((js_colorMask ((Types.toWebGLRenderingContextBase self)) (red) (green) (blue) (alpha))))
foreign import javascript safe "(($1, $2) => { return $1[\"compileShader\"]($2); })"
js_compileShader :: WebGLRenderingContextBase -> WebGLShader -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader MDN WebGLRenderingContextBase.compileShader documentation>
compileShader :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLShader -> m ()
compileShader self shader = liftDOM (void ((js_compileShader ((Types.toWebGLRenderingContextBase self)) (shader))))
foreign import javascript safe "(($1, $2, $3, $4, $5, $6, $7, $8, $9) => { return $1[\"copyTexImage2D\"]($2, $3, $4, $5, $6, $7, $8, $9); })"
js_copyTexImage2D :: WebGLRenderingContextBase -> Word -> Int -> Word -> Int -> Int -> Int -> Int -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D MDN WebGLRenderingContextBase.copyTexImage2D documentation>
copyTexImage2D :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Int -> Word -> Int -> Int -> Int -> Int -> Int -> m ()
copyTexImage2D self target level internalformat x y width height border = liftDOM (void ((js_copyTexImage2D ((Types.toWebGLRenderingContextBase self)) (target) (level) (internalformat) (x) (y) (width) (height) (border))))
foreign import javascript safe "(($1, $2, $3, $4, $5, $6, $7, $8, $9) => { return $1[\"copyTexSubImage2D\"]($2, $3, $4, $5, $6, $7, $8, $9); })"
js_copyTexSubImage2D :: WebGLRenderingContextBase -> Word -> Int -> Int -> Int -> Int -> Int -> Int -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D MDN WebGLRenderingContextBase.copyTexSubImage2D documentation>
copyTexSubImage2D :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Int -> Int -> Int -> Int -> Int -> Int -> Int -> m ()
copyTexSubImage2D self target level xoffset yoffset x y width height = liftDOM (void ((js_copyTexSubImage2D ((Types.toWebGLRenderingContextBase self)) (target) (level) (xoffset) (yoffset) (x) (y) (width) (height))))
foreign import javascript safe "(($1) => { return $1[\"createBuffer\"](); })"
js_createBuffer :: WebGLRenderingContextBase -> IO WebGLBuffer
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer MDN WebGLRenderingContextBase.createBuffer documentation>
createBuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLBuffer
createBuffer self = liftDOM ((js_createBuffer ((Types.toWebGLRenderingContextBase self))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer MDN WebGLRenderingContextBase.createBuffer documentation>
createBuffer_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
createBuffer_ self = liftDOM (void ((js_createBuffer ((Types.toWebGLRenderingContextBase self)))))
foreign import javascript safe "(($1) => { return $1[\"createFramebuffer\"](); })"
js_createFramebuffer :: WebGLRenderingContextBase -> IO WebGLFramebuffer
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer MDN WebGLRenderingContextBase.createFramebuffer documentation>
createFramebuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLFramebuffer
createFramebuffer self = liftDOM ((js_createFramebuffer ((Types.toWebGLRenderingContextBase self))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer MDN WebGLRenderingContextBase.createFramebuffer documentation>
createFramebuffer_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
createFramebuffer_ self = liftDOM (void ((js_createFramebuffer ((Types.toWebGLRenderingContextBase self)))))
foreign import javascript safe "(($1) => { return $1[\"createProgram\"](); })"
js_createProgram :: WebGLRenderingContextBase -> IO WebGLProgram
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram MDN WebGLRenderingContextBase.createProgram documentation>
createProgram :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLProgram
createProgram self = liftDOM ((js_createProgram ((Types.toWebGLRenderingContextBase self))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram MDN WebGLRenderingContextBase.createProgram documentation>
createProgram_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
createProgram_ self = liftDOM (void ((js_createProgram ((Types.toWebGLRenderingContextBase self)))))
foreign import javascript safe "(($1) => { return $1[\"createRenderbuffer\"](); })"
js_createRenderbuffer :: WebGLRenderingContextBase -> IO WebGLRenderbuffer
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer MDN WebGLRenderingContextBase.createRenderbuffer documentation>
createRenderbuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLRenderbuffer
createRenderbuffer self = liftDOM ((js_createRenderbuffer ((Types.toWebGLRenderingContextBase self))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer MDN WebGLRenderingContextBase.createRenderbuffer documentation>
createRenderbuffer_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
createRenderbuffer_ self = liftDOM (void ((js_createRenderbuffer ((Types.toWebGLRenderingContextBase self)))))
foreign import javascript safe "(($1, $2) => { return $1[\"createShader\"]($2); })"
js_createShader :: WebGLRenderingContextBase -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader MDN WebGLRenderingContextBase.createShader documentation>
createShader :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m (Maybe WebGLShader)
createShader self type' = liftDOM (((js_createShader ((Types.toWebGLRenderingContextBase self)) (type')) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader MDN WebGLRenderingContextBase.createShader documentation>
createShader_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
createShader_ self type' = liftDOM (void ((js_createShader ((Types.toWebGLRenderingContextBase self)) (type'))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader MDN WebGLRenderingContextBase.createShader documentation>
createShaderUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, HasCallStack) => self -> Word -> m WebGLShader
createShaderUnsafe self type' = liftDOM ((((js_createShader ((Types.toWebGLRenderingContextBase self)) (type')) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader MDN WebGLRenderingContextBase.createShader documentation>
createShaderUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m WebGLShader
createShaderUnchecked self type' = liftDOM ((pFromJSVal <$> (js_createShader ((Types.toWebGLRenderingContextBase self)) (type'))))
foreign import javascript safe "(($1) => { return $1[\"createTexture\"](); })"
js_createTexture :: WebGLRenderingContextBase -> IO WebGLTexture
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture MDN WebGLRenderingContextBase.createTexture documentation>
createTexture :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLTexture
createTexture self = liftDOM ((js_createTexture ((Types.toWebGLRenderingContextBase self))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture MDN WebGLRenderingContextBase.createTexture documentation>
createTexture_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
createTexture_ self = liftDOM (void ((js_createTexture ((Types.toWebGLRenderingContextBase self)))))
foreign import javascript safe "(($1, $2) => { return $1[\"cullFace\"]($2); })"
js_cullFace :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace MDN WebGLRenderingContextBase.cullFace documentation>
cullFace :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
cullFace self mode = liftDOM (void ((js_cullFace ((Types.toWebGLRenderingContextBase self)) (mode))))
foreign import javascript safe "(($1, $2) => { return $1[\"deleteBuffer\"]($2); })"
js_deleteBuffer :: WebGLRenderingContextBase -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer MDN WebGLRenderingContextBase.deleteBuffer documentation>
deleteBuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLBuffer -> m ()
deleteBuffer self buffer = liftDOM (void (((toJSVal buffer) >>= \a2' -> js_deleteBuffer ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"deleteFramebuffer\"]($2); })"
js_deleteFramebuffer :: WebGLRenderingContextBase -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer MDN WebGLRenderingContextBase.deleteFramebuffer documentation>
deleteFramebuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLFramebuffer -> m ()
deleteFramebuffer self framebuffer = liftDOM (void (((toJSVal framebuffer) >>= \a2' -> js_deleteFramebuffer ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"deleteProgram\"]($2); })"
js_deleteProgram :: WebGLRenderingContextBase -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram MDN WebGLRenderingContextBase.deleteProgram documentation>
deleteProgram :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLProgram -> m ()
deleteProgram self program = liftDOM (void (((toJSVal program) >>= \a2' -> js_deleteProgram ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"deleteRenderbuffer\"]($2); })"
js_deleteRenderbuffer :: WebGLRenderingContextBase -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer MDN WebGLRenderingContextBase.deleteRenderbuffer documentation>
deleteRenderbuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLRenderbuffer -> m ()
deleteRenderbuffer self renderbuffer = liftDOM (void (((toJSVal renderbuffer) >>= \a2' -> js_deleteRenderbuffer ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"deleteShader\"]($2); })"
js_deleteShader :: WebGLRenderingContextBase -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader MDN WebGLRenderingContextBase.deleteShader documentation>
deleteShader :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLShader -> m ()
deleteShader self shader = liftDOM (void (((toJSVal shader) >>= \a2' -> js_deleteShader ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"deleteTexture\"]($2); })"
js_deleteTexture :: WebGLRenderingContextBase -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture MDN WebGLRenderingContextBase.deleteTexture documentation>
deleteTexture :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLTexture -> m ()
deleteTexture self texture = liftDOM (void (((toJSVal texture) >>= \a2' -> js_deleteTexture ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"depthFunc\"]($2); })"
js_depthFunc :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc MDN WebGLRenderingContextBase.depthFunc documentation>
depthFunc :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
depthFunc self func = liftDOM (void ((js_depthFunc ((Types.toWebGLRenderingContextBase self)) (func))))
foreign import javascript safe "(($1, $2) => { return $1[\"depthMask\"]($2); })"
js_depthMask :: WebGLRenderingContextBase -> Bool -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask MDN WebGLRenderingContextBase.depthMask documentation>
depthMask :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Bool -> m ()
depthMask self flag = liftDOM (void ((js_depthMask ((Types.toWebGLRenderingContextBase self)) (flag))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"depthRange\"]($2, $3); })"
js_depthRange :: WebGLRenderingContextBase -> Float -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange MDN WebGLRenderingContextBase.depthRange documentation>
depthRange :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Float -> Float -> m ()
depthRange self zNear zFar = liftDOM (void ((js_depthRange ((Types.toWebGLRenderingContextBase self)) (zNear) (zFar))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"detachShader\"]($2, $3); })"
js_detachShader :: WebGLRenderingContextBase -> WebGLProgram -> WebGLShader -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader MDN WebGLRenderingContextBase.detachShader documentation>
detachShader :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> WebGLShader -> m ()
detachShader self program shader = liftDOM (void ((js_detachShader ((Types.toWebGLRenderingContextBase self)) (program) (shader))))
foreign import javascript safe "(($1, $2) => { return $1[\"disable\"]($2); })"
js_disable :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable MDN WebGLRenderingContextBase.disable documentation>
disable :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
disable self cap = liftDOM (void ((js_disable ((Types.toWebGLRenderingContextBase self)) (cap))))
foreign import javascript safe "(($1, $2) => { return $1[\"disableVertexAttribArray\"]($2); })"
js_disableVertexAttribArray :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray MDN WebGLRenderingContextBase.disableVertexAttribArray documentation>
disableVertexAttribArray :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
disableVertexAttribArray self index = liftDOM (void ((js_disableVertexAttribArray ((Types.toWebGLRenderingContextBase self)) (index))))
foreign import javascript safe "(($1, $2, $3, $4) => { return $1[\"drawArrays\"]($2, $3, $4); })"
js_drawArrays :: WebGLRenderingContextBase -> Word -> Int -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays MDN WebGLRenderingContextBase.drawArrays documentation>
drawArrays :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Int -> Int -> m ()
drawArrays self mode first count = liftDOM (void ((js_drawArrays ((Types.toWebGLRenderingContextBase self)) (mode) (first) (count))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"drawElements\"]($2, $3, $4, $5); })"
js_drawElements :: WebGLRenderingContextBase -> Word -> Int -> Word -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements MDN WebGLRenderingContextBase.drawElements documentation>
drawElements :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Int -> Word -> Int53 -> m ()
drawElements self mode count type' offset = liftDOM (void (((toJSVal offset) >>= \a5' -> js_drawElements ((Types.toWebGLRenderingContextBase self)) (mode) (count) (type') a5')))
foreign import javascript safe "(($1, $2) => { return $1[\"enable\"]($2); })"
js_enable :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable MDN WebGLRenderingContextBase.enable documentation>
enable :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
enable self cap = liftDOM (void ((js_enable ((Types.toWebGLRenderingContextBase self)) (cap))))
foreign import javascript safe "(($1, $2) => { return $1[\"enableVertexAttribArray\"]($2); })"
js_enableVertexAttribArray :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray MDN WebGLRenderingContextBase.enableVertexAttribArray documentation>
enableVertexAttribArray :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
enableVertexAttribArray self index = liftDOM (void ((js_enableVertexAttribArray ((Types.toWebGLRenderingContextBase self)) (index))))
foreign import javascript safe "(($1) => { return $1[\"finish\"](); })"
js_finish :: WebGLRenderingContextBase -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish MDN WebGLRenderingContextBase.finish documentation>
finish :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
finish self = liftDOM (void ((js_finish ((Types.toWebGLRenderingContextBase self)))))
foreign import javascript safe "(($1) => { return $1[\"flush\"](); })"
js_flush :: WebGLRenderingContextBase -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush MDN WebGLRenderingContextBase.flush documentation>
flush :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
flush self = liftDOM (void ((js_flush ((Types.toWebGLRenderingContextBase self)))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"framebufferRenderbuffer\"]($2, $3, $4, $5); })"
js_framebufferRenderbuffer :: WebGLRenderingContextBase -> Word -> Word -> Word -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer MDN WebGLRenderingContextBase.framebufferRenderbuffer documentation>
framebufferRenderbuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Word -> Maybe WebGLRenderbuffer -> m ()
framebufferRenderbuffer self target attachment renderbuffertarget renderbuffer = liftDOM (void (((toJSVal renderbuffer) >>= \a5' -> js_framebufferRenderbuffer ((Types.toWebGLRenderingContextBase self)) (target) (attachment) (renderbuffertarget) a5')))
foreign import javascript safe "(($1, $2, $3, $4, $5, $6) => { return $1[\"framebufferTexture2D\"]($2, $3, $4, $5, $6); })"
js_framebufferTexture2D :: WebGLRenderingContextBase -> Word -> Word -> Word -> JSVal -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D MDN WebGLRenderingContextBase.framebufferTexture2D documentation>
framebufferTexture2D :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Word -> Maybe WebGLTexture -> Int -> m ()
framebufferTexture2D self target attachment textarget texture level = liftDOM (void (((toJSVal texture) >>= \a5' -> js_framebufferTexture2D ((Types.toWebGLRenderingContextBase self)) (target) (attachment) (textarget) a5' (level))))
foreign import javascript safe "(($1, $2) => { return $1[\"frontFace\"]($2); })"
js_frontFace :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace MDN WebGLRenderingContextBase.frontFace documentation>
frontFace :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
frontFace self mode = liftDOM (void ((js_frontFace ((Types.toWebGLRenderingContextBase self)) (mode))))
foreign import javascript safe "(($1, $2) => { return $1[\"generateMipmap\"]($2); })"
js_generateMipmap :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap MDN WebGLRenderingContextBase.generateMipmap documentation>
generateMipmap :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
generateMipmap self target = liftDOM (void ((js_generateMipmap ((Types.toWebGLRenderingContextBase self)) (target))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getActiveAttrib\"]($2, $3); })"
js_getActiveAttrib :: WebGLRenderingContextBase -> WebGLProgram -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib MDN WebGLRenderingContextBase.getActiveAttrib documentation>
getActiveAttrib :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> Word -> m (Maybe WebGLActiveInfo)
getActiveAttrib self program index = liftDOM (((js_getActiveAttrib ((Types.toWebGLRenderingContextBase self)) (program) (index)) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib MDN WebGLRenderingContextBase.getActiveAttrib documentation>
getActiveAttrib_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> Word -> m ()
getActiveAttrib_ self program index = liftDOM (void ((js_getActiveAttrib ((Types.toWebGLRenderingContextBase self)) (program) (index))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib MDN WebGLRenderingContextBase.getActiveAttrib documentation>
getActiveAttribUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, HasCallStack) => self -> WebGLProgram -> Word -> m WebGLActiveInfo
getActiveAttribUnsafe self program index = liftDOM ((((js_getActiveAttrib ((Types.toWebGLRenderingContextBase self)) (program) (index)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib MDN WebGLRenderingContextBase.getActiveAttrib documentation>
getActiveAttribUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> Word -> m WebGLActiveInfo
getActiveAttribUnchecked self program index = liftDOM ((pFromJSVal <$> (js_getActiveAttrib ((Types.toWebGLRenderingContextBase self)) (program) (index))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getActiveUniform\"]($2, $3); })"
js_getActiveUniform :: WebGLRenderingContextBase -> WebGLProgram -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform MDN WebGLRenderingContextBase.getActiveUniform documentation>
getActiveUniform :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> Word -> m (Maybe WebGLActiveInfo)
getActiveUniform self program index = liftDOM (((js_getActiveUniform ((Types.toWebGLRenderingContextBase self)) (program) (index)) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform MDN WebGLRenderingContextBase.getActiveUniform documentation>
getActiveUniform_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> Word -> m ()
getActiveUniform_ self program index = liftDOM (void ((js_getActiveUniform ((Types.toWebGLRenderingContextBase self)) (program) (index))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform MDN WebGLRenderingContextBase.getActiveUniform documentation>
getActiveUniformUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, HasCallStack) => self -> WebGLProgram -> Word -> m WebGLActiveInfo
getActiveUniformUnsafe self program index = liftDOM ((((js_getActiveUniform ((Types.toWebGLRenderingContextBase self)) (program) (index)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform MDN WebGLRenderingContextBase.getActiveUniform documentation>
getActiveUniformUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> Word -> m WebGLActiveInfo
getActiveUniformUnchecked self program index = liftDOM ((pFromJSVal <$> (js_getActiveUniform ((Types.toWebGLRenderingContextBase self)) (program) (index))))
foreign import javascript safe "(($1, $2) => { return $1[\"getAttachedShaders\"]($2); })"
js_getAttachedShaders :: WebGLRenderingContextBase -> WebGLProgram -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders MDN WebGLRenderingContextBase.getAttachedShaders documentation>
getAttachedShaders :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> m (Maybe [WebGLShader])
getAttachedShaders self program = liftDOM (((js_getAttachedShaders ((Types.toWebGLRenderingContextBase self)) (program)) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders MDN WebGLRenderingContextBase.getAttachedShaders documentation>
getAttachedShaders_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> m ()
getAttachedShaders_ self program = liftDOM (void ((js_getAttachedShaders ((Types.toWebGLRenderingContextBase self)) (program))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders MDN WebGLRenderingContextBase.getAttachedShaders documentation>
getAttachedShadersUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, HasCallStack) => self -> WebGLProgram -> m [WebGLShader]
getAttachedShadersUnsafe self program = liftDOM ((((js_getAttachedShaders ((Types.toWebGLRenderingContextBase self)) (program)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders MDN WebGLRenderingContextBase.getAttachedShaders documentation>
getAttachedShadersUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> m [WebGLShader]
getAttachedShadersUnchecked self program = liftDOM (((js_getAttachedShaders ((Types.toWebGLRenderingContextBase self)) (program)) >>= fromJSValUnchecked))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getAttribLocation\"]($2, $3); })"
js_getAttribLocation :: WebGLRenderingContextBase -> WebGLProgram -> JSString -> IO Int
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation MDN WebGLRenderingContextBase.getAttribLocation documentation>
getAttribLocation :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name) => self -> WebGLProgram -> name -> m Int
getAttribLocation self program name = liftDOM ((js_getAttribLocation ((Types.toWebGLRenderingContextBase self)) (program) (toJSString name)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation MDN WebGLRenderingContextBase.getAttribLocation documentation>
getAttribLocation_ :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name) => self -> WebGLProgram -> name -> m ()
getAttribLocation_ self program name = liftDOM (void ((js_getAttribLocation ((Types.toWebGLRenderingContextBase self)) (program) (toJSString name))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getBufferParameter\"]($2, $3); })"
js_getBufferParameter :: WebGLRenderingContextBase -> Word -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter MDN WebGLRenderingContextBase.getBufferParameter documentation>
getBufferParameter :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m JSVal
getBufferParameter self target pname = liftDOM ((js_getBufferParameter ((Types.toWebGLRenderingContextBase self)) (target) (pname)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter MDN WebGLRenderingContextBase.getBufferParameter documentation>
getBufferParameter_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m ()
getBufferParameter_ self target pname = liftDOM (void ((js_getBufferParameter ((Types.toWebGLRenderingContextBase self)) (target) (pname))))
foreign import javascript safe "(($1) => { return $1[\"getContextAttributes\"](); })"
js_getContextAttributes :: WebGLRenderingContextBase -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes MDN WebGLRenderingContextBase.getContextAttributes documentation>
getContextAttributes :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m (Maybe WebGLContextAttributes)
getContextAttributes self = liftDOM (((js_getContextAttributes ((Types.toWebGLRenderingContextBase self))) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes MDN WebGLRenderingContextBase.getContextAttributes documentation>
getContextAttributes_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
getContextAttributes_ self = liftDOM (void ((js_getContextAttributes ((Types.toWebGLRenderingContextBase self)))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes MDN WebGLRenderingContextBase.getContextAttributes documentation>
getContextAttributesUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, HasCallStack) => self -> m WebGLContextAttributes
getContextAttributesUnsafe self = liftDOM ((((js_getContextAttributes ((Types.toWebGLRenderingContextBase self))) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes MDN WebGLRenderingContextBase.getContextAttributes documentation>
getContextAttributesUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLContextAttributes
getContextAttributesUnchecked self = liftDOM ((pFromJSVal <$> (js_getContextAttributes ((Types.toWebGLRenderingContextBase self)))))
foreign import javascript safe "(($1) => { return $1[\"getError\"](); })"
js_getError :: WebGLRenderingContextBase -> IO Word
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError MDN WebGLRenderingContextBase.getError documentation>
getError :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m Word
getError self = liftDOM ((js_getError ((Types.toWebGLRenderingContextBase self))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError MDN WebGLRenderingContextBase.getError documentation>
getError_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
getError_ self = liftDOM (void ((js_getError ((Types.toWebGLRenderingContextBase self)))))
foreign import javascript safe "(($1, $2) => { return $1[\"getExtension\"]($2); })"
js_getExtension :: WebGLRenderingContextBase -> JSString -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension MDN WebGLRenderingContextBase.getExtension documentation>
getExtension :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name) => self -> name -> m (Maybe GObject)
getExtension self name = liftDOM (((js_getExtension ((Types.toWebGLRenderingContextBase self)) (toJSString name)) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension MDN WebGLRenderingContextBase.getExtension documentation>
getExtension_ :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name) => self -> name -> m ()
getExtension_ self name = liftDOM (void ((js_getExtension ((Types.toWebGLRenderingContextBase self)) (toJSString name))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension MDN WebGLRenderingContextBase.getExtension documentation>
getExtensionUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name, HasCallStack) => self -> name -> m GObject
getExtensionUnsafe self name = liftDOM ((((js_getExtension ((Types.toWebGLRenderingContextBase self)) (toJSString name)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension MDN WebGLRenderingContextBase.getExtension documentation>
getExtensionUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name) => self -> name -> m GObject
getExtensionUnchecked self name = liftDOM ((pFromJSVal <$> (js_getExtension ((Types.toWebGLRenderingContextBase self)) (toJSString name))))
foreign import javascript safe "(($1, $2, $3, $4) => { return $1[\"getFramebufferAttachmentParameter\"]($2, $3, $4); })"
js_getFramebufferAttachmentParameter :: WebGLRenderingContextBase -> Word -> Word -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter MDN WebGLRenderingContextBase.getFramebufferAttachmentParameter documentation>
getFramebufferAttachmentParameter :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Word -> m JSVal
getFramebufferAttachmentParameter self target attachment pname = liftDOM ((js_getFramebufferAttachmentParameter ((Types.toWebGLRenderingContextBase self)) (target) (attachment) (pname)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter MDN WebGLRenderingContextBase.getFramebufferAttachmentParameter documentation>
getFramebufferAttachmentParameter_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Word -> m ()
getFramebufferAttachmentParameter_ self target attachment pname = liftDOM (void ((js_getFramebufferAttachmentParameter ((Types.toWebGLRenderingContextBase self)) (target) (attachment) (pname))))
foreign import javascript safe "(($1, $2) => { return $1[\"getParameter\"]($2); })"
js_getParameter :: WebGLRenderingContextBase -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter MDN WebGLRenderingContextBase.getParameter documentation>
getParameter :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m JSVal
getParameter self pname = liftDOM ((js_getParameter ((Types.toWebGLRenderingContextBase self)) (pname)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter MDN WebGLRenderingContextBase.getParameter documentation>
getParameter_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
getParameter_ self pname = liftDOM (void ((js_getParameter ((Types.toWebGLRenderingContextBase self)) (pname))))
foreign import javascript safe "(($1, $2) => { return $1[\"getProgramInfoLog\"]($2); })"
js_getProgramInfoLog :: WebGLRenderingContextBase -> WebGLProgram -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog MDN WebGLRenderingContextBase.getProgramInfoLog documentation>
getProgramInfoLog :: (MonadDOM m, IsWebGLRenderingContextBase self, FromJSString result) => self -> WebGLProgram -> m (Maybe result)
getProgramInfoLog self program = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getProgramInfoLog ((Types.toWebGLRenderingContextBase self)) (program))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog MDN WebGLRenderingContextBase.getProgramInfoLog documentation>
getProgramInfoLog_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> m ()
getProgramInfoLog_ self program = liftDOM (void ((js_getProgramInfoLog ((Types.toWebGLRenderingContextBase self)) (program))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog MDN WebGLRenderingContextBase.getProgramInfoLog documentation>
getProgramInfoLogUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, HasCallStack, FromJSString result) => self -> WebGLProgram -> m result
getProgramInfoLogUnsafe self program = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getProgramInfoLog ((Types.toWebGLRenderingContextBase self)) (program))) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog MDN WebGLRenderingContextBase.getProgramInfoLog documentation>
getProgramInfoLogUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self, FromJSString result) => self -> WebGLProgram -> m result
getProgramInfoLogUnchecked self program = liftDOM ((pFromJSVal <$> (js_getProgramInfoLog ((Types.toWebGLRenderingContextBase self)) (program))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getProgramParameter\"]($2, $3); })"
js_getProgramParameter :: WebGLRenderingContextBase -> WebGLProgram -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter MDN WebGLRenderingContextBase.getProgramParameter documentation>
getProgramParameter :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> Word -> m JSVal
getProgramParameter self program pname = liftDOM ((js_getProgramParameter ((Types.toWebGLRenderingContextBase self)) (program) (pname)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter MDN WebGLRenderingContextBase.getProgramParameter documentation>
getProgramParameter_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> Word -> m ()
getProgramParameter_ self program pname = liftDOM (void ((js_getProgramParameter ((Types.toWebGLRenderingContextBase self)) (program) (pname))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getRenderbufferParameter\"]($2, $3); })"
js_getRenderbufferParameter :: WebGLRenderingContextBase -> Word -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter MDN WebGLRenderingContextBase.getRenderbufferParameter documentation>
getRenderbufferParameter :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m JSVal
getRenderbufferParameter self target pname = liftDOM ((js_getRenderbufferParameter ((Types.toWebGLRenderingContextBase self)) (target) (pname)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter MDN WebGLRenderingContextBase.getRenderbufferParameter documentation>
getRenderbufferParameter_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m ()
getRenderbufferParameter_ self target pname = liftDOM (void ((js_getRenderbufferParameter ((Types.toWebGLRenderingContextBase self)) (target) (pname))))
foreign import javascript safe "(($1, $2) => { return $1[\"getShaderInfoLog\"]($2); })"
js_getShaderInfoLog :: WebGLRenderingContextBase -> WebGLShader -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog MDN WebGLRenderingContextBase.getShaderInfoLog documentation>
getShaderInfoLog :: (MonadDOM m, IsWebGLRenderingContextBase self, FromJSString result) => self -> WebGLShader -> m (Maybe result)
getShaderInfoLog self shader = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getShaderInfoLog ((Types.toWebGLRenderingContextBase self)) (shader))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog MDN WebGLRenderingContextBase.getShaderInfoLog documentation>
getShaderInfoLog_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLShader -> m ()
getShaderInfoLog_ self shader = liftDOM (void ((js_getShaderInfoLog ((Types.toWebGLRenderingContextBase self)) (shader))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog MDN WebGLRenderingContextBase.getShaderInfoLog documentation>
getShaderInfoLogUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, HasCallStack, FromJSString result) => self -> WebGLShader -> m result
getShaderInfoLogUnsafe self shader = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getShaderInfoLog ((Types.toWebGLRenderingContextBase self)) (shader))) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog MDN WebGLRenderingContextBase.getShaderInfoLog documentation>
getShaderInfoLogUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self, FromJSString result) => self -> WebGLShader -> m result
getShaderInfoLogUnchecked self shader = liftDOM ((pFromJSVal <$> (js_getShaderInfoLog ((Types.toWebGLRenderingContextBase self)) (shader))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getShaderParameter\"]($2, $3); })"
js_getShaderParameter :: WebGLRenderingContextBase -> WebGLShader -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter MDN WebGLRenderingContextBase.getShaderParameter documentation>
getShaderParameter :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLShader -> Word -> m JSVal
getShaderParameter self shader pname = liftDOM ((js_getShaderParameter ((Types.toWebGLRenderingContextBase self)) (shader) (pname)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter MDN WebGLRenderingContextBase.getShaderParameter documentation>
getShaderParameter_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLShader -> Word -> m ()
getShaderParameter_ self shader pname = liftDOM (void ((js_getShaderParameter ((Types.toWebGLRenderingContextBase self)) (shader) (pname))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getShaderPrecisionFormat\"]($2, $3); })"
js_getShaderPrecisionFormat :: WebGLRenderingContextBase -> Word -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat MDN WebGLRenderingContextBase.getShaderPrecisionFormat documentation>
getShaderPrecisionFormat :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m (Maybe WebGLShaderPrecisionFormat)
getShaderPrecisionFormat self shadertype precisiontype = liftDOM (((js_getShaderPrecisionFormat ((Types.toWebGLRenderingContextBase self)) (shadertype) (precisiontype)) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat MDN WebGLRenderingContextBase.getShaderPrecisionFormat documentation>
getShaderPrecisionFormat_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m ()
getShaderPrecisionFormat_ self shadertype precisiontype = liftDOM (void ((js_getShaderPrecisionFormat ((Types.toWebGLRenderingContextBase self)) (shadertype) (precisiontype))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat MDN WebGLRenderingContextBase.getShaderPrecisionFormat documentation>
getShaderPrecisionFormatUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, HasCallStack) => self -> Word -> Word -> m WebGLShaderPrecisionFormat
getShaderPrecisionFormatUnsafe self shadertype precisiontype = liftDOM ((((js_getShaderPrecisionFormat ((Types.toWebGLRenderingContextBase self)) (shadertype) (precisiontype)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat MDN WebGLRenderingContextBase.getShaderPrecisionFormat documentation>
getShaderPrecisionFormatUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m WebGLShaderPrecisionFormat
getShaderPrecisionFormatUnchecked self shadertype precisiontype = liftDOM ((pFromJSVal <$> (js_getShaderPrecisionFormat ((Types.toWebGLRenderingContextBase self)) (shadertype) (precisiontype))))
foreign import javascript safe "(($1, $2) => { return $1[\"getShaderSource\"]($2); })"
js_getShaderSource :: WebGLRenderingContextBase -> WebGLShader -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource MDN WebGLRenderingContextBase.getShaderSource documentation>
getShaderSource :: (MonadDOM m, IsWebGLRenderingContextBase self, FromJSString result) => self -> WebGLShader -> m (Maybe result)
getShaderSource self shader = liftDOM (((fromMaybeJSString . Nullable) <$> (js_getShaderSource ((Types.toWebGLRenderingContextBase self)) (shader))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource MDN WebGLRenderingContextBase.getShaderSource documentation>
getShaderSource_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLShader -> m ()
getShaderSource_ self shader = liftDOM (void ((js_getShaderSource ((Types.toWebGLRenderingContextBase self)) (shader))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource MDN WebGLRenderingContextBase.getShaderSource documentation>
getShaderSourceUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, HasCallStack, FromJSString result) => self -> WebGLShader -> m result
getShaderSourceUnsafe self shader = liftDOM ((((fromMaybeJSString . Nullable) <$> (js_getShaderSource ((Types.toWebGLRenderingContextBase self)) (shader))) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource MDN WebGLRenderingContextBase.getShaderSource documentation>
getShaderSourceUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self, FromJSString result) => self -> WebGLShader -> m result
getShaderSourceUnchecked self shader = liftDOM ((pFromJSVal <$> (js_getShaderSource ((Types.toWebGLRenderingContextBase self)) (shader))))
foreign import javascript safe "(($1) => { return $1[\"getSupportedExtensions\"](); })"
js_getSupportedExtensions :: WebGLRenderingContextBase -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions MDN WebGLRenderingContextBase.getSupportedExtensions documentation>
getSupportedExtensions :: (MonadDOM m, IsWebGLRenderingContextBase self, FromJSString result) => self -> m (Maybe [result])
getSupportedExtensions self = liftDOM (((js_getSupportedExtensions ((Types.toWebGLRenderingContextBase self))) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions MDN WebGLRenderingContextBase.getSupportedExtensions documentation>
getSupportedExtensions_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
getSupportedExtensions_ self = liftDOM (void ((js_getSupportedExtensions ((Types.toWebGLRenderingContextBase self)))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions MDN WebGLRenderingContextBase.getSupportedExtensions documentation>
getSupportedExtensionsUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, HasCallStack, FromJSString result) => self -> m [result]
getSupportedExtensionsUnsafe self = liftDOM ((((js_getSupportedExtensions ((Types.toWebGLRenderingContextBase self))) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions MDN WebGLRenderingContextBase.getSupportedExtensions documentation>
getSupportedExtensionsUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self, FromJSString result) => self -> m [result]
getSupportedExtensionsUnchecked self = liftDOM (((js_getSupportedExtensions ((Types.toWebGLRenderingContextBase self))) >>= fromJSValUnchecked))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getTexParameter\"]($2, $3); })"
js_getTexParameter :: WebGLRenderingContextBase -> Word -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter MDN WebGLRenderingContextBase.getTexParameter documentation>
getTexParameter :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m JSVal
getTexParameter self target pname = liftDOM ((js_getTexParameter ((Types.toWebGLRenderingContextBase self)) (target) (pname)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter MDN WebGLRenderingContextBase.getTexParameter documentation>
getTexParameter_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m ()
getTexParameter_ self target pname = liftDOM (void ((js_getTexParameter ((Types.toWebGLRenderingContextBase self)) (target) (pname))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getUniform\"]($2, $3); })"
js_getUniform :: WebGLRenderingContextBase -> WebGLProgram -> WebGLUniformLocation -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform MDN WebGLRenderingContextBase.getUniform documentation>
getUniform :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> WebGLUniformLocation -> m JSVal
getUniform self program location = liftDOM ((js_getUniform ((Types.toWebGLRenderingContextBase self)) (program) (location)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform MDN WebGLRenderingContextBase.getUniform documentation>
getUniform_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> WebGLUniformLocation -> m ()
getUniform_ self program location = liftDOM (void ((js_getUniform ((Types.toWebGLRenderingContextBase self)) (program) (location))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getUniformLocation\"]($2, $3); })"
js_getUniformLocation :: WebGLRenderingContextBase -> WebGLProgram -> JSString -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation MDN WebGLRenderingContextBase.getUniformLocation documentation>
getUniformLocation :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name) => self -> WebGLProgram -> name -> m (Maybe WebGLUniformLocation)
getUniformLocation self program name = liftDOM (((js_getUniformLocation ((Types.toWebGLRenderingContextBase self)) (program) (toJSString name)) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation MDN WebGLRenderingContextBase.getUniformLocation documentation>
getUniformLocation_ :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name) => self -> WebGLProgram -> name -> m ()
getUniformLocation_ self program name = liftDOM (void ((js_getUniformLocation ((Types.toWebGLRenderingContextBase self)) (program) (toJSString name))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation MDN WebGLRenderingContextBase.getUniformLocation documentation>
getUniformLocationUnsafe :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name, HasCallStack) => self -> WebGLProgram -> name -> m WebGLUniformLocation
getUniformLocationUnsafe self program name = liftDOM ((((js_getUniformLocation ((Types.toWebGLRenderingContextBase self)) (program) (toJSString name)) >>= fromJSValUnchecked) >>= P.maybe (P.error "Nothing to return") P.return))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation MDN WebGLRenderingContextBase.getUniformLocation documentation>
getUniformLocationUnchecked :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString name) => self -> WebGLProgram -> name -> m WebGLUniformLocation
getUniformLocationUnchecked self program name = liftDOM ((pFromJSVal <$> (js_getUniformLocation ((Types.toWebGLRenderingContextBase self)) (program) (toJSString name))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getVertexAttrib\"]($2, $3); })"
js_getVertexAttrib :: WebGLRenderingContextBase -> Word -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib MDN WebGLRenderingContextBase.getVertexAttrib documentation>
getVertexAttrib :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m JSVal
getVertexAttrib self index pname = liftDOM ((js_getVertexAttrib ((Types.toWebGLRenderingContextBase self)) (index) (pname)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib MDN WebGLRenderingContextBase.getVertexAttrib documentation>
getVertexAttrib_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m ()
getVertexAttrib_ self index pname = liftDOM (void ((js_getVertexAttrib ((Types.toWebGLRenderingContextBase self)) (index) (pname))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"getVertexAttribOffset\"]($2, $3); })"
js_getVertexAttribOffset :: WebGLRenderingContextBase -> Word -> Word -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset MDN WebGLRenderingContextBase.getVertexAttribOffset documentation>
getVertexAttribOffset :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m Int53
getVertexAttribOffset self index pname = liftDOM (((js_getVertexAttribOffset ((Types.toWebGLRenderingContextBase self)) (index) (pname)) >>= fromJSValUnchecked))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset MDN WebGLRenderingContextBase.getVertexAttribOffset documentation>
getVertexAttribOffset_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m ()
getVertexAttribOffset_ self index pname = liftDOM (void ((js_getVertexAttribOffset ((Types.toWebGLRenderingContextBase self)) (index) (pname))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"hint\"]($2, $3); })"
js_hint :: WebGLRenderingContextBase -> Word -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint MDN WebGLRenderingContextBase.hint documentation>
hint :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m ()
hint self target mode = liftDOM (void ((js_hint ((Types.toWebGLRenderingContextBase self)) (target) (mode))))
foreign import javascript safe "(($1, $2) => { return $1[\"isBuffer\"]($2); })"
js_isBuffer :: WebGLRenderingContextBase -> JSVal -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer MDN WebGLRenderingContextBase.isBuffer documentation>
isBuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLBuffer -> m Bool
isBuffer self buffer = liftDOM (((toJSVal buffer) >>= \a2' -> js_isBuffer ((Types.toWebGLRenderingContextBase self)) a2'))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer MDN WebGLRenderingContextBase.isBuffer documentation>
isBuffer_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLBuffer -> m ()
isBuffer_ self buffer = liftDOM (void (((toJSVal buffer) >>= \a2' -> js_isBuffer ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1) => { return $1[\"isContextLost\"](); })"
js_isContextLost :: WebGLRenderingContextBase -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost MDN WebGLRenderingContextBase.isContextLost documentation>
isContextLost :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m Bool
isContextLost self = liftDOM ((js_isContextLost ((Types.toWebGLRenderingContextBase self))))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost MDN WebGLRenderingContextBase.isContextLost documentation>
isContextLost_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
isContextLost_ self = liftDOM (void ((js_isContextLost ((Types.toWebGLRenderingContextBase self)))))
foreign import javascript safe "(($1, $2) => { return $1[\"isEnabled\"]($2); })"
js_isEnabled :: WebGLRenderingContextBase -> Word -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled MDN WebGLRenderingContextBase.isEnabled documentation>
isEnabled :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m Bool
isEnabled self cap = liftDOM ((js_isEnabled ((Types.toWebGLRenderingContextBase self)) (cap)))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled MDN WebGLRenderingContextBase.isEnabled documentation>
isEnabled_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
isEnabled_ self cap = liftDOM (void ((js_isEnabled ((Types.toWebGLRenderingContextBase self)) (cap))))
foreign import javascript safe "(($1, $2) => { return $1[\"isFramebuffer\"]($2); })"
js_isFramebuffer :: WebGLRenderingContextBase -> JSVal -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer MDN WebGLRenderingContextBase.isFramebuffer documentation>
isFramebuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLFramebuffer -> m Bool
isFramebuffer self framebuffer = liftDOM (((toJSVal framebuffer) >>= \a2' -> js_isFramebuffer ((Types.toWebGLRenderingContextBase self)) a2'))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer MDN WebGLRenderingContextBase.isFramebuffer documentation>
isFramebuffer_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLFramebuffer -> m ()
isFramebuffer_ self framebuffer = liftDOM (void (((toJSVal framebuffer) >>= \a2' -> js_isFramebuffer ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"isProgram\"]($2); })"
js_isProgram :: WebGLRenderingContextBase -> JSVal -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram MDN WebGLRenderingContextBase.isProgram documentation>
isProgram :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLProgram -> m Bool
isProgram self program = liftDOM (((toJSVal program) >>= \a2' -> js_isProgram ((Types.toWebGLRenderingContextBase self)) a2'))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram MDN WebGLRenderingContextBase.isProgram documentation>
isProgram_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLProgram -> m ()
isProgram_ self program = liftDOM (void (((toJSVal program) >>= \a2' -> js_isProgram ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"isRenderbuffer\"]($2); })"
js_isRenderbuffer :: WebGLRenderingContextBase -> JSVal -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer MDN WebGLRenderingContextBase.isRenderbuffer documentation>
isRenderbuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLRenderbuffer -> m Bool
isRenderbuffer self renderbuffer = liftDOM (((toJSVal renderbuffer) >>= \a2' -> js_isRenderbuffer ((Types.toWebGLRenderingContextBase self)) a2'))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer MDN WebGLRenderingContextBase.isRenderbuffer documentation>
isRenderbuffer_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLRenderbuffer -> m ()
isRenderbuffer_ self renderbuffer = liftDOM (void (((toJSVal renderbuffer) >>= \a2' -> js_isRenderbuffer ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"isShader\"]($2); })"
js_isShader :: WebGLRenderingContextBase -> JSVal -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader MDN WebGLRenderingContextBase.isShader documentation>
isShader :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLShader -> m Bool
isShader self shader = liftDOM (((toJSVal shader) >>= \a2' -> js_isShader ((Types.toWebGLRenderingContextBase self)) a2'))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader MDN WebGLRenderingContextBase.isShader documentation>
isShader_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLShader -> m ()
isShader_ self shader = liftDOM (void (((toJSVal shader) >>= \a2' -> js_isShader ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"isTexture\"]($2); })"
js_isTexture :: WebGLRenderingContextBase -> JSVal -> IO Bool
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture MDN WebGLRenderingContextBase.isTexture documentation>
isTexture :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLTexture -> m Bool
isTexture self texture = liftDOM (((toJSVal texture) >>= \a2' -> js_isTexture ((Types.toWebGLRenderingContextBase self)) a2'))
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture MDN WebGLRenderingContextBase.isTexture documentation>
isTexture_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLTexture -> m ()
isTexture_ self texture = liftDOM (void (((toJSVal texture) >>= \a2' -> js_isTexture ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"lineWidth\"]($2); })"
js_lineWidth :: WebGLRenderingContextBase -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/lineWidth MDN WebGLRenderingContextBase.lineWidth documentation>
lineWidth :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Float -> m ()
lineWidth self width = liftDOM (void ((js_lineWidth ((Types.toWebGLRenderingContextBase self)) (width))))
foreign import javascript safe "(($1, $2) => { return $1[\"linkProgram\"]($2); })"
js_linkProgram :: WebGLRenderingContextBase -> WebGLProgram -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram MDN WebGLRenderingContextBase.linkProgram documentation>
linkProgram :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> m ()
linkProgram self program = liftDOM (void ((js_linkProgram ((Types.toWebGLRenderingContextBase self)) (program))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"pixelStorei\"]($2, $3); })"
js_pixelStorei :: WebGLRenderingContextBase -> Word -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei MDN WebGLRenderingContextBase.pixelStorei documentation>
pixelStorei :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Int -> m ()
pixelStorei self pname param = liftDOM (void ((js_pixelStorei ((Types.toWebGLRenderingContextBase self)) (pname) (param))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"polygonOffset\"]($2, $3); })"
js_polygonOffset :: WebGLRenderingContextBase -> Float -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset MDN WebGLRenderingContextBase.polygonOffset documentation>
polygonOffset :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Float -> Float -> m ()
polygonOffset self factor units = liftDOM (void ((js_polygonOffset ((Types.toWebGLRenderingContextBase self)) (factor) (units))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"renderbufferStorage\"]($2, $3, $4, $5); })"
js_renderbufferStorage :: WebGLRenderingContextBase -> Word -> Word -> Int -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage MDN WebGLRenderingContextBase.renderbufferStorage documentation>
renderbufferStorage :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Int -> Int -> m ()
renderbufferStorage self target internalformat width height = liftDOM (void ((js_renderbufferStorage ((Types.toWebGLRenderingContextBase self)) (target) (internalformat) (width) (height))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"sampleCoverage\"]($2, $3); })"
js_sampleCoverage :: WebGLRenderingContextBase -> Float -> Bool -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage MDN WebGLRenderingContextBase.sampleCoverage documentation>
sampleCoverage :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Float -> Bool -> m ()
sampleCoverage self value invert = liftDOM (void ((js_sampleCoverage ((Types.toWebGLRenderingContextBase self)) (value) (invert))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"scissor\"]($2, $3, $4, $5); })"
js_scissor :: WebGLRenderingContextBase -> Int -> Int -> Int -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor MDN WebGLRenderingContextBase.scissor documentation>
scissor :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Int -> Int -> Int -> Int -> m ()
scissor self x y width height = liftDOM (void ((js_scissor ((Types.toWebGLRenderingContextBase self)) (x) (y) (width) (height))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"shaderSource\"]($2, $3); })"
js_shaderSource :: WebGLRenderingContextBase -> WebGLShader -> JSString -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource MDN WebGLRenderingContextBase.shaderSource documentation>
shaderSource :: (MonadDOM m, IsWebGLRenderingContextBase self, ToJSString source) => self -> WebGLShader -> source -> m ()
shaderSource self shader source = liftDOM (void ((js_shaderSource ((Types.toWebGLRenderingContextBase self)) (shader) (toJSString source))))
foreign import javascript safe "(($1, $2, $3, $4) => { return $1[\"stencilFunc\"]($2, $3, $4); })"
js_stencilFunc :: WebGLRenderingContextBase -> Word -> Int -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc MDN WebGLRenderingContextBase.stencilFunc documentation>
stencilFunc :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Int -> Word -> m ()
stencilFunc self func ref mask = liftDOM (void ((js_stencilFunc ((Types.toWebGLRenderingContextBase self)) (func) (ref) (mask))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"stencilFuncSeparate\"]($2, $3, $4, $5); })"
js_stencilFuncSeparate :: WebGLRenderingContextBase -> Word -> Word -> Int -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate MDN WebGLRenderingContextBase.stencilFuncSeparate documentation>
stencilFuncSeparate :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Int -> Word -> m ()
stencilFuncSeparate self face func ref mask = liftDOM (void ((js_stencilFuncSeparate ((Types.toWebGLRenderingContextBase self)) (face) (func) (ref) (mask))))
foreign import javascript safe "(($1, $2) => { return $1[\"stencilMask\"]($2); })"
js_stencilMask :: WebGLRenderingContextBase -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask MDN WebGLRenderingContextBase.stencilMask documentation>
stencilMask :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> m ()
stencilMask self mask = liftDOM (void ((js_stencilMask ((Types.toWebGLRenderingContextBase self)) (mask))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"stencilMaskSeparate\"]($2, $3); })"
js_stencilMaskSeparate :: WebGLRenderingContextBase -> Word -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate MDN WebGLRenderingContextBase.stencilMaskSeparate documentation>
stencilMaskSeparate :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> m ()
stencilMaskSeparate self face mask = liftDOM (void ((js_stencilMaskSeparate ((Types.toWebGLRenderingContextBase self)) (face) (mask))))
foreign import javascript safe "(($1, $2, $3, $4) => { return $1[\"stencilOp\"]($2, $3, $4); })"
js_stencilOp :: WebGLRenderingContextBase -> Word -> Word -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp MDN WebGLRenderingContextBase.stencilOp documentation>
stencilOp :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Word -> m ()
stencilOp self fail zfail zpass = liftDOM (void ((js_stencilOp ((Types.toWebGLRenderingContextBase self)) (fail) (zfail) (zpass))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"stencilOpSeparate\"]($2, $3, $4, $5); })"
js_stencilOpSeparate :: WebGLRenderingContextBase -> Word -> Word -> Word -> Word -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate MDN WebGLRenderingContextBase.stencilOpSeparate documentation>
stencilOpSeparate :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Word -> Word -> m ()
stencilOpSeparate self face fail zfail zpass = liftDOM (void ((js_stencilOpSeparate ((Types.toWebGLRenderingContextBase self)) (face) (fail) (zfail) (zpass))))
foreign import javascript safe "(($1, $2, $3, $4) => { return $1[\"texParameterf\"]($2, $3, $4); })"
js_texParameterf :: WebGLRenderingContextBase -> Word -> Word -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter MDN WebGLRenderingContextBase.texParameterf documentation>
texParameterf :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Float -> m ()
texParameterf self target pname param = liftDOM (void ((js_texParameterf ((Types.toWebGLRenderingContextBase self)) (target) (pname) (param))))
foreign import javascript safe "(($1, $2, $3, $4) => { return $1[\"texParameteri\"]($2, $3, $4); })"
js_texParameteri :: WebGLRenderingContextBase -> Word -> Word -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter MDN WebGLRenderingContextBase.texParameteri documentation>
texParameteri :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Word -> Int -> m ()
texParameteri self target pname param = liftDOM (void ((js_texParameteri ((Types.toWebGLRenderingContextBase self)) (target) (pname) (param))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"uniform1f\"]($2, $3); })"
js_uniform1f :: WebGLRenderingContextBase -> JSVal -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform MDN WebGLRenderingContextBase.uniform1f documentation>
uniform1f :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLUniformLocation -> Float -> m ()
uniform1f self location x = liftDOM (void (((toJSVal location) >>= \a2' -> js_uniform1f ((Types.toWebGLRenderingContextBase self)) a2' (x))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"uniform1i\"]($2, $3); })"
js_uniform1i :: WebGLRenderingContextBase -> JSVal -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform MDN WebGLRenderingContextBase.uniform1i documentation>
uniform1i :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLUniformLocation -> Int -> m ()
uniform1i self location x = liftDOM (void (((toJSVal location) >>= \a2' -> js_uniform1i ((Types.toWebGLRenderingContextBase self)) a2' (x))))
foreign import javascript safe "(($1, $2, $3, $4) => { return $1[\"uniform2f\"]($2, $3, $4); })"
js_uniform2f :: WebGLRenderingContextBase -> JSVal -> Float -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform MDN WebGLRenderingContextBase.uniform2f documentation>
uniform2f :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLUniformLocation -> Float -> Float -> m ()
uniform2f self location x y = liftDOM (void (((toJSVal location) >>= \a2' -> js_uniform2f ((Types.toWebGLRenderingContextBase self)) a2' (x) (y))))
foreign import javascript safe "(($1, $2, $3, $4) => { return $1[\"uniform2i\"]($2, $3, $4); })"
js_uniform2i :: WebGLRenderingContextBase -> JSVal -> Int -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform MDN WebGLRenderingContextBase.uniform2i documentation>
uniform2i :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLUniformLocation -> Int -> Int -> m ()
uniform2i self location x y = liftDOM (void (((toJSVal location) >>= \a2' -> js_uniform2i ((Types.toWebGLRenderingContextBase self)) a2' (x) (y))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"uniform3f\"]($2, $3, $4, $5); })"
js_uniform3f :: WebGLRenderingContextBase -> JSVal -> Float -> Float -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform MDN WebGLRenderingContextBase.uniform3f documentation>
uniform3f :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLUniformLocation -> Float -> Float -> Float -> m ()
uniform3f self location x y z = liftDOM (void (((toJSVal location) >>= \a2' -> js_uniform3f ((Types.toWebGLRenderingContextBase self)) a2' (x) (y) (z))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"uniform3i\"]($2, $3, $4, $5); })"
js_uniform3i :: WebGLRenderingContextBase -> JSVal -> Int -> Int -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform MDN WebGLRenderingContextBase.uniform3i documentation>
uniform3i :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLUniformLocation -> Int -> Int -> Int -> m ()
uniform3i self location x y z = liftDOM (void (((toJSVal location) >>= \a2' -> js_uniform3i ((Types.toWebGLRenderingContextBase self)) a2' (x) (y) (z))))
foreign import javascript safe "(($1, $2, $3, $4, $5, $6) => { return $1[\"uniform4f\"]($2, $3, $4, $5, $6); })"
js_uniform4f :: WebGLRenderingContextBase -> JSVal -> Float -> Float -> Float -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform MDN WebGLRenderingContextBase.uniform4f documentation>
uniform4f :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLUniformLocation -> Float -> Float -> Float -> Float -> m ()
uniform4f self location x y z w = liftDOM (void (((toJSVal location) >>= \a2' -> js_uniform4f ((Types.toWebGLRenderingContextBase self)) a2' (x) (y) (z) (w))))
foreign import javascript safe "(($1, $2, $3, $4, $5, $6) => { return $1[\"uniform4i\"]($2, $3, $4, $5, $6); })"
js_uniform4i :: WebGLRenderingContextBase -> JSVal -> Int -> Int -> Int -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform MDN WebGLRenderingContextBase.uniform4i documentation>
uniform4i :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLUniformLocation -> Int -> Int -> Int -> Int -> m ()
uniform4i self location x y z w = liftDOM (void (((toJSVal location) >>= \a2' -> js_uniform4i ((Types.toWebGLRenderingContextBase self)) a2' (x) (y) (z) (w))))
foreign import javascript safe "(($1, $2) => { return $1[\"useProgram\"]($2); })"
js_useProgram :: WebGLRenderingContextBase -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram MDN WebGLRenderingContextBase.useProgram documentation>
useProgram :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Maybe WebGLProgram -> m ()
useProgram self program = liftDOM (void (((toJSVal program) >>= \a2' -> js_useProgram ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript safe "(($1, $2) => { return $1[\"validateProgram\"]($2); })"
js_validateProgram :: WebGLRenderingContextBase -> WebGLProgram -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram MDN WebGLRenderingContextBase.validateProgram documentation>
validateProgram :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> WebGLProgram -> m ()
validateProgram self program = liftDOM (void ((js_validateProgram ((Types.toWebGLRenderingContextBase self)) (program))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"vertexAttrib1f\"]($2, $3); })"
js_vertexAttrib1f :: WebGLRenderingContextBase -> Word -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib MDN WebGLRenderingContextBase.vertexAttrib1f documentation>
vertexAttrib1f :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Float -> m ()
vertexAttrib1f self index x = liftDOM (void ((js_vertexAttrib1f ((Types.toWebGLRenderingContextBase self)) (index) (x))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"vertexAttrib1fv\"]($2, $3); })"
js_vertexAttrib1fv :: WebGLRenderingContextBase -> Word -> Float32List -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib MDN WebGLRenderingContextBase.vertexAttrib1fv documentation>
vertexAttrib1fv :: (MonadDOM m, IsWebGLRenderingContextBase self, IsFloat32List values) => self -> Word -> values -> m ()
vertexAttrib1fv self index values = liftDOM (void ((js_vertexAttrib1fv ((Types.toWebGLRenderingContextBase self)) (index) (Types.toFloat32List values))))
foreign import javascript safe "(($1, $2, $3, $4) => { return $1[\"vertexAttrib2f\"]($2, $3, $4); })"
js_vertexAttrib2f :: WebGLRenderingContextBase -> Word -> Float -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib MDN WebGLRenderingContextBase.vertexAttrib2f documentation>
vertexAttrib2f :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Float -> Float -> m ()
vertexAttrib2f self index x y = liftDOM (void ((js_vertexAttrib2f ((Types.toWebGLRenderingContextBase self)) (index) (x) (y))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"vertexAttrib2fv\"]($2, $3); })"
js_vertexAttrib2fv :: WebGLRenderingContextBase -> Word -> Float32List -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib MDN WebGLRenderingContextBase.vertexAttrib2fv documentation>
vertexAttrib2fv :: (MonadDOM m, IsWebGLRenderingContextBase self, IsFloat32List values) => self -> Word -> values -> m ()
vertexAttrib2fv self index values = liftDOM (void ((js_vertexAttrib2fv ((Types.toWebGLRenderingContextBase self)) (index) (Types.toFloat32List values))))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"vertexAttrib3f\"]($2, $3, $4, $5); })"
js_vertexAttrib3f :: WebGLRenderingContextBase -> Word -> Float -> Float -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib MDN WebGLRenderingContextBase.vertexAttrib3f documentation>
vertexAttrib3f :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Float -> Float -> Float -> m ()
vertexAttrib3f self index x y z = liftDOM (void ((js_vertexAttrib3f ((Types.toWebGLRenderingContextBase self)) (index) (x) (y) (z))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"vertexAttrib3fv\"]($2, $3); })"
js_vertexAttrib3fv :: WebGLRenderingContextBase -> Word -> Float32List -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib MDN WebGLRenderingContextBase.vertexAttrib3fv documentation>
vertexAttrib3fv :: (MonadDOM m, IsWebGLRenderingContextBase self, IsFloat32List values) => self -> Word -> values -> m ()
vertexAttrib3fv self index values = liftDOM (void ((js_vertexAttrib3fv ((Types.toWebGLRenderingContextBase self)) (index) (Types.toFloat32List values))))
foreign import javascript safe "(($1, $2, $3, $4, $5, $6) => { return $1[\"vertexAttrib4f\"]($2, $3, $4, $5, $6); })"
js_vertexAttrib4f :: WebGLRenderingContextBase -> Word -> Float -> Float -> Float -> Float -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib MDN WebGLRenderingContextBase.vertexAttrib4f documentation>
vertexAttrib4f :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Float -> Float -> Float -> Float -> m ()
vertexAttrib4f self index x y z w = liftDOM (void ((js_vertexAttrib4f ((Types.toWebGLRenderingContextBase self)) (index) (x) (y) (z) (w))))
foreign import javascript safe "(($1, $2, $3) => { return $1[\"vertexAttrib4fv\"]($2, $3); })"
js_vertexAttrib4fv :: WebGLRenderingContextBase -> Word -> Float32List -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib MDN WebGLRenderingContextBase.vertexAttrib4fv documentation>
vertexAttrib4fv :: (MonadDOM m, IsWebGLRenderingContextBase self, IsFloat32List values) => self -> Word -> values -> m ()
vertexAttrib4fv self index values = liftDOM (void ((js_vertexAttrib4fv ((Types.toWebGLRenderingContextBase self)) (index) (Types.toFloat32List values))))
foreign import javascript safe "(($1, $2, $3, $4, $5, $6, $7) => { return $1[\"vertexAttribPointer\"]($2, $3, $4, $5, $6, $7); })"
js_vertexAttribPointer :: WebGLRenderingContextBase -> Word -> Int -> Word -> Bool -> Int -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer MDN WebGLRenderingContextBase.vertexAttribPointer documentation>
vertexAttribPointer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Word -> Int -> Word -> Bool -> Int -> Int53 -> m ()
vertexAttribPointer self index size type' normalized stride offset = liftDOM (void (((toJSVal offset) >>= \a7' -> js_vertexAttribPointer ((Types.toWebGLRenderingContextBase self)) (index) (size) (type') (normalized) (stride) a7')))
foreign import javascript safe "(($1, $2, $3, $4, $5) => { return $1[\"viewport\"]($2, $3, $4, $5); })"
js_viewport :: WebGLRenderingContextBase -> Int -> Int -> Int -> Int -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport MDN WebGLRenderingContextBase.viewport documentation>
viewport :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> Int -> Int -> Int -> Int -> m ()
viewport self x y width height = liftDOM (void ((js_viewport ((Types.toWebGLRenderingContextBase self)) (x) (y) (width) (height))))
foreign import javascript unsafe "(($1) => { return $1[\"canvas\"]; })"
js_getCanvas :: WebGLRenderingContextBase -> IO HTMLCanvasElementOrOffscreenCanvas
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas MDN WebGLRenderingContextBase.canvas documentation>
getCanvas :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m HTMLCanvasElementOrOffscreenCanvas
getCanvas self = liftDOM ((js_getCanvas ((Types.toWebGLRenderingContextBase self))))
foreign import javascript unsafe "(($1) => { return $1[\"drawingBufferWidth\"]; })"
js_getDrawingBufferWidth :: WebGLRenderingContextBase -> IO Int
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth MDN WebGLRenderingContextBase.drawingBufferWidth documentation>
getDrawingBufferWidth :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m Int
getDrawingBufferWidth self = liftDOM ((js_getDrawingBufferWidth ((Types.toWebGLRenderingContextBase self))))
foreign import javascript unsafe "(($1) => { return $1[\"drawingBufferHeight\"]; })"
js_getDrawingBufferHeight :: WebGLRenderingContextBase -> IO Int
-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight MDN WebGLRenderingContextBase.drawingBufferHeight documentation>
getDrawingBufferHeight :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m Int
getDrawingBufferHeight self = liftDOM ((js_getDrawingBufferHeight ((Types.toWebGLRenderingContextBase self))))
foreign import javascript safe "(($1, $2) => { $1[\"drawingBufferColorSpace\"] = $2; })"
js_setDrawingBufferColorSpace :: WebGLRenderingContextBase -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace MDN WebGLRenderingContextBase.drawingBufferColorSpace documentation>
setDrawingBufferColorSpace :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> PredefinedColorSpace -> m ()
setDrawingBufferColorSpace self val = liftDOM (void (((toJSVal val) >>= \a2' -> js_setDrawingBufferColorSpace ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript unsafe "(($1) => { return $1[\"drawingBufferColorSpace\"]; })"
js_getDrawingBufferColorSpace :: WebGLRenderingContextBase -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace MDN WebGLRenderingContextBase.drawingBufferColorSpace documentation>
getDrawingBufferColorSpace :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m PredefinedColorSpace
getDrawingBufferColorSpace self = liftDOM (((js_getDrawingBufferColorSpace ((Types.toWebGLRenderingContextBase self))) >>= fromJSValUnchecked))
foreign import javascript safe "(($1, $2) => { $1[\"unpackColorSpace\"] = $2; })"
js_setUnpackColorSpace :: WebGLRenderingContextBase -> JSVal -> IO ()
-- | <https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace MDN WebGLRenderingContextBase.unpackColorSpace documentation>
setUnpackColorSpace :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> PredefinedColorSpace -> m ()
setUnpackColorSpace self val = liftDOM (void (((toJSVal val) >>= \a2' -> js_setUnpackColorSpace ((Types.toWebGLRenderingContextBase self)) a2')))
foreign import javascript unsafe "(($1) => { return $1[\"unpackColorSpace\"]; })"
js_getUnpackColorSpace :: WebGLRenderingContextBase -> IO JSVal
-- | <https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace MDN WebGLRenderingContextBase.unpackColorSpace documentation>
getUnpackColorSpace :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m PredefinedColorSpace
getUnpackColorSpace self = liftDOM (((js_getUnpackColorSpace ((Types.toWebGLRenderingContextBase self))) >>= fromJSValUnchecked))
pattern DEPTH_BUFFER_BIT = 0x00000100
pattern STENCIL_BUFFER_BIT = 0x00000400
pattern COLOR_BUFFER_BIT = 0x00004000
pattern POINTS = 0x0000
pattern LINES = 0x0001
pattern LINE_LOOP = 0x0002
pattern LINE_STRIP = 0x0003
pattern TRIANGLES = 0x0004
pattern TRIANGLE_STRIP = 0x0005
pattern TRIANGLE_FAN = 0x0006
pattern ZERO = 0
pattern ONE = 1
pattern SRC_COLOR = 0x0300
pattern ONE_MINUS_SRC_COLOR = 0x0301
pattern SRC_ALPHA = 0x0302
pattern ONE_MINUS_SRC_ALPHA = 0x0303
pattern DST_ALPHA = 0x0304
pattern ONE_MINUS_DST_ALPHA = 0x0305
pattern DST_COLOR = 0x0306
pattern ONE_MINUS_DST_COLOR = 0x0307
pattern SRC_ALPHA_SATURATE = 0x0308
pattern FUNC_ADD = 0x8006
pattern BLEND_EQUATION = 0x8009
pattern BLEND_EQUATION_RGB = 0x8009
pattern BLEND_EQUATION_ALPHA = 0x883D
pattern FUNC_SUBTRACT = 0x800A
pattern FUNC_REVERSE_SUBTRACT = 0x800B
pattern BLEND_DST_RGB = 0x80C8
pattern BLEND_SRC_RGB = 0x80C9
pattern BLEND_DST_ALPHA = 0x80CA
pattern BLEND_SRC_ALPHA = 0x80CB
pattern CONSTANT_COLOR = 0x8001
pattern ONE_MINUS_CONSTANT_COLOR = 0x8002
pattern CONSTANT_ALPHA = 0x8003
pattern ONE_MINUS_CONSTANT_ALPHA = 0x8004
pattern BLEND_COLOR = 0x8005
pattern ARRAY_BUFFER = 0x8892
pattern ELEMENT_ARRAY_BUFFER = 0x8893
pattern ARRAY_BUFFER_BINDING = 0x8894
pattern ELEMENT_ARRAY_BUFFER_BINDING = 0x8895
pattern STREAM_DRAW = 0x88E0
pattern STATIC_DRAW = 0x88E4
pattern DYNAMIC_DRAW = 0x88E8
pattern BUFFER_SIZE = 0x8764
pattern BUFFER_USAGE = 0x8765
pattern CURRENT_VERTEX_ATTRIB = 0x8626
pattern FRONT = 0x0404
pattern BACK = 0x0405
pattern FRONT_AND_BACK = 0x0408
pattern CULL_FACE = 0x0B44
pattern BLEND = 0x0BE2
pattern DITHER = 0x0BD0
pattern STENCIL_TEST = 0x0B90
pattern DEPTH_TEST = 0x0B71
pattern SCISSOR_TEST = 0x0C11
pattern POLYGON_OFFSET_FILL = 0x8037
pattern SAMPLE_ALPHA_TO_COVERAGE = 0x809E
pattern SAMPLE_COVERAGE = 0x80A0
pattern NO_ERROR = 0
pattern INVALID_ENUM = 0x0500
pattern INVALID_VALUE = 0x0501
pattern INVALID_OPERATION = 0x0502
pattern OUT_OF_MEMORY = 0x0505
pattern CW = 0x0900
pattern CCW = 0x0901
pattern LINE_WIDTH = 0x0B21
pattern ALIASED_POINT_SIZE_RANGE = 0x846D
pattern ALIASED_LINE_WIDTH_RANGE = 0x846E
pattern CULL_FACE_MODE = 0x0B45
pattern FRONT_FACE = 0x0B46
pattern DEPTH_RANGE = 0x0B70
pattern DEPTH_WRITEMASK = 0x0B72
pattern DEPTH_CLEAR_VALUE = 0x0B73
pattern DEPTH_FUNC = 0x0B74
pattern STENCIL_CLEAR_VALUE = 0x0B91
pattern STENCIL_FUNC = 0x0B92
pattern STENCIL_FAIL = 0x0B94
pattern STENCIL_PASS_DEPTH_FAIL = 0x0B95
pattern STENCIL_PASS_DEPTH_PASS = 0x0B96
pattern STENCIL_REF = 0x0B97
pattern STENCIL_VALUE_MASK = 0x0B93
pattern STENCIL_WRITEMASK = 0x0B98
pattern STENCIL_BACK_FUNC = 0x8800
pattern STENCIL_BACK_FAIL = 0x8801
pattern STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802
pattern STENCIL_BACK_PASS_DEPTH_PASS = 0x8803
pattern STENCIL_BACK_REF = 0x8CA3
pattern STENCIL_BACK_VALUE_MASK = 0x8CA4
pattern STENCIL_BACK_WRITEMASK = 0x8CA5
pattern VIEWPORT = 0x0BA2
pattern SCISSOR_BOX = 0x0C10
pattern COLOR_CLEAR_VALUE = 0x0C22
pattern COLOR_WRITEMASK = 0x0C23
pattern UNPACK_ALIGNMENT = 0x0CF5
pattern PACK_ALIGNMENT = 0x0D05
pattern MAX_TEXTURE_SIZE = 0x0D33
pattern MAX_VIEWPORT_DIMS = 0x0D3A
pattern SUBPIXEL_BITS = 0x0D50
pattern RED_BITS = 0x0D52
pattern GREEN_BITS = 0x0D53
pattern BLUE_BITS = 0x0D54
pattern ALPHA_BITS = 0x0D55
pattern DEPTH_BITS = 0x0D56
pattern STENCIL_BITS = 0x0D57
pattern POLYGON_OFFSET_UNITS = 0x2A00
pattern POLYGON_OFFSET_FACTOR = 0x8038
pattern TEXTURE_BINDING_2D = 0x8069
pattern SAMPLE_BUFFERS = 0x80A8
pattern SAMPLES = 0x80A9
pattern SAMPLE_COVERAGE_VALUE = 0x80AA
pattern SAMPLE_COVERAGE_INVERT = 0x80AB
pattern COMPRESSED_TEXTURE_FORMATS = 0x86A3
pattern DONT_CARE = 0x1100
pattern FASTEST = 0x1101
pattern NICEST = 0x1102
pattern GENERATE_MIPMAP_HINT = 0x8192
pattern BYTE = 0x1400
pattern UNSIGNED_BYTE = 0x1401
pattern SHORT = 0x1402
pattern UNSIGNED_SHORT = 0x1403
pattern INT = 0x1404
pattern UNSIGNED_INT = 0x1405
pattern FLOAT = 0x1406
pattern DEPTH_COMPONENT = 0x1902
pattern ALPHA = 0x1906
pattern RGB = 0x1907
pattern RGBA = 0x1908
pattern LUMINANCE = 0x1909
pattern LUMINANCE_ALPHA = 0x190A
pattern UNSIGNED_SHORT_4_4_4_4 = 0x8033
pattern UNSIGNED_SHORT_5_5_5_1 = 0x8034
pattern UNSIGNED_SHORT_5_6_5 = 0x8363
pattern FRAGMENT_SHADER = 0x8B30
pattern VERTEX_SHADER = 0x8B31
pattern MAX_VERTEX_ATTRIBS = 0x8869
pattern MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB
pattern MAX_VARYING_VECTORS = 0x8DFC
pattern MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D
pattern MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C
pattern MAX_TEXTURE_IMAGE_UNITS = 0x8872
pattern MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD
pattern SHADER_TYPE = 0x8B4F
pattern DELETE_STATUS = 0x8B80
pattern LINK_STATUS = 0x8B82
pattern VALIDATE_STATUS = 0x8B83
pattern ATTACHED_SHADERS = 0x8B85
pattern ACTIVE_UNIFORMS = 0x8B86
pattern ACTIVE_ATTRIBUTES = 0x8B89
pattern SHADING_LANGUAGE_VERSION = 0x8B8C
pattern CURRENT_PROGRAM = 0x8B8D
pattern NEVER = 0x0200
pattern LESS = 0x0201
pattern EQUAL = 0x0202
pattern LEQUAL = 0x0203
pattern GREATER = 0x0204
pattern NOTEQUAL = 0x0205
pattern GEQUAL = 0x0206
pattern ALWAYS = 0x0207
pattern KEEP = 0x1E00
pattern REPLACE = 0x1E01
pattern INCR = 0x1E02
pattern DECR = 0x1E03
pattern INVERT = 0x150A
pattern INCR_WRAP = 0x8507
pattern DECR_WRAP = 0x8508
pattern VENDOR = 0x1F00
pattern RENDERER = 0x1F01
pattern VERSION = 0x1F02
pattern NEAREST = 0x2600
pattern LINEAR = 0x2601
pattern NEAREST_MIPMAP_NEAREST = 0x2700
pattern LINEAR_MIPMAP_NEAREST = 0x2701
pattern NEAREST_MIPMAP_LINEAR = 0x2702
pattern LINEAR_MIPMAP_LINEAR = 0x2703
pattern TEXTURE_MAG_FILTER = 0x2800
pattern TEXTURE_MIN_FILTER = 0x2801
pattern TEXTURE_WRAP_S = 0x2802
pattern TEXTURE_WRAP_T = 0x2803
pattern TEXTURE_2D = 0x0DE1
pattern TEXTURE = 0x1702
pattern TEXTURE_CUBE_MAP = 0x8513
pattern TEXTURE_BINDING_CUBE_MAP = 0x8514
pattern TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515
pattern TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516
pattern TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517
pattern TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518
pattern TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519
pattern TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A
pattern MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C
pattern TEXTURE0 = 0x84C0
pattern TEXTURE1 = 0x84C1
pattern TEXTURE2 = 0x84C2
pattern TEXTURE3 = 0x84C3
pattern TEXTURE4 = 0x84C4
pattern TEXTURE5 = 0x84C5
pattern TEXTURE6 = 0x84C6
pattern TEXTURE7 = 0x84C7
pattern TEXTURE8 = 0x84C8
pattern TEXTURE9 = 0x84C9
pattern TEXTURE10 = 0x84CA
pattern TEXTURE11 = 0x84CB
pattern TEXTURE12 = 0x84CC
pattern TEXTURE13 = 0x84CD
pattern TEXTURE14 = 0x84CE
pattern TEXTURE15 = 0x84CF
pattern TEXTURE16 = 0x84D0
pattern TEXTURE17 = 0x84D1
pattern TEXTURE18 = 0x84D2
pattern TEXTURE19 = 0x84D3
pattern TEXTURE20 = 0x84D4
pattern TEXTURE21 = 0x84D5
pattern TEXTURE22 = 0x84D6
pattern TEXTURE23 = 0x84D7
pattern TEXTURE24 = 0x84D8
pattern TEXTURE25 = 0x84D9
pattern TEXTURE26 = 0x84DA
pattern TEXTURE27 = 0x84DB
pattern TEXTURE28 = 0x84DC
pattern TEXTURE29 = 0x84DD
pattern TEXTURE30 = 0x84DE
pattern TEXTURE31 = 0x84DF
pattern ACTIVE_TEXTURE = 0x84E0
pattern REPEAT = 0x2901
pattern CLAMP_TO_EDGE = 0x812F
pattern MIRRORED_REPEAT = 0x8370
pattern FLOAT_VEC2 = 0x8B50
pattern FLOAT_VEC3 = 0x8B51
pattern FLOAT_VEC4 = 0x8B52
pattern INT_VEC2 = 0x8B53
pattern INT_VEC3 = 0x8B54
pattern INT_VEC4 = 0x8B55
pattern BOOL = 0x8B56
pattern BOOL_VEC2 = 0x8B57
pattern BOOL_VEC3 = 0x8B58
pattern BOOL_VEC4 = 0x8B59
pattern FLOAT_MAT2 = 0x8B5A
pattern FLOAT_MAT3 = 0x8B5B
pattern FLOAT_MAT4 = 0x8B5C
pattern SAMPLER_2D = 0x8B5E
pattern SAMPLER_CUBE = 0x8B60
pattern VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622
pattern VERTEX_ATTRIB_ARRAY_SIZE = 0x8623
pattern VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624
pattern VERTEX_ATTRIB_ARRAY_TYPE = 0x8625
pattern VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A
pattern VERTEX_ATTRIB_ARRAY_POINTER = 0x8645
pattern VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F
pattern IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A
pattern IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B
pattern COMPILE_STATUS = 0x8B81
pattern LOW_FLOAT = 0x8DF0
pattern MEDIUM_FLOAT = 0x8DF1
pattern HIGH_FLOAT = 0x8DF2
pattern LOW_INT = 0x8DF3
pattern MEDIUM_INT = 0x8DF4
pattern HIGH_INT = 0x8DF5
pattern FRAMEBUFFER = 0x8D40
pattern RENDERBUFFER = 0x8D41
pattern RGBA4 = 0x8056
pattern RGB5_A1 = 0x8057
pattern RGBA8 = 0x8058
pattern RGB565 = 0x8D62
pattern DEPTH_COMPONENT16 = 0x81A5
pattern STENCIL_INDEX8 = 0x8D48
pattern DEPTH_STENCIL = 0x84F9
pattern RENDERBUFFER_WIDTH = 0x8D42
pattern RENDERBUFFER_HEIGHT = 0x8D43
pattern RENDERBUFFER_INTERNAL_FORMAT = 0x8D44
pattern RENDERBUFFER_RED_SIZE = 0x8D50
pattern RENDERBUFFER_GREEN_SIZE = 0x8D51
pattern RENDERBUFFER_BLUE_SIZE = 0x8D52
pattern RENDERBUFFER_ALPHA_SIZE = 0x8D53
pattern RENDERBUFFER_DEPTH_SIZE = 0x8D54
pattern RENDERBUFFER_STENCIL_SIZE = 0x8D55
pattern FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0
pattern FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1
pattern FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2
pattern FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3
pattern COLOR_ATTACHMENT0 = 0x8CE0
pattern DEPTH_ATTACHMENT = 0x8D00
pattern STENCIL_ATTACHMENT = 0x8D20
pattern DEPTH_STENCIL_ATTACHMENT = 0x821A
pattern NONE = 0
pattern FRAMEBUFFER_COMPLETE = 0x8CD5
pattern FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6
pattern FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7
pattern FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9
pattern FRAMEBUFFER_UNSUPPORTED = 0x8CDD
pattern FRAMEBUFFER_BINDING = 0x8CA6
pattern RENDERBUFFER_BINDING = 0x8CA7
pattern MAX_RENDERBUFFER_SIZE = 0x84E8
pattern INVALID_FRAMEBUFFER_OPERATION = 0x0506
pattern UNPACK_FLIP_Y_WEBGL = 0x9240
pattern UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241
pattern CONTEXT_LOST_WEBGL = 0x9242
pattern UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243
pattern BROWSER_DEFAULT_WEBGL = 0x9244