Module

WebGL.Raw.WebGL2.WebGLBuffer

Package
purescript-webgl2-raw
Repository
chrismshelton/purescript-webgl2-raw

#bufferData Source

bufferData :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> a -> GLenum -> GLuint -> Maybe GLuint -> Effect Unit

Usage: bufferData gl target srcData usage srcOffset length

void
bufferData ( GLenum target
           , [AllowShared] ArrayBufferView srcData
           , GLenum usage
           , GLuint srcOffset
           , optional GLuint length = 0
           );

Documentation: WebGL 2.0 spec, section 3.7.3

#bufferSubData Source

bufferSubData :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLintptr -> a -> GLuint -> Maybe GLuint -> Effect Unit

Usage: bufferSubData gl target dstByteOffset srcData srcOffset length

void
bufferSubData ( GLenum target
              , GLintptr dstByteOffset
              , [AllowShared] ArrayBufferView srcData
              , GLuint srcOffset
              , optional GLuint length = 0
              );

Documentation: WebGL 2.0 spec, section 3.7.3

#copyBufferSubData Source

copyBufferSubData :: forall c. IsWebGL2RenderingContext c => c -> GLenum -> GLenum -> GLintptr -> GLintptr -> GLsizeiptr -> Effect Unit

Usage: copyBufferSubData gl readTarget writeTarget readOffset writeOffset size

void
copyBufferSubData ( GLenum readTarget
                  , GLenum writeTarget
                  , GLintptr readOffset
                  , GLintptr writeOffset
                  , GLsizeiptr size
                  );

Documentation: WebGL 2.0 spec, section 3.7.3

#getBufferSubData Source

getBufferSubData :: forall c a. IsWebGL2RenderingContext c => IsArrayBufferView a => c -> GLenum -> GLintptr -> a -> Maybe GLuint -> Maybe GLuint -> Effect Unit

Usage: getBufferSubData gl target srcByteOffset dstBuffer dstOffset length

void
getBufferSubData ( GLenum target
                 , GLintptr srcByteOffset
                 , [AllowShared] ArrayBufferView dstBuffer
                 , optional GLuint dstOffset = 0
                 , optional GLuint length = 0
                 );

Documentation: WebGL 2.0 spec, section 3.7.3

Re-exports from WebGL.Raw.Types

#WebGLBuffer Source

Re-exports from WebGL.Raw.WebGL1.WebGLBuffer

#isBuffer Source

isBuffer :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLBuffer -> Effect GLboolean

Usage: isBuffer gl buffer

[WebGLHandlesContextLoss] GLboolean isBuffer (WebGLBuffer? buffer);

Documentation: WebGL 1.0 spec, section 5.14.5

#getBufferParameterGLint Source

getBufferParameterGLint :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLint)

Usage: getBufferParameterGLint gl target pname

Use when:

  • pname = BUFFER_SIZE
any getBufferParameter (GLenum target, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.5

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#getBufferParameterGLenum Source

getBufferParameterGLenum :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> Effect (Maybe GLenum)

Usage: getBufferParameterGLenum gl target pname

Use when:

  • pname = BUFFER_USAGE
any getBufferParameter (GLenum target, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.5

Warning: the javascript version of this function returns different types depending on the arguments provided. This function will throw an exception if the returned value is not of the expected type.

#deleteBuffer Source

deleteBuffer :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLBuffer -> Effect Unit

Usage: deleteBuffer gl buffer

void deleteBuffer (WebGLBuffer? buffer);

Documentation: WebGL 1.0 spec, section 5.14.5

#createBuffer Source

createBuffer :: forall c. IsWebGLRenderingContext c => c -> Effect (Maybe WebGLBuffer)

Usage: createBuffer gl

WebGLBuffer? createBuffer();

Documentation: WebGL 1.0 spec, section 5.14.5

#bufferDataSetSize Source

bufferDataSetSize :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLsizeiptr -> GLenum -> Effect Unit

Usage: bufferDataSetSize gl target size usage

void bufferData (GLenum target, GLsizeiptr size, GLenum usage);

Documentation: WebGL 1.0 spec, section 5.14.5

#bindBuffer Source

bindBuffer :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Maybe WebGLBuffer -> Effect Unit

Usage: bindBuffer gl target buffer

void bindBuffer (GLenum target, WebGLBuffer? buffer);

Documentation: WebGL 1.0 spec, section 5.14.5

Modules
WebGL.Raw.Extensions.ANGLE.InstancedArrays
WebGL.Raw.Extensions.EXT.BlendMinmax
WebGL.Raw.Extensions.EXT.ColorBufferFloat
WebGL.Raw.Extensions.EXT.ColorBufferHalfFloat
WebGL.Raw.Extensions.EXT.DisjointTimerQuery
WebGL.Raw.Extensions.EXT.DisjointTimerQueryWebgl2
WebGL.Raw.Extensions.EXT.FragDepth
WebGL.Raw.Extensions.EXT.SRGB
WebGL.Raw.Extensions.EXT.ShaderTextureLod
WebGL.Raw.Extensions.EXT.TextureFilterAnisotropic
WebGL.Raw.Extensions.OES.ElementIndexUint
WebGL.Raw.Extensions.OES.StandardDerivatives
WebGL.Raw.Extensions.OES.TextureFloat
WebGL.Raw.Extensions.OES.TextureFloatLinear
WebGL.Raw.Extensions.OES.TextureHalfFloat
WebGL.Raw.Extensions.OES.TextureHalfFloatLinear
WebGL.Raw.Extensions.OES.VertexArrayObject
WebGL.Raw.Extensions.WEBGL.ColorBufferFloat
WebGL.Raw.Extensions.WEBGL.CompressedTextureAstc
WebGL.Raw.Extensions.WEBGL.CompressedTextureEtc
WebGL.Raw.Extensions.WEBGL.CompressedTextureEtc1
WebGL.Raw.Extensions.WEBGL.CompressedTexturePvrtc
WebGL.Raw.Extensions.WEBGL.CompressedTextureS3tc
WebGL.Raw.Extensions.WEBGL.CompressedTextureS3tcSrgb
WebGL.Raw.Extensions.WEBGL.DebugRendererInfo
WebGL.Raw.Extensions.WEBGL.DebugShaders
WebGL.Raw.Extensions.WEBGL.DepthTexture
WebGL.Raw.Extensions.WEBGL.DrawBuffers
WebGL.Raw.Extensions.WEBGL.LoseContext
WebGL.Raw.Types
WebGL.Raw.WebGL1
WebGL.Raw.WebGL1.Enums
WebGL.Raw.WebGL1.Uniforms
WebGL.Raw.WebGL1.VertexAttributes
WebGL.Raw.WebGL1.WebGLActiveInfo
WebGL.Raw.WebGL1.WebGLBuffer
WebGL.Raw.WebGL1.WebGLContextEvent
WebGL.Raw.WebGL1.WebGLFramebuffer
WebGL.Raw.WebGL1.WebGLProgram
WebGL.Raw.WebGL1.WebGLRenderbuffer
WebGL.Raw.WebGL1.WebGLRenderingContext
WebGL.Raw.WebGL1.WebGLShader
WebGL.Raw.WebGL1.WebGLShaderPrecisionFormat
WebGL.Raw.WebGL1.WebGLTexture
WebGL.Raw.WebGL2
WebGL.Raw.WebGL2.Enums
WebGL.Raw.WebGL2.UniformBufferObjects
WebGL.Raw.WebGL2.Uniforms
WebGL.Raw.WebGL2.VertexAttributes
WebGL.Raw.WebGL2.WebGL2RenderingContext
WebGL.Raw.WebGL2.WebGLActiveInfo
WebGL.Raw.WebGL2.WebGLBuffer
WebGL.Raw.WebGL2.WebGLContextEvent
WebGL.Raw.WebGL2.WebGLFramebuffer
WebGL.Raw.WebGL2.WebGLProgram
WebGL.Raw.WebGL2.WebGLQuery
WebGL.Raw.WebGL2.WebGLRenderbuffer
WebGL.Raw.WebGL2.WebGLSampler
WebGL.Raw.WebGL2.WebGLShader
WebGL.Raw.WebGL2.WebGLShaderPrecisionFormat
WebGL.Raw.WebGL2.WebGLSync
WebGL.Raw.WebGL2.WebGLTexture
WebGL.Raw.WebGL2.WebGLTransformFeedback
WebGL.Raw.WebGL2.WebGLVertexArrayObject