예제 #1
0
 def usetTex(self, var, unit, target, tx):
     """
     var : name of variable to write
     unit : texture unit
     target : target for glBindTexture
     tx : texture ID
     """
     gl.glUniform1iARB(self.uniformLoc(var), unit)
     gl.glActiveTexture(gl.GL_TEXTURE0 + unit)
     gl.glBindTexture(target, tx)
예제 #2
0
파일: shader.py 프로젝트: los-cocos/cocos
 def usetTex(self, var, unit, target, tx):
     """
     var : name of variable to write
     unit : texture unit
     target : target for glBindTexture
     tx : texture ID
     """
     gl.glUniform1iARB(self.uniformLoc(var), unit)
     gl.glActiveTexture(gl.GL_TEXTURE0 + unit)
     gl.glBindTexture(target, tx)
예제 #3
0
 def uset1I(self, var, x):
     gl.glUniform1iARB(self.uniformLoc(var), x)
예제 #4
0
파일: shader.py 프로젝트: los-cocos/cocos
 def uset1I(self, var, x):
     gl.glUniform1iARB(self.uniformLoc(var), x)