WebGLState class
Constructors
- WebGLState(RenderingContext gl, WebGLExtensions extensions, WebGLCapabilities capabilities)
Properties
-
buffers
→ Map<
String, dynamic> -
no setter
- capabilities ↔ WebGLCapabilities
-
getter/setter pair
- colorBuffer ↔ ColorBuffer
-
getter/setter pair
- currentBlendDst ↔ int?
-
getter/setter pair
- currentBlendDstAlpha ↔ int?
-
getter/setter pair
- currentBlendEquation ↔ int?
-
getter/setter pair
- currentBlendEquationAlpha ↔ int?
-
getter/setter pair
- currentBlending ↔ int?
-
getter/setter pair
- currentBlendingEnabled ↔ bool
-
getter/setter pair
- currentBlendSrc ↔ int?
-
getter/setter pair
- currentBlendSrcAlpha ↔ int?
-
getter/setter pair
- currentBoundFramebuffers ↔ Map
-
getter/setter pair
-
currentBoundTextures
↔ Map<
int, BoundTexture> -
getter/setter pair
- currentCullFace ↔ int?
-
getter/setter pair
- currentDrawbuffers ↔ WeakMap
-
getter/setter pair
- currentFlipSided ↔ bool?
-
getter/setter pair
- currentLineWidth ↔ double?
-
getter/setter pair
- currentPolygonOffsetFactor ↔ double?
-
getter/setter pair
- currentPolygonOffsetUnits ↔ double?
-
getter/setter pair
- currentPremultipledAlpha ↔ bool?
-
getter/setter pair
- currentProgram ↔ dynamic
-
getter/setter pair
- currentScissor ↔ Vector4
-
getter/setter pair
- currentTextureSlot ↔ int?
-
getter/setter pair
- currentViewport ↔ Vector4
-
getter/setter pair
- defaultDrawbuffers ↔ List
-
getter/setter pair
- depthBuffer ↔ DepthBuffer
-
getter/setter pair
-
emptyTextures
→ Map<
int, dynamic> -
final
-
enabledCapabilities
↔ Map<
int, bool> -
getter/setter pair
-
equationToGL
↔ Map<
int, int> -
getter/setter pair
- extensions ↔ WebGLExtensions
-
getter/setter pair
-
factorToGL
↔ Map<
int, int> -
getter/setter pair
- gl ↔ RenderingContext
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isWebGL2 ↔ bool
-
getter/setter pair
- lineWidthAvailable ↔ bool
-
getter/setter pair
- maxTextures ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scissorParam ↔ dynamic
-
getter/setter pair
- stencilBuffer ↔ StencilBuffer
-
getter/setter pair
- viewportParam ↔ dynamic
-
getter/setter pair
- xrFramebuffer ↔ dynamic
-
getter/setter pair
Methods
-
activeTexture(
int? webglSlot) → void -
bindFramebuffer(
dynamic target, Framebuffer? framebuffer) → bool -
bindTexture(
dynamic webglType, dynamic webglTexture) → void -
bindXRFramebuffer(
Framebuffer? framebuffer) → void -
compressedTexImage2D(
int target, int level, int internalformat, int width, int height, int border, NativeArray< num> ? pixels) → void -
compressedTexSubImage2D(
int target, int level, int xoffset, int yoffset, int width, int height, int format, NativeArray< num> ? pixels) → void -
createTexture(
int type, int target, int count) → WebGLTexture -
disable(
dynamic id) → void -
drawBuffers(
dynamic renderTarget, Framebuffer? framebuffer) → void -
enable(
dynamic id) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
scissor(
Vector4 scissor) → void -
setBlending(
int blending, [int? blendEquation, int? blendSrc, int? blendDst, int? blendEquationAlpha, int? blendSrcAlpha, int? blendDstAlpha, bool? premultipliedAlpha]) → void -
setCullFace(
int cullFace) → void -
setFlipSided(
bool flipSided) → void -
setLineWidth(
dynamic width) → void -
setMaterial(
Material material, bool frontFaceCW) → void -
setPolygonOffset(
bool polygonOffset, [double? factor, double? units]) → void -
setScissorTest(
bool scissorTest) → void -
texImage2D(
int target, int level, int internalformat, int width, int height, dynamic border, int format, int type, dynamic data) → void -
texImage2DIf(
int target, int level, int internalformat, int format, int type, dynamic image) → void -
texImage2DNoSize(
int target, int level, int internalformat, int format, int type, dynamic data) → void -
texImage3D(
int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, dynamic offset) → void -
texStorage2D(
int type, int levels, int glInternalFormat, int width, int height) → void -
texStorage3D(
dynamic target, dynamic levels, dynamic internalformat, dynamic width, dynamic height, dynamic depth) → void -
texSubImage2D(
int target, int level, int x, int y, num width, num height, int glFormat, int glType, NativeArray< num> data) → void -
texSubImage2DIf(
int target, int level, int x, int y, int glFormat, int glType, ImageElement image) → void -
texSubImage2DNoSize(
int target, int level, int x, int y, int glFormat, int glType, dynamic data) → void -
texSubImage3D(
int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, NativeArray< num> ? pixels) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unbindTexture(
[WebGLTexture? texture]) → void -
useProgram(
Program? program) → bool -
viewport(
Vector4 viewport) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited