Beispiel #1
0
 def initialize(self):
     if not SubSystem.initialize(self):
         return False
     if self._config["python.psyco"].lower() == "enabled":
         self._activatePsyco()
     a, b, c, d = ogre.GetOgreVersion()
     print "Using Ogre %s.%s.%s %s" % (a, b, c, d)
     a, b, c = ogre.GetPythonOgreVersion()
     print "Using Python-Ogre %s.%s.%s" % (a, b, c)
     if not self._setUp():
         raise "self._setUP() failed!"
     return True
# This code is in the Public Domain
#

import ogre.renderer.OGRE as ogre

# We don't use the verisons but it's nice to set them up...
ogre.OgreVersion = ogre.GetOgreVersion()
ogre.OgreVersionString = ogre.OgreVersion[0] + ogre.OgreVersion[1] + ogre.OgreVersion[2]
ogre.PythonOgreVersion = ogre.GetPythonOgreVersion()

from ogre.renderer.OGRE.sf_OIS import *