pyirrlicht - python ctypes binding
mainly ctypes, swig as nested project.spock wrote:interesting! :)
so does this use ctypes or swig now?
i thought ctypes only works for c? how did you do a c++ wrapper using ctypes then?
is python 3.1/3.2 supported?
low level dll with many exported functions - python module have wrappered classes over these functions.
all versions python is supported.
if you do embeded python functional most compatible with irrlicht, perhaps you save time in the future.devsh wrote:unfortunately I cannot use this project (hence why my project is going so slow), I want to embed python and not extend and make irrlicht usable by python itself (unlike pyirrlicht).
also i willing to help with python code.
perhaps this project be interest for you http://code.google.com/p/ctypes-stuff/s ... ctypes-cppspock wrote:i thought ctypes only works for c? how did you do a c++ wrapper using ctypes then?
-
- Posts: 47
- Joined: Mon Jan 10, 2011 8:01 pm
- Location: SoCal
because this differs from original as C from C++roxaz wrote:i am wondering why its called irrlicht_c.dll instead of original irrlicht.dll? did you have to modify engine itself somehow?
these not modify, only some additions, such as grid and vector font from this forum
patched python script with some bugs fixed http://kolosov.ath.cx/pyirrlicht_py_0951.zip
Thank you for your interest in my project
irrlicht_swig on unix
I found a bug in irrlicht.i :
irrlicht.i mentions IGUIToolBar.h but the file in irrlicht 1.7.1 is named iGUIToolbar.h so it works on case insensitive OSes (windows) but fail on others (i'm on Debian)
But it seems to have another but, i'm trying with :
swig -c++ -o irr_pyXX.cxx -keyword -I../irrlicht_1.7.1/include -python -castmode -cppcast -interface irr_pyXX irrlicht.i
And I got :
Does someone have an idea ?
irrlicht.i mentions IGUIToolBar.h but the file in irrlicht 1.7.1 is named iGUIToolbar.h so it works on case insensitive OSes (windows) but fail on others (i'm on Debian)
But it seems to have another but, i'm trying with :
swig -c++ -o irr_pyXX.cxx -keyword -I../irrlicht_1.7.1/include -python -castmode -cppcast -interface irr_pyXX irrlicht.i
And I got :
Code: Select all
../irrlicht-1.7.1/include/irrArray.h:282: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrArray.h:311: Warning(389): operator[] ignored (consider using %extend)
../irrlicht-1.7.1/include/irrArray.h:320: Warning(389): operator[] ignored (consider using %extend)
../irrlicht-1.7.1/include/irrList.h:171: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrMap.h:833: Warning(389): operator[] ignored (consider using %extend)
../irrlicht-1.7.1/include/irrMap.h:843: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrString.h:248: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrString.h:256: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrString.h:303: Warning(362): operator= ignored
../irrlicht-1.7.1/include/irrString.h:332: Warning(389): operator[] ignored (consider using %extend)
../irrlicht-1.7.1/include/irrString.h:340: Warning(389): operator[] ignored (consider using %extend)
irrUString.h:1037: Warning(362): operator= ignored
irrUString.h:1066: Warning(362): operator= ignored
irrUString.h:1084: Warning(362): operator= ignored
irrUString.h:1102: Warning(362): operator= ignored
irrUString.h:1120: Warning(362): operator= ignored
irrUString.h:1137: Warning(362): operator= ignored
irrUString.h:1153: Warning(362): operator= ignored
irrUString.h:1162: Warning(389): operator[] ignored (consider using %extend)
irrUString.h:1171: Warning(389): operator[] ignored (consider using %extend)
../irrlicht-1.7.1/include/dimension2d.h:43: Warning(362): operator= ignored
../irrlicht-1.7.1/include/vector2d.h:39: Warning(362): operator= ignored
../irrlicht-1.7.1/include/vector2d.h:41: Warning(362): operator= ignored
../irrlicht-1.7.1/include/vector3d.h:38: Warning(362): operator= ignored
irrlicht.i:349: Warning(302): Identifier 'GetText' redefined (ignored),
irrlicht.i:347: Warning(302): previous definition of 'GetText'.
irrlicht.i:465: Warning(302): Identifier 'LogEvent_Text' redefined (ignored),
irrlicht.i:462: Warning(302): previous definition of 'LogEvent_Text'.
../irrlicht-1.7.1/include/IQ3Shader.h:21: Error: Syntax error in input(1).
Re: irrlicht_swig on unix
Thanks with your bug report, I look tomorrow this.jpalard wrote:I found a bug in irrlicht.i :
Does someone have an idea ?
Now is new version with SVG partial support via AGG library.
Re: irrlicht_swig on unix
Sorry for delay.jpalard wrote:Does someone have an idea ?Code: Select all
../irrlicht-1.7.1/include/IQ3Shader.h:21: Error: Syntax error in input(1).
Change IQ3Shader.h line 21 to "static core::stringc irrEmptyStringc;"