示例#1
0
 def stop(self):
     global activeShader
     glew.glUseProgramObjectARB(0)
     activeShader = None
示例#2
0
 def use(self):
     global activeShader
     activeShader = self
     glew.glUseProgramObjectARB(self.programObject)
     self.setVars()
示例#3
0
def DisableShaders():
    global activeShader
    glew.glUseProgramObjectARB(0)
    activeShader = None
示例#4
0
文件: Shader.py 项目: fathat/game-src
 def stop(self):
     global activeShader
     glew.glUseProgramObjectARB(0)
     activeShader = None
示例#5
0
文件: Shader.py 项目: fathat/game-src
 def use(self):
     global activeShader
     activeShader = self
     glew.glUseProgramObjectARB(self.programObject)
     self.setVars()
示例#6
0
文件: Shader.py 项目: fathat/game-src
def DisableShaders():
    global activeShader
    glew.glUseProgramObjectARB(0)
    activeShader = None