Beispiel #1
0
 def freeController(self):
     if self.controller and self.modeChangeCount == shader.getModeChangeCount(
     ):
         self.controller.free()
     self.controller = None
Beispiel #2
0
 def updateModeChangeCount(self):
     self.modeChangeCount = shader.getModeChangeCount()