bindAttribute method

void bindAttribute (
  1. int index,
  2. int size,
  3. int stride,
  4. int offset
)

Implementation

void bindAttribute(int index, int size, int stride, int offset) {
  if (index == null) return;
  _renderingContext.vertexAttribPointer(
      index, size, gl.WebGL.FLOAT, false, stride, offset);
}