packages feed

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

{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- | Generated by dom-gen from OES_draw_buffers_indexed (webref). Do not edit.
module JSDOM.Generated.OES_draw_buffers_indexed
       (blendEquationSeparateiOES, blendEquationiOES, blendFuncSeparateiOES, blendFunciOES, colorMaskiOES, disableiOES, enableiOES, OES_draw_buffers_indexed(..), gTypeOES_draw_buffers_indexed)
       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/OES_draw_buffers_indexed/blendEquationSeparateiOES MDN OES_draw_buffers_indexed.blendEquationSeparateiOES documentation>
blendEquationSeparateiOES :: (MonadDOM m) => OES_draw_buffers_indexed -> Word -> Word -> Word -> m ()
blendEquationSeparateiOES self buf modeRGB modeAlpha = liftDOM (void (self ^. jsf "blendEquationSeparateiOES" [toJSVal buf, toJSVal modeRGB, toJSVal modeAlpha]))

-- | <https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES MDN OES_draw_buffers_indexed.blendEquationiOES documentation>
blendEquationiOES :: (MonadDOM m) => OES_draw_buffers_indexed -> Word -> Word -> m ()
blendEquationiOES self buf mode = liftDOM (void (self ^. jsf "blendEquationiOES" [toJSVal buf, toJSVal mode]))

-- | <https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES MDN OES_draw_buffers_indexed.blendFuncSeparateiOES documentation>
blendFuncSeparateiOES :: (MonadDOM m) => OES_draw_buffers_indexed -> Word -> Word -> Word -> Word -> Word -> m ()
blendFuncSeparateiOES self buf srcRGB dstRGB srcAlpha dstAlpha = liftDOM (void (self ^. jsf "blendFuncSeparateiOES" [toJSVal buf, toJSVal srcRGB, toJSVal dstRGB, toJSVal srcAlpha, toJSVal dstAlpha]))

-- | <https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES MDN OES_draw_buffers_indexed.blendFunciOES documentation>
blendFunciOES :: (MonadDOM m) => OES_draw_buffers_indexed -> Word -> Word -> Word -> m ()
blendFunciOES self buf src dst = liftDOM (void (self ^. jsf "blendFunciOES" [toJSVal buf, toJSVal src, toJSVal dst]))

-- | <https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES MDN OES_draw_buffers_indexed.colorMaskiOES documentation>
colorMaskiOES :: (MonadDOM m) => OES_draw_buffers_indexed -> Word -> Bool -> Bool -> Bool -> Bool -> m ()
colorMaskiOES self buf r g b a = liftDOM (void (self ^. jsf "colorMaskiOES" [toJSVal buf, toJSVal r, toJSVal g, toJSVal b, toJSVal a]))

-- | <https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES MDN OES_draw_buffers_indexed.disableiOES documentation>
disableiOES :: (MonadDOM m) => OES_draw_buffers_indexed -> Word -> Word -> m ()
disableiOES self target index = liftDOM (void (self ^. jsf "disableiOES" [toJSVal target, toJSVal index]))

-- | <https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES MDN OES_draw_buffers_indexed.enableiOES documentation>
enableiOES :: (MonadDOM m) => OES_draw_buffers_indexed -> Word -> Word -> m ()
enableiOES self target index = liftDOM (void (self ^. jsf "enableiOES" [toJSVal target, toJSVal index]))