Beispiel #1
0
func DeleteTextures(
	n Sizei, textures *uint32) {
	C.glDeleteTextures(
		C.GLsizei(n),
		(*C.GLuint)(textures))

}
Beispiel #2
0
func DeleteTexture(v Texture) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.DeleteTexture(%v) %v", v, errstr)
	}()
	C.glDeleteTextures(1, (*C.GLuint)(&v.Value))
}
Beispiel #3
0
func DeleteTexture(v Texture) {
	C.glDeleteTextures(1, (*C.GLuint)(&v.Value))
}
Beispiel #4
0
// Delete all textures in slice
func DeleteTextures(textures []Texture) {
	if len(textures) > 0 {
		C.glDeleteTextures(C.GLsizei(len(textures)), (*C.GLuint)(&textures[0]))
	}
}
Beispiel #5
0
// Delete texture object
func (texture Texture) Delete() {
	b := C.GLuint(texture)
	C.glDeleteTextures(1, &b)
}
Beispiel #6
0
func (t Texture) Delete() {
	C.glDeleteTextures(1, (*C.GLuint)(&t))
}