Common Lisp bindings for FastNoiseLite generated with cl-autowrap.
This project is as yet not on Quicklisp. Using these bindings require a few steps.
Clone this repo to your a place where you like.
git clone https://github.com/somecho/cl-fnl
You can quickly add cl-fnl to your project like so:
(load "/path/to/cl-fnl.asd")
(ql:quickload :cl-fnl)
(asdf:load-system :cl-fnl) ;; if you do not use Quicklisp
You need to have FastNoiseLite built on your system. As the C implementation FastNoiseLite is a header only library, you will need a .c
file to compile it. A .c
implementation file is provided at ./src/spec/FastNoiseLite.c
. Then you can build it (on Linux) with gcc -fPIC -shared -o libFastNoiseLite.so FastNoiseLite.c
. Once the shared library is built, you can add this line to your project:
(cffi:load-foreign-library "/path/to/libFastNoiseLite.so")
Make sure to adjust the extension name of the shared library to your specific platform.
An example of how to use the bindings are found here.