Skip to content

Additional bind override for BufferObject #37

Description

@reinago

If you render using vertex arrays, you might want to bind a buffer as an ARRAY_BUFFER regardless of how it was defined, so another bind that overrides the original m_target could be helpful. Probably like this, because you cannot BindBufferBase to an ARRAY_BUFFER (see current bindAs)

inline void BufferObject::bindAs(GLenum target) const {
    glBindBuffer(target, m_name);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions