nonworking dynamic bindings

This commit is contained in:
Richard Smith 2019-05-21 17:51:54 +01:00
parent 2335c5275f
commit 790ff3fcf6
8 changed files with 119 additions and 31 deletions

View file

@ -0,0 +1,15 @@
"""
This is an attempt at a CFFI dynamic (ABI) binding. However, it fails to work in the exactly same place the ctypes binding fails, accessing
materials of a model.
"""
import pathlib
MODULE = pathlib.Path(__file__).parent.parent
from cffi import FFI
ffi = FFI()
ffi.cdef(open(MODULE / "raylib_modified.h").read().replace('RLAPI ', ''))
raylib = ffi.dlopen(str(MODULE)+"/dynamic_binding/libraylib.2.dylib")

Binary file not shown.