Kerion
11-09-2007 02:38:27
I am writing my game engine in C++, but I am developing an entire extensibility layer using Python. Of course I will be exposing my own classes, but I would like to expose OGRE and CEGUI to the Python layer as well, so I can code as much non-speed critical logic in Python as possible. If I wanted to use Python-Ogre as my glue between my app and OGRE + CEGUI, would I need to statically compile Python-Ogre in to my app, or could I use the dynamic module provided in the SDK's? Specifically I need to be able to return OGRE and CEGUI objects from my classes, defined in my app and exposed using Boost.Python, and have Python know that the returned object be translated correctly to the Python-Ogre layer so it can be used from Python. For instance, I have a class that may return a const reference to a SceneManager object. This would be exposed through Boost.Python to return an internal reference.
Has anyone used Python-Ogre for this purposes? Do I need to statically compile Python-Ogre in to my app, or can I use the dynamic modules?
Has anyone used Python-Ogre for this purposes? Do I need to statically compile Python-Ogre in to my app, or can I use the dynamic modules?