floatAttribSetter method

dynamic floatAttribSetter(
  1. OpenGLContextES gl,
  2. int index, [
  3. dynamic typeInfo
])

Implementation

floatAttribSetter(OpenGLContextES gl, int index, [typeInfo]) {
  return (AttributeBufferInfo b) {
    gl.bindBuffer(gl.ARRAY_BUFFER, b.buffer);
    gl.enableVertexAttribArray(index);
    gl.vertexAttribPointer(index, b.numComponents, b.type, b.normalize, b.stride, b.offset);
  };
}