Module
Graphics.WebGL
- Package
- purescript-webgl
- Repository
- jutaro/purescript-webgl
WebGL binding for purescript
#WebGLContext Source
type WebGLContext = { canvasName :: String }#runWebGLAttr Source
runWebGLAttr :: forall eff a. String -> ContextAttributes -> (String -> Eff eff a) -> (WebGLContext -> EffWebGL eff a) -> Eff eff apures either a continuation which takes a String in the error case,
#Uniform Source
newtype Uniform typConstructors
Uniform { uLocation :: WebGLUniformLocation, uName :: String, uType :: Int }
#Buffer Source
type Buffer a = { bufferSize :: Int, bufferType :: Int, webGLBuffer :: WebGLBuffer a }#makeBuffer Source
makeBuffer :: forall num eff a. EuclideanRing num => BufferTarget -> (Array num -> ArrayView a) -> Array num -> 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)#makeBufferPrim Source
makeBufferPrim :: forall eff a. BufferTarget -> ArrayView a -> Eff (webgl :: WebGl | eff) (Buffer a)#makeBufferPrimDyn Source
makeBufferPrimDyn :: forall eff a. BufferTarget -> ArrayView a -> Eff (webgl :: WebGl | eff) (Buffer a)#setUniformBoolean Source
setUniformBoolean :: forall typ eff. Uniform typ -> Boolean -> EffWebGL eff Unit#blendFunc Source
blendFunc :: forall eff. BlendingFactor -> BlendingFactor -> (Eff (webgl :: WebGl | eff) Unit)#blendFuncSeparate Source
blendFuncSeparate :: forall eff. BlendingFactor -> BlendingFactor -> BlendingFactor -> BlendingFactor -> (Eff (webgl :: WebGl | eff) Unit)#blendEquation Source
blendEquation :: forall eff. BlendEquation -> (Eff (webgl :: WebGl | eff) Unit)#blendEquationSeparate Source
blendEquationSeparate :: forall eff. BlendEquation -> BlendEquation -> (Eff (webgl :: WebGl | eff) Unit)#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)#getCanvasWidth Source
getCanvasWidth :: forall eff. WebGLContext -> Eff (webgl :: WebGl | eff) Int#getCanvasHeight Source
getCanvasHeight :: forall eff. WebGLContext -> Eff (webgl :: WebGl | eff) Int#BlendingFactor Source
data BlendingFactor