Example #1
0
func BindTexture(
	target Enum, texture uint32) {
	C.glBindTexture(
		C.GLenum(target),
		C.GLuint(texture))

}
Example #2
0
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())
}
Example #3
0
func BindTexture(target Enum, t Texture) {
	C.glBindTexture(target.c(), t.c())
}
Example #4
0
File: texture.go Project: Nvveen/gl
// Unbind this texture
func (texture Texture) Unbind(target GLenum) {
	C.glBindTexture(C.GLenum(target), 0)
}
Example #5
0
File: texture.go Project: Nvveen/gl
// Bind this texture as target
func (texture Texture) Bind(target GLenum) {
	C.glBindTexture(C.GLenum(target), C.GLuint(texture))
}
Example #6
0
File: gl.go Project: extrame/gl
// Unbind calls glBindTexture with a 0 argument
func (Texture) Unbind(targ int) {
	C.glBindTexture(C.GLenum(targ), 0)
}
Example #7
0
File: gl.go Project: extrame/gl
// Bind calls glBindTexture
func (t Texture) Bind(targ int) {
	C.glBindTexture(C.GLenum(targ), C.GLuint(t))
}
Example #8
0
func BindTexture(target TextureTarget, texture Texture) {
	C.glBindTexture(C.GLenum(target), C.GLuint(texture))
}
Example #9
0
// Bind binds a named texture to a texturing target.
func (tex Texture) Bind(targ TextureTarget) {
	C.glBindTexture(C.GLenum(targ), C.GLuint(tex))
}