示例#1
0
文件: gldebug.go 项目: Miaque/mojo
func ActiveTexture(texture Enum) {
	defer func() {
		errstr := errDrain()
		log.Printf("gl.ActiveTexture(%v) %v", texture, errstr)
	}()
	C.glActiveTexture(texture.c())
}
示例#2
0
func ActiveTexture(texture Enum) {
	C.glActiveTexture(texture.c())
}
示例#3
0
文件: gles2.go 项目: remogatto/egles
func ActiveTexture(
	texture Enum) {
	C.glActiveTexture(
		C.GLenum(texture))
}
示例#4
0
文件: gl.go 项目: extrame/gl
// Disable calls glActiveTexture and Unbind
func (t Texture) Disable(unit int, targ int) {
	C.glActiveTexture(TEXTURE0 + C.GLenum(unit))
	t.Unbind(targ)
}
示例#5
0
func ActiveTexture(texture TextureUnit) {
	C.glActiveTexture(C.GLenum(texture))
}
示例#6
0
文件: es2.go 项目: nick-fedesna/egles
func ActiveTexture(texture uint) {
	C.glActiveTexture(C.GLenum(texture))
}
示例#7
0
文件: texture.go 项目: eaburns/gl
// 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))
}