Esempio n. 1
0
File: IO.py Progetto: Knio/eRacer
 def __init__(self):
   Module.__init__(self)
   cpp.IO.__init__(self, game().graphics.d3d)
   
   # work queue
   self.queue = Queue.Queue()
   
   # thread
   self.thread = threading.Thread(target=self.work)
   self.thread.setDaemon(True)
   self.thread.start()
   
   # cache
   self.defaulttex = self._LoadTexture(j(TEXPATH, "Default.png"))
   self.textures   = {}
   self.meshes     = {}
   self.args = ()
Esempio n. 2
0
 def __init__(self):
   Module.__init__(self)
   self.physics = eRacer.PhysicsLayer()
   self.physics.InitSDK()
   self.physics.InitScene()
   self.physics.FinalizeSDK()
Esempio n. 3
0
File: Sound.py Progetto: Knio/eRacer
 def __init__(self):
   Module.__init__(self)
   self.sound = cpp.Sound()
   self.sound.Init()