func BindTexture( target Enum, texture uint32) { C.glBindTexture( C.GLenum(target), C.GLuint(texture)) }
func BindTexture(target Enum, t Texture) { defer func() { errstr := errDrain() log.Printf("gl.BindTexture(%v, %v) %v", target, t, errstr) }() C.glBindTexture(target.c(), t.c()) }
func BindTexture(target Enum, t Texture) { C.glBindTexture(target.c(), t.c()) }
// Unbind this texture func (texture Texture) Unbind(target GLenum) { C.glBindTexture(C.GLenum(target), 0) }
// Bind this texture as target func (texture Texture) Bind(target GLenum) { C.glBindTexture(C.GLenum(target), C.GLuint(texture)) }
// Unbind calls glBindTexture with a 0 argument func (Texture) Unbind(targ int) { C.glBindTexture(C.GLenum(targ), 0) }
// Bind calls glBindTexture func (t Texture) Bind(targ int) { C.glBindTexture(C.GLenum(targ), C.GLuint(t)) }
func BindTexture(target TextureTarget, texture Texture) { C.glBindTexture(C.GLenum(target), C.GLuint(texture)) }
// Bind binds a named texture to a texturing target. func (tex Texture) Bind(targ TextureTarget) { C.glBindTexture(C.GLenum(targ), C.GLuint(tex)) }