Module
Graphics.WebGLAll
- Package
- purescript-webgl
- Repository
- jutaro/purescript-webgl
WebGL binding for purescript
Re-exports from Control.Monad.Eff.WebGL
Re-exports from Graphics.WebGL
#WebGLContext Source
type WebGLContext = { canvasName :: String }
#Uniform Source
newtype Uniform typ
Constructors
Uniform { uLocation :: WebGLUniformLocation, uName :: String, uType :: Int }
#Buffer Source
type Buffer a = { bufferSize :: Int, bufferType :: Int, webGLBuffer :: WebGLBuffer a }
#BlendingFactor Source
data BlendingFactor
Constructors
#setUniformBoolean Source
setUniformBoolean :: forall typ eff. Uniform typ -> Boolean -> EffWebGL eff Unit
#runWebGLAttr Source
runWebGLAttr :: forall eff a. String -> ContextAttributes -> (String -> Eff eff a) -> (WebGLContext -> EffWebGL eff a) -> Eff eff a
pures either a continuation which takes a String in the error case,
#makeBufferPrimDyn Source
makeBufferPrimDyn :: forall eff a. BufferTarget -> ArrayView a -> Eff (webgl :: WebGl | eff) (Buffer a)
#makeBufferPrim Source
makeBufferPrim :: forall eff a. BufferTarget -> ArrayView a -> Eff (webgl :: WebGl | eff) (Buffer a)
#makeBufferDyn Source
makeBufferDyn :: forall num eff a. EuclideanRing num => BufferTarget -> (Array num -> ArrayView a) -> Array num -> Eff (webgl :: WebGl | eff) (Buffer a)
#makeBuffer Source
makeBuffer :: forall num eff a. EuclideanRing num => BufferTarget -> (Array num -> ArrayView a) -> Array num -> Eff (webgl :: WebGl | eff) (Buffer a)
#getCanvasWidth Source
getCanvasWidth :: forall eff. WebGLContext -> Eff (webgl :: WebGl | eff) Int
#getCanvasHeight Source
getCanvasHeight :: forall eff. WebGLContext -> Eff (webgl :: WebGl | eff) Int
#enableVertexAttribArray Source
enableVertexAttribArray :: forall a eff. Attribute a -> (Eff (webgl :: WebGl | eff) Unit)
#disableVertexAttribArray Source
disableVertexAttribArray :: forall a eff. Attribute a -> (Eff (webgl :: WebGl | eff) Unit)
#blendFuncSeparate Source
blendFuncSeparate :: forall eff. BlendingFactor -> BlendingFactor -> BlendingFactor -> BlendingFactor -> (Eff (webgl :: WebGl | eff) Unit)
#blendFunc Source
blendFunc :: forall eff. BlendingFactor -> BlendingFactor -> (Eff (webgl :: WebGl | eff) Unit)
#blendEquationSeparate Source
blendEquationSeparate :: forall eff. BlendEquation -> BlendEquation -> (Eff (webgl :: WebGl | eff) Unit)
#blendEquation Source
blendEquation :: forall eff. BlendEquation -> (Eff (webgl :: WebGl | eff) Unit)
Re-exports from Graphics.WebGLFramebuffer
#unbindRenderbuffer Source
unbindRenderbuffer :: forall eff. EffWebGL eff Unit
#unbindFramebuffer Source
unbindFramebuffer :: forall eff. EffWebGL eff Unit
#renderbufferStorage Source
renderbufferStorage :: forall eff. RenderbufferFormat -> Int -> Int -> EffWebGL eff Unit
#readPixels Source
readPixels :: forall eff. GLint -> GLint -> GLsizei -> GLsizei -> Uint8Array -> Eff (webgl :: WebGl | eff) Uint8Array
#framebufferTexture2D Source
framebufferTexture2D :: forall eff. AttachementPoint -> TargetType -> WebGLTex -> EffWebGL eff Unit
#framebufferRenderbuffer Source
framebufferRenderbuffer :: forall eff. AttachementPoint -> WebGLRendBuf -> EffWebGL eff Unit
#createRenderbuffer Source
createRenderbuffer :: forall eff. EffWebGL eff WebGLRendBuf
#createFramebuffer Source
createFramebuffer :: forall eff. EffWebGL eff WebGLBuf
#checkFramebufferStatus Source
checkFramebufferStatus :: forall eff. GLenum -> Eff (webgl :: WebGl | eff) GLenum
#bindRenderbuffer Source
bindRenderbuffer :: forall eff. WebGLRendBuf -> EffWebGL eff Unit
Re-exports from Graphics.WebGLTexture
#unbindTexture Source
unbindTexture :: forall eff. TargetType -> EffWebGL eff Unit
#texture2DFor Source
texture2DFor :: forall eff a. String -> TexFilterSpec -> (WebGLTex -> EffWebGL eff a) -> EffWebGL eff Unit
#newTextureInit Source
newTextureInit :: forall eff. Int -> Int -> TexFilterSpec -> EffWebGL eff WebGLTex
#newTexture Source
newTexture :: forall eff. Int -> Int -> TexFilterSpec -> EffWebGL eff WebGLTex
#handleSubLoad2D Source
handleSubLoad2D :: forall a eff. WebGLTex -> Int -> Int -> Int -> Int -> TexFilterSpec -> a -> EffWebGL eff Unit
#handleLoad2D Source
handleLoad2D :: forall a eff. WebGLTex -> TexFilterSpec -> a -> EffWebGL eff Unit
#bindTexture Source
bindTexture :: forall eff. TargetType -> WebGLTex -> EffWebGL eff Unit