package webgl
webgl package object
Type Members
- type GLbitfield = Int
- type GLenum = |[|[Double, Long], Int]
- type GLint = |[|[Double, Long], Int]
- type GLintptr = |[|[Double, Long], Int]
- type GLprecision = Any
- type GLsizei = Double
- type GLuint = |[|[Double, Long], Int]
-
trait
WebGL2RenderingContext
extends Object with WebGLRenderingContext
The WebGL2RenderingContext interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
The WebGL2RenderingContext interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
WebGL 2 is an extension to WebGL 1. The WebGL2RenderingContext interface implements all members of the WebGLRenderingContext interface. Some methods of the WebGL 1 context can accept additional values when used in a WebGL 2 context. You will find this info noted on the WebGL 1 reference pages.
- Annotations
- @RawJSType() @native()
- See also
https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext
-
class
WebGLBuffer
extends Object
The WebGLBuffer interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
The WebGLBuffer interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
Description
The WebGLBuffer object does not define any methods or properties of its own and its content is not directly accessible. When working with WebGLBuffer objects, the following methods of the WebGLRenderingContext are useful:
- WebGLRenderingContext.bindBuffer()
- WebGLRenderingContext.createBuffer()
- WebGLRenderingContext.deleteBuffer()
- WebGLRenderingContext.isBuffer()
- Annotations
- @RawJSType() @native() @JSName( "WebGLBuffer" )
-
class
WebGLProgram
extends Object
The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).
The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). These are then linked into a usable program.
- Annotations
- @RawJSType() @native() @JSName( "WebGLProgram" )
-
trait
WebGLRenderingContext
extends Object with RenderingContext
The WebGLRenderingContext interface provides the OpenGL ES 2.0 rendering context for the drawing surface of an HTML <canvas> element.
The WebGLRenderingContext interface provides the OpenGL ES 2.0 rendering context for the drawing surface of an HTML <canvas> element.
- Annotations
- @RawJSType() @native()
- See also
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext
-
class
WebGLShader
extends Object
The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader.
The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders.
- Annotations
- @RawJSType() @native() @JSName( "WebGLShader" )
- See also
https://developer.mozilla.org/en-US/docs/Web/API/WebGLShader
-
trait
WebGLShaderPrecisionFormat
extends Object
The WebGLShaderPrecisionFormat interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
The WebGLShaderPrecisionFormat interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
- Annotations
- @RawJSType() @native()
-
class
WebGLTexture
extends Object
The WebGLTexture interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
The WebGLTexture interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
- Annotations
- @RawJSType() @native() @JSName( "WebGLTexture" )
- See also
https://developer.mozilla.org/en-US/docs/Web/API/WebGLTexture