WebGLBindingStates constructor

WebGLBindingStates(
  1. RenderingContext gl,
  2. WebGLAttributes attributes
)

Implementation

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