justinian wrote:I recently started work on a SWIG python binding for Irrlicht, for my own uses. If anyone's interested, let me know.. there's not too much there so far, but it at least runs the basic model-loading example.
This is a direct wrapping of the Irrlicht API for Python, not a framework or other engine with Python bindings. I'm aiming to make it pythonic at least on a basic level (eg, being able to pass a tuple of ints for a vector2d<s32>, etc) but not so far as pyOgre went with things (eg, making set/get methods into properties, straying from the C++ API to make it more pythonic..).
If anyone else has gotten further than I have on something similar, I'd also love to see what they've got!
Hi there, I've just started writing bindings for Ruby, using Swig, for the Mac. I hit a problem trying to wrap createDevice. I have
Code: Select all
IrrlichtDevice* createDevice(
video::E_DRIVER_TYPE deviceType = video::EDT_SOFTWARE,
const core::dimension2d<s32>& windowSize = core::dimension2d<s32>(640,480),
u32 bits = 16,
bool fullscreen = false,
bool stencilbuffer=false,
bool vsync=false,
IEventReceiver* receiver = 0,
const char* sdk_version_do_not_use = IRRLICHT_SDK_VERSION);
But I get the following errors:
irrlicht_wrapper.cpp: In function ‘VALUE _wrap_createDevice__SWIG_0(int, VALUE*, VALUE)’:
irrlicht_wrapper.cpp

error: ‘createDevice’ is not a member of ‘irr’
irrlicht_wrapper.cpp: In function ‘VALUE _wrap_createDevice__SWIG_1(int, VALUE*, VALUE)’:
irrlicht_wrapper.cpp

error: ‘createDevice’ is not a member of ‘irr’
irrlicht_wrapper.cpp: In function ‘VALUE _wrap_createDevice__SWIG_2(int, VALUE*, VALUE)’:
irrlicht_wrapper.cpp

error: ‘createDevice’ is not a member of ‘irr’
irrlicht_wrapper.cpp: In function ‘VALUE _wrap_createDevice__SWIG_3(int, VALUE*, VALUE)’:
irrlicht_wrapper.cpp

error: ‘createDevice’ is not a member of ‘irr’
irrlicht_wrapper.cpp: In function ‘VALUE _wrap_createDevice__SWIG_4(int, VALUE*, VALUE)’:
irrlicht_wrapper.cpp

error: ‘createDevice’ is not a member of ‘irr’
irrlicht_wrapper.cpp: In function ‘VALUE _wrap_createDevice__SWIG_5(int, VALUE*, VALUE)’:
irrlicht_wrapper.cpp

error: ‘createDevice’ is not a member of ‘irr’
irrlicht_wrapper.cpp: In function ‘VALUE _wrap_createDevice__SWIG_6(int, VALUE*, VALUE)’:
irrlicht_wrapper.cpp

error: ‘createDevice’ is not a member of ‘irr’
irrlicht_wrapper.cpp: In function ‘VALUE _wrap_createDevice__SWIG_7(int, VALUE*, VALUE)’:
irrlicht_wrapper.cpp

error: ‘createDevice’ is not a member of ‘irr’
irrlicht_wrapper.cpp: In function ‘VALUE _wrap_createDevice__SWIG_8(int, VALUE*, VALUE)’:
irrlicht_wrapper.cpp

error: ‘createDevice’ is not a member of ‘irr’
Any clues?