pralkarz/raython

simple experiment to learn about Python FFI.

★ 0Forks 0PythonGitHub ↗Compare

README

raython

simple experiment to learn about Python and C interoperability. the bindings are in raylib.py, the code that calls the bindings is in raython.py.

usage

  1. clone raylib and build it as a shared library (steps differ depending on the OS), e.g.
git clone https://github.com/raysan5/raylib.git raylib
cd raylib/src/
make PLATFORM=PLATFORM_DESKTOP RAYLIB_LIBTYPE=SHARED
  1. move the .dll (Windows) or .so (Unix/Darwin) file to the raython root directory.
  2. run with python raython.py.

Issues