packages feed

jsaddle-dom-0.10.0.0: src/JSDOM/Generated/WebGLRenderingContextBase.hs

{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from webgl1 (webref). Do not edit.
module JSDOM.Generated.WebGLRenderingContextBase
       (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 Control.Lens.Operators ((^.))
import Language.Javascript.JSaddle (JSM, JSVal, JSString, toJSVal, valToBool, valToNumber, js, jss, jsf, jsg, new, function, asyncFunction, jsUndefined, jsNull)
import JSDOM.Types
import qualified JSDOM.Types as Types
import JSDOM.EventTargetClosures (EventName, unsafeEventName, unsafeEventNameAsync)
import JSDOM.Generated.Enums

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "activeTexture" [toJSVal texture]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "attachShader" [toJSVal program, toJSVal shader]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "bindAttribLocation" [toJSVal program, toJSVal index, toJSVal name]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "bindBuffer" [toJSVal target, toJSVal buffer]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "bindFramebuffer" [toJSVal target, toJSVal framebuffer]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "bindRenderbuffer" [toJSVal target, toJSVal renderbuffer]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "bindTexture" [toJSVal target, toJSVal texture]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "blendColor" [toJSVal red, toJSVal green, toJSVal blue, toJSVal alpha]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "blendEquation" [toJSVal mode]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "blendEquationSeparate" [toJSVal modeRGB, toJSVal modeAlpha]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "blendFunc" [toJSVal sfactor, toJSVal dfactor]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "blendFuncSeparate" [toJSVal srcRGB, toJSVal dstRGB, toJSVal srcAlpha, toJSVal dstAlpha]))

-- | <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 ((P.round <$> (((Types.toWebGLRenderingContextBase self) ^. jsf "checkFramebufferStatus" [toJSVal target]) >>= valToNumber)))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "checkFramebufferStatus" [toJSVal target]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "clear" [toJSVal mask]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "clearColor" [toJSVal red, toJSVal green, toJSVal blue, toJSVal alpha]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "clearDepth" [toJSVal depth]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "clearStencil" [toJSVal s]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "colorMask" [toJSVal red, toJSVal green, toJSVal blue, toJSVal alpha]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "compileShader" [toJSVal shader]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "copyTexImage2D" [toJSVal target, toJSVal level, toJSVal internalformat, toJSVal x, toJSVal y, toJSVal width, toJSVal height, toJSVal border]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "copyTexSubImage2D" [toJSVal target, toJSVal level, toJSVal xoffset, toJSVal yoffset, toJSVal x, toJSVal y, toJSVal width, toJSVal height]))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer MDN WebGLRenderingContextBase.createBuffer documentation>
createBuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLBuffer
createBuffer self = liftDOM ((((Types.toWebGLRenderingContextBase self) ^. jsf "createBuffer" ()) >>= fromJSValUnchecked))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer MDN WebGLRenderingContextBase.createBuffer documentation>
createBuffer_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
createBuffer_ self = liftDOM (void ((Types.toWebGLRenderingContextBase self) ^. jsf "createBuffer" ()))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer MDN WebGLRenderingContextBase.createFramebuffer documentation>
createFramebuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLFramebuffer
createFramebuffer self = liftDOM ((((Types.toWebGLRenderingContextBase self) ^. jsf "createFramebuffer" ()) >>= fromJSValUnchecked))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer MDN WebGLRenderingContextBase.createFramebuffer documentation>
createFramebuffer_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
createFramebuffer_ self = liftDOM (void ((Types.toWebGLRenderingContextBase self) ^. jsf "createFramebuffer" ()))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram MDN WebGLRenderingContextBase.createProgram documentation>
createProgram :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLProgram
createProgram self = liftDOM ((((Types.toWebGLRenderingContextBase self) ^. jsf "createProgram" ()) >>= fromJSValUnchecked))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram MDN WebGLRenderingContextBase.createProgram documentation>
createProgram_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
createProgram_ self = liftDOM (void ((Types.toWebGLRenderingContextBase self) ^. jsf "createProgram" ()))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer MDN WebGLRenderingContextBase.createRenderbuffer documentation>
createRenderbuffer :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLRenderbuffer
createRenderbuffer self = liftDOM ((((Types.toWebGLRenderingContextBase self) ^. jsf "createRenderbuffer" ()) >>= fromJSValUnchecked))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer MDN WebGLRenderingContextBase.createRenderbuffer documentation>
createRenderbuffer_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
createRenderbuffer_ self = liftDOM (void ((Types.toWebGLRenderingContextBase self) ^. jsf "createRenderbuffer" ()))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "createShader" [toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "createShader" [toJSVal 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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "createShader" [toJSVal 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "createShader" [toJSVal type']) >>= fromJSValUnchecked))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture MDN WebGLRenderingContextBase.createTexture documentation>
createTexture :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m WebGLTexture
createTexture self = liftDOM ((((Types.toWebGLRenderingContextBase self) ^. jsf "createTexture" ()) >>= fromJSValUnchecked))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture MDN WebGLRenderingContextBase.createTexture documentation>
createTexture_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
createTexture_ self = liftDOM (void ((Types.toWebGLRenderingContextBase self) ^. jsf "createTexture" ()))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "cullFace" [toJSVal mode]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "deleteBuffer" [toJSVal buffer]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "deleteFramebuffer" [toJSVal framebuffer]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "deleteProgram" [toJSVal program]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "deleteRenderbuffer" [toJSVal renderbuffer]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "deleteShader" [toJSVal shader]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "deleteTexture" [toJSVal texture]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "depthFunc" [toJSVal func]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "depthMask" [toJSVal flag]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "depthRange" [toJSVal zNear, toJSVal zFar]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "detachShader" [toJSVal program, toJSVal shader]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "disable" [toJSVal cap]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "disableVertexAttribArray" [toJSVal index]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "drawArrays" [toJSVal mode, toJSVal first, toJSVal count]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "drawElements" [toJSVal mode, toJSVal count, toJSVal type', toJSVal offset]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "enable" [toJSVal cap]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "enableVertexAttribArray" [toJSVal index]))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish MDN WebGLRenderingContextBase.finish documentation>
finish :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
finish self = liftDOM (void ((Types.toWebGLRenderingContextBase self) ^. jsf "finish" ()))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush MDN WebGLRenderingContextBase.flush documentation>
flush :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
flush self = liftDOM (void ((Types.toWebGLRenderingContextBase self) ^. jsf "flush" ()))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "framebufferRenderbuffer" [toJSVal target, toJSVal attachment, toJSVal renderbuffertarget, toJSVal renderbuffer]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "framebufferTexture2D" [toJSVal target, toJSVal attachment, toJSVal textarget, toJSVal texture, toJSVal level]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "frontFace" [toJSVal mode]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "generateMipmap" [toJSVal target]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getActiveAttrib" [toJSVal program, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getActiveAttrib" [toJSVal program, toJSVal 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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getActiveAttrib" [toJSVal program, toJSVal 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getActiveAttrib" [toJSVal program, toJSVal index]) >>= fromJSValUnchecked))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getActiveUniform" [toJSVal program, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getActiveUniform" [toJSVal program, toJSVal 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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getActiveUniform" [toJSVal program, toJSVal 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getActiveUniform" [toJSVal program, toJSVal index]) >>= fromJSValUnchecked))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getAttachedShaders" [toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getAttachedShaders" [toJSVal 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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getAttachedShaders" [toJSVal 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getAttachedShaders" [toJSVal program]) >>= fromJSValUnchecked))

-- | <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 ((P.round <$> (((Types.toWebGLRenderingContextBase self) ^. jsf "getAttribLocation" [toJSVal program, toJSVal name]) >>= valToNumber)))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getAttribLocation" [toJSVal program, toJSVal name]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getBufferParameter" [toJSVal target, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getBufferParameter" [toJSVal target, toJSVal pname]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getContextAttributes" ()) >>= 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getContextAttributes" ()))

-- | <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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getContextAttributes" ()) >>= 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getContextAttributes" ()) >>= fromJSValUnchecked))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError MDN WebGLRenderingContextBase.getError documentation>
getError :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m Word
getError self = liftDOM ((P.round <$> (((Types.toWebGLRenderingContextBase self) ^. jsf "getError" ()) >>= valToNumber)))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError MDN WebGLRenderingContextBase.getError documentation>
getError_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
getError_ self = liftDOM (void ((Types.toWebGLRenderingContextBase self) ^. jsf "getError" ()))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getExtension" [toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getExtension" [toJSVal 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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getExtension" [toJSVal 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getExtension" [toJSVal name]) >>= fromJSValUnchecked))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getFramebufferAttachmentParameter" [toJSVal target, toJSVal attachment, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getFramebufferAttachmentParameter" [toJSVal target, toJSVal attachment, toJSVal pname]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getParameter" [toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getParameter" [toJSVal pname]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getProgramInfoLog" [toJSVal program]) >>= fromMaybeJSString))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getProgramInfoLog" [toJSVal 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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getProgramInfoLog" [toJSVal program]) >>= fromMaybeJSString) >>= 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getProgramInfoLog" [toJSVal program]) >>= fromJSValUnchecked))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getProgramParameter" [toJSVal program, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getProgramParameter" [toJSVal program, toJSVal pname]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getRenderbufferParameter" [toJSVal target, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getRenderbufferParameter" [toJSVal target, toJSVal pname]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderInfoLog" [toJSVal shader]) >>= fromMaybeJSString))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderInfoLog" [toJSVal 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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderInfoLog" [toJSVal shader]) >>= fromMaybeJSString) >>= 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderInfoLog" [toJSVal shader]) >>= fromJSValUnchecked))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderParameter" [toJSVal shader, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderParameter" [toJSVal shader, toJSVal pname]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderPrecisionFormat" [toJSVal shadertype, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderPrecisionFormat" [toJSVal shadertype, toJSVal 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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderPrecisionFormat" [toJSVal shadertype, toJSVal 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderPrecisionFormat" [toJSVal shadertype, toJSVal precisiontype]) >>= fromJSValUnchecked))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderSource" [toJSVal shader]) >>= fromMaybeJSString))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderSource" [toJSVal 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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderSource" [toJSVal shader]) >>= fromMaybeJSString) >>= 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getShaderSource" [toJSVal shader]) >>= fromJSValUnchecked))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getSupportedExtensions" ()) >>= 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getSupportedExtensions" ()))

-- | <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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getSupportedExtensions" ()) >>= 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getSupportedExtensions" ()) >>= fromJSValUnchecked))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getTexParameter" [toJSVal target, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getTexParameter" [toJSVal target, toJSVal pname]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getUniform" [toJSVal program, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getUniform" [toJSVal program, toJSVal location]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getUniformLocation" [toJSVal program, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getUniformLocation" [toJSVal program, toJSVal 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 (((((Types.toWebGLRenderingContextBase self) ^. jsf "getUniformLocation" [toJSVal program, toJSVal 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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getUniformLocation" [toJSVal program, toJSVal name]) >>= fromJSValUnchecked))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getVertexAttrib" [toJSVal index, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getVertexAttrib" [toJSVal index, toJSVal pname]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "getVertexAttribOffset" [toJSVal index, toJSVal 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 ((Types.toWebGLRenderingContextBase self) ^. jsf "getVertexAttribOffset" [toJSVal index, toJSVal pname]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "hint" [toJSVal target, toJSVal mode]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "isBuffer" [toJSVal buffer]) >>= valToBool))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "isBuffer" [toJSVal buffer]))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost MDN WebGLRenderingContextBase.isContextLost documentation>
isContextLost :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m Bool
isContextLost self = liftDOM ((((Types.toWebGLRenderingContextBase self) ^. jsf "isContextLost" ()) >>= valToBool))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost MDN WebGLRenderingContextBase.isContextLost documentation>
isContextLost_ :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m ()
isContextLost_ self = liftDOM (void ((Types.toWebGLRenderingContextBase self) ^. jsf "isContextLost" ()))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "isEnabled" [toJSVal cap]) >>= valToBool))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "isEnabled" [toJSVal cap]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "isFramebuffer" [toJSVal framebuffer]) >>= valToBool))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "isFramebuffer" [toJSVal framebuffer]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "isProgram" [toJSVal program]) >>= valToBool))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "isProgram" [toJSVal program]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "isRenderbuffer" [toJSVal renderbuffer]) >>= valToBool))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "isRenderbuffer" [toJSVal renderbuffer]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "isShader" [toJSVal shader]) >>= valToBool))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "isShader" [toJSVal shader]))

-- | <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 ((((Types.toWebGLRenderingContextBase self) ^. jsf "isTexture" [toJSVal texture]) >>= valToBool))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "isTexture" [toJSVal texture]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "lineWidth" [toJSVal width]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "linkProgram" [toJSVal program]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "pixelStorei" [toJSVal pname, toJSVal param]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "polygonOffset" [toJSVal factor, toJSVal units]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "renderbufferStorage" [toJSVal target, toJSVal internalformat, toJSVal width, toJSVal height]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "sampleCoverage" [toJSVal value, toJSVal invert]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "scissor" [toJSVal x, toJSVal y, toJSVal width, toJSVal height]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "shaderSource" [toJSVal shader, toJSVal source]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "stencilFunc" [toJSVal func, toJSVal ref, toJSVal mask]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "stencilFuncSeparate" [toJSVal face, toJSVal func, toJSVal ref, toJSVal mask]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "stencilMask" [toJSVal mask]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "stencilMaskSeparate" [toJSVal face, toJSVal mask]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "stencilOp" [toJSVal fail, toJSVal zfail, toJSVal zpass]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "stencilOpSeparate" [toJSVal face, toJSVal fail, toJSVal zfail, toJSVal zpass]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "texParameterf" [toJSVal target, toJSVal pname, toJSVal param]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "texParameteri" [toJSVal target, toJSVal pname, toJSVal param]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "uniform1f" [toJSVal location, toJSVal x]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "uniform1i" [toJSVal location, toJSVal x]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "uniform2f" [toJSVal location, toJSVal x, toJSVal y]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "uniform2i" [toJSVal location, toJSVal x, toJSVal y]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "uniform3f" [toJSVal location, toJSVal x, toJSVal y, toJSVal z]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "uniform3i" [toJSVal location, toJSVal x, toJSVal y, toJSVal z]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "uniform4f" [toJSVal location, toJSVal x, toJSVal y, toJSVal z, toJSVal w]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "uniform4i" [toJSVal location, toJSVal x, toJSVal y, toJSVal z, toJSVal w]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "useProgram" [toJSVal program]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "validateProgram" [toJSVal program]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "vertexAttrib1f" [toJSVal index, toJSVal x]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "vertexAttrib1fv" [toJSVal index, toJSVal values]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "vertexAttrib2f" [toJSVal index, toJSVal x, toJSVal y]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "vertexAttrib2fv" [toJSVal index, toJSVal values]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "vertexAttrib3f" [toJSVal index, toJSVal x, toJSVal y, toJSVal z]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "vertexAttrib3fv" [toJSVal index, toJSVal values]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "vertexAttrib4f" [toJSVal index, toJSVal x, toJSVal y, toJSVal z, toJSVal w]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "vertexAttrib4fv" [toJSVal index, toJSVal values]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "vertexAttribPointer" [toJSVal index, toJSVal size, toJSVal type', toJSVal normalized, toJSVal stride, toJSVal offset]))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jsf "viewport" [toJSVal x, toJSVal y, toJSVal width, toJSVal height]))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas MDN WebGLRenderingContextBase.canvas documentation>
getCanvas :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m HTMLCanvasElementOrOffscreenCanvas
getCanvas self = liftDOM ((((Types.toWebGLRenderingContextBase self) ^. js "canvas") >>= fromJSValUnchecked))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth MDN WebGLRenderingContextBase.drawingBufferWidth documentation>
getDrawingBufferWidth :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m Int
getDrawingBufferWidth self = liftDOM ((P.round <$> (((Types.toWebGLRenderingContextBase self) ^. js "drawingBufferWidth") >>= valToNumber)))

-- | <https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight MDN WebGLRenderingContextBase.drawingBufferHeight documentation>
getDrawingBufferHeight :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m Int
getDrawingBufferHeight self = liftDOM ((P.round <$> (((Types.toWebGLRenderingContextBase self) ^. js "drawingBufferHeight") >>= valToNumber)))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jss "drawingBufferColorSpace" (toJSVal val)))

-- | <https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawingBufferColorSpace MDN WebGLRenderingContextBase.drawingBufferColorSpace documentation>
getDrawingBufferColorSpace :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m PredefinedColorSpace
getDrawingBufferColorSpace self = liftDOM ((((Types.toWebGLRenderingContextBase self) ^. js "drawingBufferColorSpace") >>= fromJSValUnchecked))

-- | <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 ((Types.toWebGLRenderingContextBase self) ^. jss "unpackColorSpace" (toJSVal val)))

-- | <https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/unpackColorSpace MDN WebGLRenderingContextBase.unpackColorSpace documentation>
getUnpackColorSpace :: (MonadDOM m, IsWebGLRenderingContextBase self) => self -> m PredefinedColorSpace
getUnpackColorSpace self = liftDOM ((((Types.toWebGLRenderingContextBase self) ^. js "unpackColorSpace") >>= 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