SVN Update - Note things are broken, use Rev #184

4 views
Skip to first unread message

Andy Miller

unread,
Feb 15, 2007, 8:27:45 PM2/15/07
to python-ogre...@googlegroups.com
Team
 
I'm in the middle of a series of code generator updates, with the intention that it becomes even more (Ogre) version independant and is simpler to maintain...
 
However I'm also sending through Py++ updates to Roman as I go and hence there is a small disconnect between the SVN;s at the moment..
 
You "should" use Python-Ogre SVN Rev #184 until further notice..
 
However, if there are any Unix people that want to test the new updates then you can copy the attached file into your PYPLUS\pyplusplus_dev\pyplusplus\function_transformers directory, "python setup install" Py++, get the "release" version of Ogre (no patching!), run generate_code and see if it compiles..
 
Changes I've made are:
     1. Automatically exclude "static const" vars that have their value set in the header file.
     2. Change functions that take void * in their argument list to instead take an unsigned int
 
With #1 the vars are no longer exported - however I'm still exposing functions that use these vars in their argument lists, so I want to understand if things compile or if I need to handle the function definations as well - I've only done this with Ogre, if it works I'll do the same with OIS etc
 
#2 is so we can use CTypes to create and manage "raw" buffers, and then pass the address of these buffers to Ogre..
 
On the to do list (which will also need Py++ changes) is to have functions that return pointers (void *, uchar*, float * etc) also return unsigned ints so we can again use CTypes to manage the raw buffers..
 
Cheers
 
Andy
transformers.py
Reply all
Reply to author
Forward
0 new messages