Example #1
0
func DeleteBuffer(v Buffer) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.DeleteBuffer(%v) %v", v, errstr)
	}()
	C.glDeleteBuffers(1, (*C.GLuint)(&v.Value))
}
Example #2
0
func DeleteBuffers(
	n Sizei, buffers *uint32) {
	C.glDeleteBuffers(
		C.GLsizei(n),
		(*C.GLuint)(buffers))

}
Example #3
0
func DeleteBuffer(v Buffer) {
	C.glDeleteBuffers(1, (*C.GLuint)(&v.Value))
}
Example #4
0
File: gl.go Project: extrame/gl
//DeleteBuffer delete the buffer using glDeleteBuffer
func DeleteBuffers(buffers ...*Buffer) {
	for _, buf := range buffers {
		C.glDeleteBuffers(1, &(buf.i))
	}
}
Example #5
0
func DeleteBuffers(buffers []Buffer) {
	C.glDeleteBuffers(C.GLsizei(len(buffers)), (*C.GLuint)(&buffers[0]))
}
Example #6
0
func (b Buffer) Delete() {
	C.glDeleteBuffers(C.GLsizei(1), (*C.GLuint)(&b))
}
Example #7
0
// Delete buffer object
func (buffer Buffer) Delete() {
	b := C.GLuint(buffer)
	C.glDeleteBuffers(1, &b)
}
Example #8
0
// Delete deletes the named buffer object.
func (b Buffer) Delete() {
	C.glDeleteBuffers(1, (*C.GLuint)(&b))
}