Example #1
0
func GenFramebuffer() (r0 Framebuffer) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.GenFramebuffer() %v%v", r0, errstr)
	}()
	var b Framebuffer
	C.glGenFramebuffers(1, (*C.GLuint)(&b.Value))
	return b
}
Example #2
0
func CreateFramebuffer() Framebuffer {
	var b Framebuffer
	C.glGenFramebuffers(1, (*C.GLuint)(&b.Value))
	return b
}
Example #3
0
func GenFramebuffers(
	n Sizei, framebuffers *uint32) {
	C.glGenFramebuffers(
		C.GLsizei(n),
		(*C.GLuint)(framebuffers))
}
Example #4
0
func CreateFramebuffer() Framebuffer {
	buffer := Framebuffer(0)
	C.glGenFramebuffers(C.GLsizei(1), (*C.GLuint)(&buffer))
	return buffer
}
Example #5
0
func GenFramebuffers(buffers []Framebuffer) {
	C.glGenFramebuffers(C.GLsizei(len(buffers)), (*C.GLuint)(&buffers[0]))
}
Example #6
0
// void glGenFramebuffers(GLsizei n, GLuint* ids);
func GenFramebuffer() Framebuffer {
	var b C.GLuint
	C.glGenFramebuffers(1, &b)
	return Framebuffer(b)
}