Module

Graphics.WebGLTexture

Package
purescript-webgl
Repository
jutaro/purescript-webgl

Textures for the WebGL binding for purescript

#WebGLTex Source

newtype WebGLTex

Constructors

#TexFilterSpec Source

#texture2DFor Source

texture2DFor :: forall a eff. String -> TexFilterSpec -> (WebGLTex -> EffWebGL eff a) -> EffWebGL eff Unit

#handleLoad2D Source

handleLoad2D :: forall eff a. WebGLTex -> TexFilterSpec -> a -> EffWebGL eff Unit

#handleSubLoad2D Source

handleSubLoad2D :: forall eff a. WebGLTex -> Int -> Int -> Int -> Int -> TexFilterSpec -> a -> EffWebGL eff Unit

#newTexture Source

newTexture :: forall eff. Int -> Int -> TexFilterSpec -> EffWebGL eff WebGLTex

#newTextureInit Source

newTextureInit :: forall eff. Int -> Int -> TexFilterSpec -> EffWebGL eff WebGLTex

#withTexture2D Source

withTexture2D :: forall eff typ. WebGLTex -> Int -> Uniform typ -> Int -> EffWebGL eff Unit -> EffWebGL eff Unit

#bindTexture Source

bindTexture :: forall eff. TargetType -> WebGLTex -> EffWebGL eff Unit

#unbindTexture Source

unbindTexture :: forall eff. TargetType -> EffWebGL eff Unit

#activeTexture Source

activeTexture :: forall eff. Int -> Eff (webgl :: WebGl | eff) Unit

#createTexture Source

createTexture :: forall eff. Eff (webgl :: WebGl | eff) WebGLTex