Esempio n. 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))
}
Esempio n. 2
0
func DeleteBuffers(
	n Sizei, buffers *uint32) {
	C.glDeleteBuffers(
		C.GLsizei(n),
		(*C.GLuint)(buffers))

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