Skip to content
No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
blend2d.ll
examples Catch errors and reset Blend2D objects in with-objects macro. Apr 29, 2019
.gitignore Successfully generated a wrapper using cl-autowrap, needs cleanup. Apr 13, 2019
LICENSE Initial commit. Apr 9, 2019
README.md Add a usage guide to README.md Apr 29, 2019
blend2d.asd First attemp at with-objects macro. Apr 21, 2019
blend2d.examples.asd Include renamed file in blend2d.examples.asd, update examples to use … Apr 21, 2019
blend2d.lisp Catch errors and reset Blend2D objects in with-objects macro. Apr 29, 2019
blend2d.ll.asd
package.lisp First attemp at with-objects macro. Apr 21, 2019
project.org

README.md

blend2d

Jeremiah LaRocco jeremiah_larocco@fastmail.com

Common Lisp bindings to Blend2D.

Getting Started

These bindings will not be added to QuickLisp until after Blend2D has an official 1.0 release. Until then, installation is manual, and it's recommended to build against a source version of Blend2D.

Fortunately, cl-autowrap makes it easy to build the bindings from the source code.

Note: I've made changes to cl-autowrap that aren't yet in the upstream version. Specifically, I've added a :language parameter to autowrap:c-include to force parsing as a specific language.

Get and Build Blend2D

First, fetch the code and follow the build instructions. I've had good luck using the first shell script under "Building From Source". To simplify later steps, you can install the library using "sudo make install", but it's not strictly necessary to follow these instructions.

Get Blend2D Bindings

In your local Lisp project directory, clone the cl-blend2d library:

git clone git@github.com:jl2/cl-blend2d.git

Load Blend2D bindings in the REPL

In Slime:

(ql:quickload :blend2d.examples)

The quickload will take several seconds the first time, as autwrap needs to run c2ffi, parse the .spec files, and generate code. Subsequent loads should be much faster.

Next, run one of the getting started examples:

(blend2d.examples:getting-started-1 "/home/jeremiah/blend2d.example.1.bmp")

This should produce a file blend2d.example.1.bmp

License

ISC

Copyright (c) 2019 Jeremiah LaRocco jeremiah_larocco@fastmail.com

You can’t perform that action at this time.