{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
module THREE.Data3DTexture
(
Data3DTexture (..)
, THREE.Data3DTexture.new
, wrapR
) where
import Miso
import THREE.Constants.Textures
import THREE.EventDispatcher
import THREE.Internal as THREE
import THREE.Texture
newtype Data3DTexture
= Data3DTexture
{ Data3DTexture -> JSVal
unData3DTexture :: JSVal
} deriving newtype (Data3DTexture -> IO [JSVal]
(Data3DTexture -> IO [JSVal]) -> ToArgs Data3DTexture
forall args. (args -> IO [JSVal]) -> ToArgs args
$ctoArgs :: Data3DTexture -> IO [JSVal]
toArgs :: Data3DTexture -> IO [JSVal]
ToArgs, Data3DTexture -> IO Object
(Data3DTexture -> IO Object) -> ToObject Data3DTexture
forall a. (a -> IO Object) -> ToObject a
$ctoObject :: Data3DTexture -> IO Object
toObject :: Data3DTexture -> IO Object
ToObject, Data3DTexture -> IO JSVal
(Data3DTexture -> IO JSVal) -> ToJSVal Data3DTexture
forall a. (a -> IO JSVal) -> ToJSVal a
$ctoJSVal :: Data3DTexture -> IO JSVal
toJSVal :: Data3DTexture -> IO JSVal
ToJSVal)
deriving anyclass (ToObject Data3DTexture
ToJSVal Data3DTexture
Method Data3DTexture (MisoString, Function) ()
Method Data3DTexture Object ()
(ToObject Data3DTexture, ToJSVal Data3DTexture) =>
Method Data3DTexture (MisoString, Function) ()
-> Method Data3DTexture (MisoString, Function) ()
-> Method Data3DTexture (MisoString, Function) ()
-> Method Data3DTexture Object ()
-> EventDispatcher Data3DTexture
forall object.
(ToObject object, ToJSVal object) =>
Method object (MisoString, Function) ()
-> Method object (MisoString, Function) ()
-> Method object (MisoString, Function) ()
-> Method object Object ()
-> EventDispatcher object
$caddEventListener :: Method Data3DTexture (MisoString, Function) ()
addEventListener :: Method Data3DTexture (MisoString, Function) ()
$chasEventListener :: Method Data3DTexture (MisoString, Function) ()
hasEventListener :: Method Data3DTexture (MisoString, Function) ()
$cremoveEventListener :: Method Data3DTexture (MisoString, Function) ()
removeEventListener :: Method Data3DTexture (MisoString, Function) ()
$cdispatchEvent :: Method Data3DTexture Object ()
dispatchEvent :: Method Data3DTexture Object ()
EventDispatcher, Property Data3DTexture Bool
Property Data3DTexture Double
Property Data3DTexture Int
Property Data3DTexture [Object]
Property Data3DTexture (Maybe Function)
Property Data3DTexture MisoString
Property Data3DTexture Object
Property Data3DTexture ColorSpace
Property Data3DTexture Formats
Property Data3DTexture InternalFormats
Property Data3DTexture MappingModes
Property Data3DTexture Types
Property Data3DTexture UvChannel
Property Data3DTexture WrappingModes
Property Data3DTexture MagnificationFilters
Property Data3DTexture MinificationFilters
Property Data3DTexture Matrix3
Property Data3DTexture Source
Property Data3DTexture Vector2
ReadOnly Data3DTexture Int
ReadOnly Data3DTexture MisoString
EventDispatcher Data3DTexture
Method Data3DTexture () ()
Method Data3DTexture Object Object
FromJSVal Data3DTexture => Method Data3DTexture () Data3DTexture
EventDispatcher Data3DTexture =>
ReadOnly Data3DTexture Int
-> ReadOnly Data3DTexture MisoString
-> Property Data3DTexture MisoString
-> Property Data3DTexture Object
-> Property Data3DTexture [Object]
-> Property Data3DTexture MappingModes
-> Property Data3DTexture UvChannel
-> Property Data3DTexture WrappingModes
-> Property Data3DTexture WrappingModes
-> Property Data3DTexture MagnificationFilters
-> Property Data3DTexture MinificationFilters
-> Property Data3DTexture Double
-> Property Data3DTexture Formats
-> Property Data3DTexture InternalFormats
-> Property Data3DTexture Types
-> Property Data3DTexture Vector2
-> Property Data3DTexture Vector2
-> Property Data3DTexture Double
-> Property Data3DTexture Vector2
-> Property Data3DTexture Bool
-> Property Data3DTexture Matrix3
-> Property Data3DTexture Bool
-> Property Data3DTexture Bool
-> Property Data3DTexture Bool
-> Property Data3DTexture Int
-> Property Data3DTexture ColorSpace
-> Property Data3DTexture Int
-> Property Data3DTexture (Maybe Function)
-> Property Data3DTexture Bool
-> Property Data3DTexture Object
-> Property Data3DTexture Source
-> Method Data3DTexture () ()
-> (FromJSVal Data3DTexture =>
Method Data3DTexture () Data3DTexture)
-> Method Data3DTexture Object Object
-> Method Data3DTexture () ()
-> Method Data3DTexture Vector2 Vector2
-> TextureClass Data3DTexture
Method Data3DTexture Vector2 Vector2
forall texture.
EventDispatcher texture =>
ReadOnly texture Int
-> ReadOnly texture MisoString
-> Property texture MisoString
-> Property texture Object
-> Property texture [Object]
-> Property texture MappingModes
-> Property texture UvChannel
-> Property texture WrappingModes
-> Property texture WrappingModes
-> Property texture MagnificationFilters
-> Property texture MinificationFilters
-> Property texture Double
-> Property texture Formats
-> Property texture InternalFormats
-> Property texture Types
-> Property texture Vector2
-> Property texture Vector2
-> Property texture Double
-> Property texture Vector2
-> Property texture Bool
-> Property texture Matrix3
-> Property texture Bool
-> Property texture Bool
-> Property texture Bool
-> Property texture Int
-> Property texture ColorSpace
-> Property texture Int
-> Property texture (Maybe Function)
-> Property texture Bool
-> Property texture Object
-> Property texture Source
-> Method texture () ()
-> (FromJSVal texture => Method texture () texture)
-> Method texture Object Object
-> Method texture () ()
-> Method texture Vector2 Vector2
-> TextureClass texture
$cid :: ReadOnly Data3DTexture Int
id :: ReadOnly Data3DTexture Int
$cuuid :: ReadOnly Data3DTexture MisoString
uuid :: ReadOnly Data3DTexture MisoString
$cname :: Property Data3DTexture MisoString
name :: Property Data3DTexture MisoString
$cimage :: Property Data3DTexture Object
image :: Property Data3DTexture Object
$cmipmaps :: Property Data3DTexture [Object]
mipmaps :: Property Data3DTexture [Object]
$cmapping :: Property Data3DTexture MappingModes
mapping :: Property Data3DTexture MappingModes
$cchannel :: Property Data3DTexture UvChannel
channel :: Property Data3DTexture UvChannel
$cwrapS :: Property Data3DTexture WrappingModes
wrapS :: Property Data3DTexture WrappingModes
$cwrapT :: Property Data3DTexture WrappingModes
wrapT :: Property Data3DTexture WrappingModes
$cmagFilter :: Property Data3DTexture MagnificationFilters
magFilter :: Property Data3DTexture MagnificationFilters
$cminFilter :: Property Data3DTexture MinificationFilters
minFilter :: Property Data3DTexture MinificationFilters
$canisotropy :: Property Data3DTexture Double
anisotropy :: Property Data3DTexture Double
$cformat :: Property Data3DTexture Formats
format :: Property Data3DTexture Formats
$cinternalFormat :: Property Data3DTexture InternalFormats
internalFormat :: Property Data3DTexture InternalFormats
$ctype_ :: Property Data3DTexture Types
type_ :: Property Data3DTexture Types
$coffset :: Property Data3DTexture Vector2
offset :: Property Data3DTexture Vector2
$crepeat :: Property Data3DTexture Vector2
repeat :: Property Data3DTexture Vector2
$crotation :: Property Data3DTexture Double
rotation :: Property Data3DTexture Double
$ccenter :: Property Data3DTexture Vector2
center :: Property Data3DTexture Vector2
$cmatrixAutoUpdate :: Property Data3DTexture Bool
matrixAutoUpdate :: Property Data3DTexture Bool
$cmatrix :: Property Data3DTexture Matrix3
matrix :: Property Data3DTexture Matrix3
$cgenerateMipmaps :: Property Data3DTexture Bool
generateMipmaps :: Property Data3DTexture Bool
$cpremultiplyAlpha :: Property Data3DTexture Bool
premultiplyAlpha :: Property Data3DTexture Bool
$cflipY :: Property Data3DTexture Bool
flipY :: Property Data3DTexture Bool
$cunpackAlignment :: Property Data3DTexture Int
unpackAlignment :: Property Data3DTexture Int
$ccolorSpace :: Property Data3DTexture ColorSpace
colorSpace :: Property Data3DTexture ColorSpace
$cversion :: Property Data3DTexture Int
version :: Property Data3DTexture Int
$conUpdate :: Property Data3DTexture (Maybe Function)
onUpdate :: Property Data3DTexture (Maybe Function)
$cneedsUpdate :: Property Data3DTexture Bool
needsUpdate :: Property Data3DTexture Bool
$cuserData :: Property Data3DTexture Object
userData :: Property Data3DTexture Object
$csource :: Property Data3DTexture Source
source :: Property Data3DTexture Source
$cupdateMatrix :: Method Data3DTexture () ()
updateMatrix :: Method Data3DTexture () ()
$cclone :: FromJSVal Data3DTexture => Method Data3DTexture () Data3DTexture
clone :: FromJSVal Data3DTexture => Method Data3DTexture () Data3DTexture
$ctoJSON :: Method Data3DTexture Object Object
toJSON :: Method Data3DTexture Object Object
$cdispose :: Method Data3DTexture () ()
dispose :: Method Data3DTexture () ()
$ctransformUv :: Method Data3DTexture Vector2 Vector2
transformUv :: Method Data3DTexture Vector2 Vector2
TextureClass)
instance FromJSVal Data3DTexture where
fromJSVal :: JSVal -> IO (Maybe Data3DTexture)
fromJSVal = Maybe Data3DTexture -> IO (Maybe Data3DTexture)
forall a. a -> IO a
forall (f :: * -> *) a. Applicative f => a -> f a
pure (Maybe Data3DTexture -> IO (Maybe Data3DTexture))
-> (JSVal -> Maybe Data3DTexture)
-> JSVal
-> IO (Maybe Data3DTexture)
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Data3DTexture -> Maybe Data3DTexture
forall a. a -> Maybe a
Just (Data3DTexture -> Maybe Data3DTexture)
-> (JSVal -> Data3DTexture) -> JSVal -> Maybe Data3DTexture
forall b c a. (b -> c) -> (a -> b) -> a -> c
. JSVal -> Data3DTexture
Data3DTexture
new :: (Data3DTextureNewParams t, ToArgs t) => t -> THREE.Three Data3DTexture
new :: forall t.
(Data3DTextureNewParams t, ToArgs t) =>
t -> IO Data3DTexture
new = (JSVal -> Data3DTexture) -> MisoString -> t -> IO Data3DTexture
forall args con.
ToArgs args =>
(JSVal -> con) -> MisoString -> args -> Three con
THREE.new JSVal -> Data3DTexture
Data3DTexture MisoString
"Data3DTexture"
class Data3DTextureNewParams t
instance Data3DTextureNewParams ()
instance Data3DTextureNewParams Object
instance Data3DTextureNewParams (Object, Int)
instance Data3DTextureNewParams (Object, Int, Int)
instance Data3DTextureNewParams (Object, Int, Int, Int)
wrapR :: Property Data3DTexture WrappingModes
wrapR :: Property Data3DTexture WrappingModes
wrapR = MisoString -> Property Data3DTexture WrappingModes
forall object field.
(ToObject object, ToJSVal field, FromJSVal field) =>
MisoString -> Property object field
property MisoString
"wrapR"