ChronosGL class

Prepares a canvas for 3d rendering. Contains wrapper for all the WebGL2 bindings

Constructors

ChronosGL(dynamic _canvas, {bool preserveDrawingBuffer = false, bool faceCulling = false, bool antialiasing = true})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activeTexture(int target) → void
bindBuffer(int kind, GlBuffer? buffer) → void
bindBufferBase(int kind, int offset, GlBuffer? buffer) → void
bindFramebuffer(int kind, GlFramebuffer? framebuffer) → void
bindTexture(int kind, GlTexture? texture) → void
bindTransformFeedback(GlTransformFeedback transform) → void
bindVertexArray(GlVertexArrayObject vao) → void
blendEquation(int equation) → void
blendFunc(int srcFactor, int dstFactor) → void
BufferDataSetSize(int kind, GlBuffer buf, int size, int usage) → void
ChangeArrayBuffer(GlBuffer buffer, List data) → void
ChangeElementArrayBuffer(GlBuffer buf, TypedData data) → void
ChangeTransformBuffer(GlBuffer buffer, List data) → void
checkFramebufferStatus(int kind) int
clear(int kind) → void
clearColor(double r, double g, double b, double a) → void
colorMask(bool r, bool g, bool b, bool a) → void
CompileWholeProgram(String vertShaderText, String fragShaderText, List<String> transformVarying) GlProgram
copyBufferSubData(int srcBuffer, int dstBuffer, int srcOffset, int dstOffset, int size) → void
copyTexImage2D(int target, int level, int format, int x, int y, int w, int h) → void
createBuffer() GlBuffer
createFramebuffer() GlFramebuffer
createProgram() GlProgram
createSampler() GlSampler
createShader(int kind) GlShader
createTexture() GlTexture
createTransformFeedback() GlTransformFeedback
createVertexArray() GlVertexArrayObject
cullFace(int kind) → void
deleteBuffer(GlBuffer buffer) → void
depthFunc(int func) → void
depthMask(bool flag) → void
disable(int kind) → void
draw(int mode, int count, int type, int offset, int instanceCount, bool hasTransforms) → void
enable(int kind) → void
enableVertexAttribArray(int index, int divisor) → void
framebufferTexture2D(int target, int attachment, int textarget, GlTexture texture, int level) → void
generateMipmap(int kind) → void
GetArrayBuffer(GlBuffer buffer, List data) → void
getError() int
getExtension(String name) Object?
GetGlExtensionAnisotropic() Object
getParameter(int kind) → dynamic
getProgramInfoLog(GlProgram program) String
getSupportedExtensions() List
GetTransformBuffer(GlBuffer buf, TypedData data) → void
getUniformLocation(GlProgram program, String uniform) GlUniformLocation?
linkProgram(GlProgram obj) → void
MaxAnisotropicFilterLevel() int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pixelStorei(int type, int value) → void
readPixels(int x, int y, int w, int h, int implFormat, int implType, TypedData buf) → void
readPixelsToBuffer(int x, int y, int w, int h, int implFormat, int implType, int offset) → void
setLineWidth(int w) → void
stencilFunc(int func, int value, int mask) → void
stencilMask(int mask) → void
stencilOp(int fail, int zfail, int zpass) → void
texImage2D(int target, int level, int iformat, int w, int h, int border, int format, int type, dynamic data) → void
texImage2Dweb(int target, int level, int iformat, int format, int type, dynamic data) → void
texParameterf(int kind1, int kind2, double val) → void
texParameteri(int kind1, int kind2, int val) → void
texStorage2D(int target, int level, int iformat, int w, int h) → void
texSubImage2D(int target, int level, int x, int y, int w, int h, int format, int type, dynamic data) → void
toString() String
A string representation of this object.
inherited
uniform1f(GlUniformLocation location, double value) → void
uniform1fv(GlUniformLocation location, Float32List value) → void
uniform1i(GlUniformLocation location, int value) → void
uniform1iv(GlUniformLocation location, Int32List value) → void
uniform2fv(GlUniformLocation location, Float32List value) → void
uniform3fv(GlUniformLocation location, Float32List value) → void
uniform4fv(GlUniformLocation location, Float32List value) → void
uniformMatrix3fv(GlUniformLocation location, bool transpose, Float32List value) → void
uniformMatrix4fv(GlUniformLocation location, bool transpose, Float32List value) → void
useProgram(GlProgram obj) → void
vertexAttribPointer(GlBuffer buffer, int index, int size, int type, bool normalized, int stride, int offset) → void
viewport(int x, int y, int w, int h) → void

Operators

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