VAO.set_attrib_pointer

Binds the VAO and sets the vertex attrib pointer.

  1. void set_attrib_pointer(GLuint attrib_location, GLenum type, GLint size, GLsizei offset, GLsizei stride, GLboolean normalized)
  2. void set_attrib_pointer(Shader shader, string location, GLenum type, GLint size, GLsizei offset, GLsizei stride, GLboolean normalized)
    class VAO
    void
    set_attrib_pointer
    (,
    string location
    ,
    GLenum type
    ,
    GLint size
    ,
    GLsizei offset
    ,
    GLsizei stride
    ,
    GLboolean normalized = GL_FALSE
    )

Parameters

type GLenum

Specifies the data type of each component in the array.

size GLint

Specifies the number of components per generic vertex attribute.

offset GLsizei

Specifies a offset of the first component of the first generic vertex attribute in the array in the data store of the buffer.

stride GLsizei

Specifies the byte offset between consecutive generic vertex attributes.

normalized GLboolean

Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE = default) when they are accessed.

Meta