[Python-ogre-commit] SF.net SVN: python-ogre:[821] trunk/python-ogre
Brought to you by:
andy_miller,
roman_yakovenko
From: <and...@us...> - 2008-11-27 05:46:28
|
Revision: 821 http://python-ogre.svn.sourceforge.net/python-ogre/?rev=821&view=rev Author: andy_miller Date: 2008-11-27 05:46:23 +0000 (Thu, 27 Nov 2008) Log Message: ----------- Update ChangeLog Fix Ogre wrapper to exclude Mutex Vars that are not exposed (boost::recursive_mutex) Modified Paths: -------------- trunk/python-ogre/ChangeLog.txt trunk/python-ogre/code_generators/ogre/generate_code.py trunk/python-ogre/demos/ogre/Demo_Bezier.py Modified: trunk/python-ogre/ChangeLog.txt =================================================================== --- trunk/python-ogre/ChangeLog.txt 2008-11-27 02:09:10 UTC (rev 820) +++ trunk/python-ogre/ChangeLog.txt 2008-11-27 05:46:23 UTC (rev 821) @@ -1,3 +1,18 @@ +xxx : Release SVN +================= +Fix: Improved extract_document functions to improve pydoc stings - remove excess leading whitespace and wraps at 100 chars +Fix: PhysX library exposes various NxArray objects that previously were excluded due to compile issues +Fix: Ogre library excludes xxxMutex variables from a few classes (Pass etc) as these are not correctly exposed + +Update: PhysX can now be 'retrieved' and 'built' from windows (BuildModule.py -r -b physx) +Update: Extend the PhysX demo a little +Update: Update Bullet libraries to bullet 2.72 +Update: SampleFramework now uses a 'PythonOgre' overlay +Update: SampleFramework will now look for plugins.cfg or plugins.cfg.<platform name> ('nt' or 'linux') in the current and + parent directories -- this will allow a single demo tree to automatically work on any platform unstead of the + current suitation of having to manually edit the plugins file.. + + November 14 2008 : Release 1.6.0 ================================== Run "python ReportVersion.py" to get the module version information Modified: trunk/python-ogre/code_generators/ogre/generate_code.py =================================================================== --- trunk/python-ogre/code_generators/ogre/generate_code.py 2008-11-27 02:09:10 UTC (rev 820) +++ trunk/python-ogre/code_generators/ogre/generate_code.py 2008-11-27 05:46:23 UTC (rev 821) @@ -304,7 +304,17 @@ cls.decl_string.startswith("::Ogre::CategorisedAllocPolicy") : print "Excluding Allocator class", cls cls.exclude() - + + # turns out there are some variables we didn't catch that are actually classes of boost::recursive_mutex + # which isn't exposed... May be related only to threading ?? + # could limit it to known classes however safer to handle everything +# ec = ['Pass', 'ResourceBackgroundQueue', 'SceneManager'] + for c in main_ns.classes(): + for v in c.variables( allow_empty=True): + if v.name.endswith('Mutex'): + print "Excluding possible Mutex Variable:", v + v.exclude() + ####################b######################################## ## ## And there are things that manually need to be INCLUDED @@ -831,11 +841,11 @@ ## handle a problem hashmap mb.member_function('::Ogre::Mesh::getSubMeshNameMap').exclude() stdex_ns = mb.global_ns.namespace("__gnu_cxx") - stdex_ns.class_('hash_map<std::string, unsigned short, __gnu_cxx::hash<std::string>, std::equal_to<std::string>, std::allocator<unsigned short> >').exclude - for f in mb.member_functions(): - if f.name == 'getChildIterator': - print "LINUX SPECIAL:", f - ###f.exclude() + stdex_ns.class_('hash_map<std::string, unsigned short, __gnu_cxx::hash<std::string>, std::equal_to<std::string>, std::allocator<unsigned short> >').exclude + for f in mb.member_functions(): + if f.name == 'getChildIterator': + print "LINUX SPECIAL:", f + ###f.exclude() #mb.member_function('::Ogre::Node::getChildIterator').exclude() # mb.member_functions('::Ogre::Bone::getChildIterator').exclude() @@ -1081,8 +1091,8 @@ undefine_symbols=[] if environment._USE_THREADS: defined_symbols.append('BOOST_HAS_THREADS') - if environment.isWindows(): - defined_symbols.append('BOOST_HAS_WINTHREADS') + if environment.isWindows(): + defined_symbols.append('BOOST_HAS_WINTHREADS') defined_symbols.append( 'OGRE_VERSION_' + environment.ogre.version ) Modified: trunk/python-ogre/demos/ogre/Demo_Bezier.py =================================================================== --- trunk/python-ogre/demos/ogre/Demo_Bezier.py 2008-11-27 02:09:10 UTC (rev 820) +++ trunk/python-ogre/demos/ogre/Demo_Bezier.py 2008-11-27 05:46:23 UTC (rev 821) @@ -231,6 +231,11 @@ pMat.getTechnique(0).getPass(0).createTextureUnitState( "BumpyMetal.jpg" ) patchEntity.setMaterialName("TextMat") patchPass = pMat.getTechnique(0).getPass(0) + + print patchPass + print dir(patchPass) + print patchPass.msDirtyHashListMutex + sys.exit() ## Attach the entity to the root of the scene This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |