WebGL2RenderingContext class

Constructors

WebGL2RenderingContext({dynamic context})

Properties

ARRAY_BUFFER int
getter/setter pair
COMPILE_STATUS int
getter/setter pair
context → dynamic
final
FLOAT int
getter/setter pair
FRAGMENT_SHADER int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
STATIC_DRAW int
getter/setter pair
TRIANGLE_STRIP int
getter/setter pair
VERTEX_SHADER int
getter/setter pair

Methods

attachShader(Program program, Shader shader) → void
bindBuffer(int target, Buffer? buffer) → void
bufferData(int target, Float32List data, int usage) → void
compileShader(Shader shader) → void
createBuffer() Buffer
createProgram() Program
createShader(int type) Shader
drawArrays(int mode, int first, int count) → void
enableVertexAttribArray(int index) → void
getAttribLocation(Program program, String name) int
getShaderInfoLog(Shader shader) String?
getShaderParameter(Shader shader, int pname) bool?
getUniformLocation(Program program, String name) UniformLocation?
linkProgram(Program program) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shaderSource(Shader shader, String string) → void
toString() String
A string representation of this object.
inherited
uniform1f(UniformLocation? location, num x) → void
uniform1fv(UniformLocation? location, Float32List list) → void
uniform1i(UniformLocation? location, int x) → void
uniform1iv(UniformLocation? location, Int32List list) → void
uniform2f(UniformLocation? location, num x, num y) → void
uniform2fv(UniformLocation? location, Float32List list) → void
uniform2i(UniformLocation? location, int x, int y) → void
uniform2iv(UniformLocation? location, Int32List list) → void
uniform3f(UniformLocation? location, num x, num y, num z) → void
uniform3fv(UniformLocation? location, Float32List list) → void
uniform3i(UniformLocation? location, int x, int y, int z) → void
uniform3iv(UniformLocation? location, Int32List list) → void
uniform4f(UniformLocation? location, num x, num y, num z, num w) → void
uniform4fv(UniformLocation? location, Float32List list) → void
uniform4i(UniformLocation? location, int x, int y, int z, int w) → void
uniform4iv(UniformLocation? location, Int32List list) → void
useProgram(Program? program) → void
vertexAttribPointer(int indx, int size, int type, bool normalized, int stride, int offset) → void
viewport(int x, int y, int width, int height) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited