Skip to content

perkinslr/pyHorde3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pyHorde3D

Dynamic python wrapper for Horde3D

High-level OO wrapper is functional (not complete, since I'm likely to expand it as I use it for a project).
The OO wrapper is available in Horde3D.py, it uses the autogenerated low-level wrapper (h3d.py)

It should work with mingw/msys or cygwin on windows, but relies on the ld library loader and pexpect which are not normally available on windows, and tries to load libX11.so, so either that load call must be removed, or libX11 must be available. I've tested using pypy-2.5.1 with cffi 0.8.2 and python 2.7.9 with cffi 0.9.2

The low level wrapper automatically reads various header files to determine the functions available and dynamically loads several shared libraries. The locations for the various headers and libraries are controlled via the folowing environment variables; the include paths can be hardcoded in the (libname)_h.py files, the library paths are in h3d.py, and the content path is in Horde3D.py

H3DCONTENT to the content directory containing your resources (.)

HORDELIB to the location that holds libHorde3D.so (/usr/local/lib)

HORDE3DINCLUDE to the location of Horde3DUtils.h (/usr/local/include)

GLFWINCLUDE to the location of glfw3.h (/usr/include/GLFW)

Additionally, libX11 is expected to be findable by LD

Examples are available in the examples folder.

About

Dynamic python wrapper for Horde3D

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages