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 eff a. String -> TexFilterSpec -> (WebGLTex -> EffWebGL eff a) -> EffWebGL eff Unit

#handleLoad2D Source

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

#handleSubLoad2D Source

handleSubLoad2D :: forall a eff. 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 typ eff. 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