vertexAttribPointer method

void vertexAttribPointer(
  1. GLuint index,
  2. GLint size,
  3. GLenum type,
  4. GLboolean normalized,
  5. GLsizei stride,
  6. GLintptr offset,
)

The WebGLRenderingContext.vertexAttribPointer() method of the WebGL API binds the buffer currently bound to gl.ARRAY_BUFFER to a generic vertex attribute of the current vertex buffer object and specifies its layout.

Implementation

external void vertexAttribPointer(
  GLuint index,
  GLint size,
  GLenum type,
  GLboolean normalized,
  GLsizei stride,
  GLintptr offset,
);