Horde3D
http://horde3d.org/forums/

python cffi bindings
http://horde3d.org/forums/viewtopic.php?f=1&t=2259
Page 1 of 1

Author:  perkins [ 30.04.2014, 08:39 ]
Post subject:  python cffi bindings

Hey everyone, I've started a new set of python bindings using cffi instead of ctypes and reading in the header files. Should get slightly better performance than the old-style bindings, as well as being resistant to changes in Horde3D and glfw3's headers. The low level bindings are done (being automatically generated, they're about 100 lines of code). I'm working on higher level data structures to go with it.

You can get it here: https://github.com/perkinslr/pyHorde3D

Author:  Zuck [ 07.06.2014, 11:12 ]
Post subject:  Re: python cffi bindings

Good job, thanks!

Are you using the develop branch of Horde3D from the official github repo?

https://github.com/horde3d/Horde3D/tree/develop

Author:  Lajah250 [ 11.06.2014, 20:43 ]
Post subject:  Re: python cffi bindings

Im not sure how your Bindings are working..
Could you make a small demo?

Author:  perkins [ 27.01.2016, 00:50 ]
Post subject:  Re: python cffi bindings

Okay, a year and a half later, I got busy with other projects.

Anyway, I just updated the repository with an ObjectOriented wrapper, and it includes a set of simple examples.
I also have integration with the Newton Game Dynamics and a simple example using that, if anyone is interested I'll be making it available soon.

Author:  perkins [ 27.01.2016, 00:57 ]
Post subject:  Re: python cffi bindings

As for the version of Horde3D used, the low level wrapper is dynamically generated at runtime, so it will wrap any version of Horde3D (and glfw3) that has roughly the same header structure. The OO wrapper requires a particular set of functions to be available; with automatic type coercion, it is somewhat flexible about versions, but may need slight tweaking if numbers of arguments change.

I'm using https://github.com/horde3d/Horde3D/trunk for testing and development.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/