Example #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
}
Example #2
0
func CreateRenderbuffer() Renderbuffer {
	var b Renderbuffer
	C.glGenRenderbuffers(1, (*C.GLuint)(&b.Value))
	return b
}
Example #3
0
func GenRenderbuffers(
	n Sizei, renderbuffers *uint32) {
	C.glGenRenderbuffers(
		C.GLsizei(n),
		(*C.GLuint)(renderbuffers))
}
Example #4
0
func CreateRenderbuffer() Renderbuffer {
	buffer := Renderbuffer(0)
	C.glGenRenderbuffers(C.GLsizei(1), (*C.GLuint)(&buffer))
	return buffer
}
Example #5
0
func GenRenderbuffers(buffers []Renderbuffer) {
	C.glGenRenderbuffers(C.GLsizei(len(buffers)), (*C.GLuint)(&buffers[0]))
}
Example #6
0
// void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
func GenRenderbuffer() Renderbuffer {
	var b C.GLuint
	C.glGenRenderbuffers(1, &b)
	return Renderbuffer(b)
}