Esempio n. 1
0
func GenRenderbuffer() (r0 Renderbuffer) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.GenRenderbuffer() %v%v", r0, errstr)
	}()
	var b Renderbuffer
	C.glGenRenderbuffers(1, (*C.GLuint)(&b.Value))
	return b
}
Esempio n. 2
0
func CreateRenderbuffer() Renderbuffer {
	var b Renderbuffer
	C.glGenRenderbuffers(1, (*C.GLuint)(&b.Value))
	return b
}
Esempio n. 3
0
func GenRenderbuffers(
	n Sizei, renderbuffers *uint32) {
	C.glGenRenderbuffers(
		C.GLsizei(n),
		(*C.GLuint)(renderbuffers))
}
Esempio n. 4
0
func CreateRenderbuffer() Renderbuffer {
	buffer := Renderbuffer(0)
	C.glGenRenderbuffers(C.GLsizei(1), (*C.GLuint)(&buffer))
	return buffer
}
Esempio n. 5
0
func GenRenderbuffers(buffers []Renderbuffer) {
	C.glGenRenderbuffers(C.GLsizei(len(buffers)), (*C.GLuint)(&buffers[0]))
}
Esempio n. 6
0
// void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
func GenRenderbuffer() Renderbuffer {
	var b C.GLuint
	C.glGenRenderbuffers(1, &b)
	return Renderbuffer(b)
}