Buffer.bind

Binds the buffer and sets the vertex attrib pointer.

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

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