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

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