wikers
22-12-2005 18:15:32
Hello, here is my code:
I have a problem with the line
when I execute the program, i have the error "Runtime Error" but if i remove this line I have not this error!
Why ?
from pyogre import ogre
class App:
def __init__(self):
self.root = None
self.rendu = None
self.mng = None
self.camera = None
def Init(self):
self.root = ogre.Root(ogre.getPluginPath())
init = self.root.showConfigDialog()
if init:
self.rendu = self.root.initialise(True)
self.mng = self.root.getSceneManager(ogre.ST_GENERIC)
self.camera = self.mng.createCamera('cam')
if __name__ == '__main__':
ap = App()
ap.Init()
I have a problem with the line
self.camera = self.mng.createCamera('cam')
when I execute the program, i have the error "Runtime Error" but if i remove this line I have not this error!
Why ?