Example #1
0
func ActiveTexture(texture Enum) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.ActiveTexture(%v) %v", texture, errstr)
	}()
	C.glActiveTexture(texture.c())
}
Example #2
0
func ActiveTexture(texture Enum) {
	C.glActiveTexture(texture.c())
}
Example #3
0
func ActiveTexture(
	texture Enum) {
	C.glActiveTexture(
		C.GLenum(texture))
}
Example #4
0
File: gl.go Project: extrame/gl
// Disable calls glActiveTexture and Unbind
func (t Texture) Disable(unit int, targ int) {
	C.glActiveTexture(TEXTURE0 + C.GLenum(unit))
	t.Unbind(targ)
}
Example #5
0
func ActiveTexture(texture TextureUnit) {
	C.glActiveTexture(C.GLenum(texture))
}
Example #6
0
func ActiveTexture(texture uint) {
	C.glActiveTexture(C.GLenum(texture))
}
Example #7
0
// ActiveTexture selects active texture unit.
// Unit must be between 0 and the maximum supported texture units, of which there are at least 80.
func ActiveTexture(unit int) {
	C.glActiveTexture(C.GLenum(C.GL_TEXTURE0 + unit))
}