WebGLBindingStates constructor
WebGLBindingStates(
- RenderingContext gl,
- WebGLAttributes attributes
Implementation
WebGLBindingStates(
this.gl,
this.attributes,
) {
maxVertexAttributes = gl.getParameter(WebGL.MAX_VERTEX_ATTRIBS);
bindingStates = <int, dynamic>{};
defaultState = createBindingState(null);
currentState = defaultState;
}