Module

WebGL.Raw.WebGL1.WebGLTexture

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

#bindTexture Source

bindTexture :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Maybe WebGLTexture -> Effect Unit

Usage: bindTexture gl target texture

void bindTexture (GLenum target, WebGLTexture? texture);

Documentation: WebGL 1.0 spec, section 5.14.8

#compressedTexImage2D Source

compressedTexImage2D :: forall c a. IsWebGLRenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLenum -> GLsizei -> GLsizei -> GLint -> a -> Effect Unit

Usage: compressedTexImage2D gl target level internalformat width height border data

void
compressedTexImage2D ( GLenum target
                     , GLint level
                     , GLenum internalformat
                     , GLsizei width
                     , GLsizei height
                     , GLint border
                     , [AllowShared] ArrayBufferView data
                     );

Documentation: WebGL 1.0 spec, section 5.14.8

#compressedTexSubImage2D Source

compressedTexSubImage2D :: forall c a. IsWebGLRenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> a -> Effect Unit

Usage: compressedTexSubImage2D gl target level xoffset yoffset width height format data

void
compressedTexSubImage2D ( GLenum target
                        , GLint level
                        , GLint xoffset
                        , GLint yoffset
                        , GLsizei width
                        , GLsizei height
                        , GLenum format
                        , [AllowShared] ArrayBufferView data
                        );

Documentation: WebGL 1.0 spec, section 5.14.8

#copyTexImage2D Source

copyTexImage2D :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLint -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLint -> Effect Unit

Usage: copyTexImage2D gl target level internalformat x y width height border

void
copyTexImage2D ( GLenum target
               , GLint level
               , GLenum internalformat
               , GLint x
               , GLint y
               , GLsizei width
               , GLsizei height
               , GLint border
               );

Documentation: WebGL 1.0 spec, section 5.14.8

#copyTexSubImage2D Source

copyTexSubImage2D :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLint -> GLint -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> Effect Unit

Usage: copyTexSubImage2D gl target level xoffset yoffset x y width height

void
copyTexSubImage2D ( GLenum target
                  , GLint level
                  , GLint xoffset
                  , GLint yoffset
                  , GLint x
                  , GLint y
                  , GLsizei width
                  , GLsizei height
                  );

Documentation: WebGL 1.0 spec, section 5.14.8

#createTexture Source

createTexture :: forall c. IsWebGLRenderingContext c => c -> Effect (Maybe WebGLTexture)

Usage: createTexture gl

WebGLTexture? createTexture();

Documentation: WebGL 1.0 spec, section 5.14.8

#deleteTexture Source

deleteTexture :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLTexture -> Effect Unit

Usage: deleteTexture gl texture

void deleteTexture (WebGLTexture? texture);

Documentation: WebGL 1.0 spec, section 5.14.8

#generateMipmap Source

generateMipmap :: forall c. IsWebGLRenderingContext c => c -> GLenum -> Effect Unit

Usage: generateMipmap gl target

void generateMipmap (GLenum target);

Documentation: WebGL 1.0 spec, section 5.14.8

#getTexParameterGLenum Source

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

Usage: getTexParameterGLenum gl target pname

Use when:

  • pname = TEXTURE_MAG_FILTER
  • pname = TEXTURE_MIN_FILTER
  • pname = TEXTURE_WRAP_S
  • pname = TEXTURE_WRAP_T
  • pname = TEXTURE_COMPARE_FUNC (WebGL2)
  • pname = TEXTURE_COMPARE_MODE (WebGL2)
  • pname = TEXTURE_WRAP_R (WebGL2)
any getTexParameter (GLenum target, GLenum pname);

Documentation: WebGL 1.0 spec, section 5.14.8

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.

#isTexture Source

isTexture :: forall c. IsWebGLRenderingContext c => c -> Maybe WebGLTexture -> Effect GLboolean

Usage: isTexture gl texture

[WebGLHandlesContextLoss] GLboolean isTexture (WebGLTexture? texture);

Documentation: WebGL 1.0 spec, section 5.14.8

#texImage2D Source

texImage2D :: forall c a. IsWebGLRenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLsizei -> GLsizei -> GLint -> GLenum -> GLenum -> Maybe a -> Effect Unit

Usage: texImage2D gl target level internalformat width height border format type pixels

void
texImage2D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLsizei width
           , GLsizei height
           , GLint border
           , GLenum format
           , GLenum type
           , [AllowShared] ArrayBufferView? pixels
           );

Documentation: WebGL 1.0 spec, section 5.14.8

#texImage2DImageSource Source

texImage2DImageSource :: forall t c. IsWebGLRenderingContext c => IsTexImageSource t => c -> GLenum -> GLint -> GLint -> GLenum -> GLenum -> t -> Effect Unit

Usage: texImage2DImageSource gl target level internalformat format type source

void
texImage2D ( GLenum target
           , GLint level
           , GLint internalformat
           , GLenum format
           , GLenum type
           , TexImageSource source
           );

Documentation: WebGL 1.0 spec, section 5.14.8

#texParameterf Source

texParameterf :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLfloat -> Effect Unit

Usage: texParameterf gl target pname param

void texParameterf (GLenum target, GLenum pname, GLfloat param);

Documentation: WebGL 1.0 spec, section 5.14.8

#texParameteri Source

texParameteri :: forall c. IsWebGLRenderingContext c => c -> GLenum -> GLenum -> GLint -> Effect Unit

Usage: texParameteri gl target pname param

void texParameteri (GLenum target, GLenum pname, GLint param);

Documentation: WebGL 1.0 spec, section 5.14.8

#texSubImage2D Source

texSubImage2D :: forall c a. IsWebGLRenderingContext c => IsArrayBufferView a => c -> GLenum -> GLint -> GLint -> GLint -> GLsizei -> GLsizei -> GLenum -> GLenum -> Maybe a -> Effect Unit

Usage: texSubImage2D gl target level xoffset yoffset width height format type pixels

void
texSubImage2D ( GLenum target
              , GLint level
              , GLint xoffset
              , GLint yoffset
              , GLsizei width
              , GLsizei height
              , GLenum format
              , GLenum type
              , [AllowShared] ArrayBufferView? pixels
              );

Documentation: WebGL 1.0 spec, section 5.14.8

#texSubImage2DImageSource Source

texSubImage2DImageSource :: forall t c. IsWebGLRenderingContext c => IsTexImageSource t => c -> GLenum -> GLint -> GLint -> GLint -> GLenum -> GLenum -> t -> Effect Unit

Usage: texSubImage2DImageSource gl target level xoffset yoffset format type source

void
texSubImage2D ( GLenum target
              , GLint level
              , GLint xoffset
              , GLint yoffset
              , GLenum format
              , GLenum type
              , TexImageSource source
              );

Documentation: WebGL 1.0 spec, section 5.14.8

Re-exports from WebGL.Raw.Types

#WebGLTexture Source

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