blender/source
Campbell Barton fd2b115678 Python BGE API
- Initialize python types with PyType_Ready, which adds methods to the type dictionary.
- use Pythons get/setattro (uses a python string for the attribute rather then char*). Using basic C strings seems nice but internally python converts them to python strings and discards them for most functions that accept char arrays.
- Method lookups use the PyTypes dictionary (should be faster then Py_FindMethod)
- Renamed __getattr -> py_base_getattro, _getattr -> py_getattro, __repr -> py_base_repr, py_delattro, py_getattro_self etc.

From here is possible to put all the parent classes methods into each python types dictionary to avoid nested lookups (api has 4 levels of lookups in some places), tested this but its not ready yet.

Simple tests for getting a method within a loop show this to be between 0.5 and 3.2x faster then using Py_FindMethod()
2009-04-03 14:51:06 +00:00
..
blender Major cleanup of particle render & drawing code. No new features and hopefully no new bugs. 2009-04-03 14:50:54 +00:00
creator [#18477] Prevent .svn directories being included in OS X app bundles 2009-04-02 06:46:56 +00:00
darwin [#18477] Prevent .svn directories being included in OS X app bundles 2009-04-02 06:46:56 +00:00
gameengine Python BGE API 2009-04-03 14:51:06 +00:00
icons Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
kernel Merge from trunk 2008-09-19 14:15:36 +00:00
CMakeLists.txt Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
Makefile [#18260] FMOD Removal 2009-03-24 09:09:10 +00:00
nan_compile.mk Added BF_PROFILE (same name as in scons files) option. 2009-03-23 19:52:49 +00:00
nan_definitions.mk Moved EXR settings to OS related zone. 2009-03-28 19:31:22 +00:00
nan_link.mk patch #8583: Add support for gcc on irix 2008-11-24 14:15:05 +00:00
nan_subdirs.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
nan_warn.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SConscript * Minor cleanup of SCons files 2008-10-22 11:28:10 +00:00