-----------------------------------------------------------------------------
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
module THREE.BufferAttribute
  ( -- * Types
    BufferAttribute (..)
    -- * Methods
  , THREE.BufferAttribute.new
    -- * Properties
  ) where
-----------------------------------------------------------------------------
import           Miso
-----------------------------------------------------------------------------
import qualified THREE.Internal as THREE
-----------------------------------------------------------------------------
-- | https://threejs.org/docs/#api/en/scenes/BufferAttribute
newtype BufferAttribute
  = BufferAttribute
  { BufferAttribute -> JSVal
unBufferAttribute :: JSVal
  } deriving newtype (BufferAttribute -> IO [JSVal]
(BufferAttribute -> IO [JSVal]) -> ToArgs BufferAttribute
forall args. (args -> IO [JSVal]) -> ToArgs args
$ctoArgs :: BufferAttribute -> IO [JSVal]
toArgs :: BufferAttribute -> IO [JSVal]
ToArgs, BufferAttribute -> IO Object
(BufferAttribute -> IO Object) -> ToObject BufferAttribute
forall a. (a -> IO Object) -> ToObject a
$ctoObject :: BufferAttribute -> IO Object
toObject :: BufferAttribute -> IO Object
ToObject, BufferAttribute -> IO JSVal
(BufferAttribute -> IO JSVal) -> ToJSVal BufferAttribute
forall a. (a -> IO JSVal) -> ToJSVal a
$ctoJSVal :: BufferAttribute -> IO JSVal
toJSVal :: BufferAttribute -> IO JSVal
ToJSVal)
-----------------------------------------------------------------------------
-- | https://threejs.org/docs/#api/en/cameras/BufferAttribute
new :: THREE.Three BufferAttribute
new :: Three BufferAttribute
new = (JSVal -> BufferAttribute)
-> MisoString -> [MisoString] -> Three BufferAttribute
forall args con.
ToArgs args =>
(JSVal -> con) -> MisoString -> args -> Three con
THREE.new JSVal -> BufferAttribute
BufferAttribute MisoString
"BufferAttribute" ([] :: [MisoString])
-----------------------------------------------------------------------------