E742MTJAS6KZGXIFVCZMKREGQK34LA45VBIT4E7ODBL7J64FKJFAC
6AXPZL5PQMW5P6BPRTGWO3AOWAU5OC33UYBY3TVOHUVQXCRVVTPQC
SXR7KEVO3VO3C5QW3ZXR7R6MK4REPSYL37VC3GSUKPERGOLKOPUQC
ZRPV3GAJQYQLXVL5LS3TFKZACVXSL43WEEA6PKF6ZUWHDUIIDSBQC
ROQCAPZJPLENWBMHRK7DNH3CIMZRHPBMVBBKT7NQXRIFHEDZ5JHQC
IGYI5RVVRFQUQBDH6KQ2MH6ADCZ455Z634BRXKLCEYFF4ZKQ3TMQC
X5U7KRUIQBF7CQ2F2WRTQJ64PXUXGP3AQYWBRKKH3VMUYKJ4LXDQC
QBDHX7BHK4TI5R4MC3S42UCXBTSJJRULHSMOVME3V643X7ABAC2QC
*.so
*.dylib
helpers = ctypes.cdll.LoadLibrary(os.path.dirname(os.path.realpath(__file__)) + '/helpers.so')
helpers.render_tensor.argtypes = [ctypes.c_void_p, ctypes.c_int, ctypes.c_int, ctypes.c_int]
helpers.render_tensor.restype = ctypes.POINTER(sdl2.surface.SDL_Surface)
import ctypes
import os
import platform
import sdl2
native = ctypes.cdll.LoadLibrary(os.path.dirname(os.path.realpath(__file__)) + '/helpers.' + ('dylib' if platform.system() == 'Darwin' else 'so'))
native.render_tensor.argtypes = [ctypes.c_void_p, ctypes.c_int, ctypes.c_int, ctypes.c_int]
native.render_tensor.restype = ctypes.POINTER(sdl2.surface.SDL_Surface)
render_tensor = native.render_tensor
src/helpers.so: src/helpers.rs
rustc --crate-name helpers --edition=2018 src/helpers.rs -o src/helpers.so --crate-type cdylib --emit=link -C embed-bitcode=no -C link-args="$$(sdl2-config --libs)"
src/helpers.$(SO_SUFFIX): src/helpers.rs
rustc --crate-name helpers --edition=2018 src/helpers.rs -o src/helpers.$(SO_SUFFIX) --crate-type cdylib --emit=link -C embed-bitcode=no