{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
module THREE.BufferAttribute
(
BufferAttribute (..)
, THREE.BufferAttribute.new
) where
import Miso
import qualified THREE.Internal as THREE
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)
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])