Ejemplo n.º 1
0
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())
}
Ejemplo n.º 2
0
func BindFramebuffer(target Enum, fb Framebuffer) {
	C.glBindFramebuffer(target.c(), fb.c())
}
Ejemplo n.º 3
0
func BindFramebuffer(
	target Enum, framebuffer uint32) {
	C.glBindFramebuffer(
		C.GLenum(target),
		C.GLuint(framebuffer))
}
Ejemplo n.º 4
0
func BindFramebuffer(target FramebufferTarget, framebuffer Framebuffer) {
	C.glBindFramebuffer(C.GLenum(target), C.GLuint(framebuffer))
}
Ejemplo n.º 5
0
// 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)
}
Ejemplo n.º 6
0
// Unbinds target FRAMEBUFFER. To unbind a a specific target, see UnbindTarget.
func (fb Framebuffer) Unbind() {
	C.glBindFramebuffer(C.GLenum(FRAMEBUFFER), 0)
}
Ejemplo n.º 7
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))
}
Ejemplo n.º 8
0
// 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))
}