func DeleteBuffer(v Buffer) { defer func() { errstr := errDrain() log.Printf("gl.DeleteBuffer(%v) %v", v, errstr) }() C.glDeleteBuffers(1, (*C.GLuint)(&v.Value)) }
func DeleteBuffers( n Sizei, buffers *uint32) { C.glDeleteBuffers( C.GLsizei(n), (*C.GLuint)(buffers)) }
func DeleteBuffer(v Buffer) { C.glDeleteBuffers(1, (*C.GLuint)(&v.Value)) }
//DeleteBuffer delete the buffer using glDeleteBuffer func DeleteBuffers(buffers ...*Buffer) { for _, buf := range buffers { C.glDeleteBuffers(1, &(buf.i)) } }
func DeleteBuffers(buffers []Buffer) { C.glDeleteBuffers(C.GLsizei(len(buffers)), (*C.GLuint)(&buffers[0])) }
func (b Buffer) Delete() { C.glDeleteBuffers(C.GLsizei(1), (*C.GLuint)(&b)) }
// Delete buffer object func (buffer Buffer) Delete() { b := C.GLuint(buffer) C.glDeleteBuffers(1, &b) }
// Delete deletes the named buffer object. func (b Buffer) Delete() { C.glDeleteBuffers(1, (*C.GLuint)(&b)) }