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 }
func CreateFramebuffer() Framebuffer { var b Framebuffer C.glGenFramebuffers(1, (*C.GLuint)(&b.Value)) return b }
func GenFramebuffers( n Sizei, framebuffers *uint32) { C.glGenFramebuffers( C.GLsizei(n), (*C.GLuint)(framebuffers)) }
func CreateFramebuffer() Framebuffer { buffer := Framebuffer(0) C.glGenFramebuffers(C.GLsizei(1), (*C.GLuint)(&buffer)) return buffer }
func GenFramebuffers(buffers []Framebuffer) { C.glGenFramebuffers(C.GLsizei(len(buffers)), (*C.GLuint)(&buffers[0])) }
// void glGenFramebuffers(GLsizei n, GLuint* ids); func GenFramebuffer() Framebuffer { var b C.GLuint C.glGenFramebuffers(1, &b) return Framebuffer(b) }