func BindFramebuffer(target Enum, fb Framebuffer) { defer func() { errstr := errDrain() log.Printf("gl.BindFramebuffer(%v, %v) %v", target, fb, errstr) }() C.glBindFramebuffer(target.c(), fb.c()) }
func BindFramebuffer(target Enum, fb Framebuffer) { C.glBindFramebuffer(target.c(), fb.c()) }
func BindFramebuffer( target Enum, framebuffer uint32) { C.glBindFramebuffer( C.GLenum(target), C.GLuint(framebuffer)) }
func BindFramebuffer(target FramebufferTarget, framebuffer Framebuffer) { C.glBindFramebuffer(C.GLenum(target), C.GLuint(framebuffer)) }
// Unbinds the specified target. // // See issue at github for why this function exists: // http://github.com/go-gl/gl/issues/113 func (fb Framebuffer) UnbindTarget(target GLenum) { C.glBindFramebuffer(C.GLenum(target), 0) }
// Unbinds target FRAMEBUFFER. To unbind a a specific target, see UnbindTarget. func (fb Framebuffer) Unbind() { C.glBindFramebuffer(C.GLenum(FRAMEBUFFER), 0) }
// Binds fb to the specified target. // // See issue at github for why this function exists: // http://github.com/go-gl/gl/issues/113 func (fb Framebuffer) BindTarget(target GLenum) { C.glBindFramebuffer(C.GLenum(target), C.GLuint(fb)) }
// void glBindFramebuffer(GLenum target, GLuint framebuffer); // // Binds fb to target FRAMEBUFFER. To bind to a specific target, see BindTarget. func (fb Framebuffer) Bind() { C.glBindFramebuffer(C.GLenum(FRAMEBUFFER), C.GLuint(fb)) }