mach/libmach
2022-07-20 18:59:29 -07:00
..
.gitignore libmach: initial API bindings for mach core 2022-07-14 22:44:44 -07:00
Makefile libmach: initial API bindings for mach core 2022-07-14 22:44:44 -07:00
README.md libmach: update API, exposes init, update, and deinit functions 2022-07-19 09:32:52 -07:00
test.c libmach: fix small issues and naming conventions 2022-07-20 18:59:29 -07:00
test.lisp libmach: fix small issues and naming conventions 2022-07-20 18:59:29 -07:00

libmach

Build the libmach dynamic library by running make (or running zig build in the parent directory). The resulting binary should be located in libmach/build/.

Test the functionality of libmach using make test_c and make test_lisp. These commands use C and Lisp to call into libmach, and both should show a blank window for 5 seconds. If you resize the window, it should print the new dimensions to the standard output.

Note: make test_lisp requires a relatively recent version of Steel Bank Common Lisp (sbcl) to be installed, plus Quicklisp.

You can find the Zig source code for libmach in src/platform/libmach.zig.