option lists [solved]

TimErwin

08-08-2007 18:33:53

Hi!

I just created a renderWindow manually. I wanted to pass some arguments (llike color depth and border). Is there a way to do that? Would be could to just pass a dictionary. I guess this is not the only method that uses this technique.

Regards,
Tim-Erwin

andy

09-08-2007 00:45:33

Look at Demo_RenderCreate in the demos/ogre directory as it does...:

miscParams = ogre.NameValuePairList()
miscParams["FSAA"] = "1"
miscParams["Full Screen"] = "No"
miscParams["Video Mode"]= "1024 X 768 @ 32-bit colour"
miscParams["title"]="Python-Ogre is COOL - Check the source to see how to set the title!!"
self.renderWindow = self.root.createRenderWindow( "Python-Ogre Window", 800, 600, False, miscParams)


Cheers
Andy

TimErwin

09-08-2007 09:08:00

ups :oops:

Thank you,
Tim-Erwin