mordaunt.dev/code

code / odin-blend2d

odin-blend2d

Odin bindings to Blend2D

  • Odin
  • C++
  • Bindings
  • Blend2D
  • Vector-Graphics
  • Graphics
  • Rendering
  • 2D
  • Native
  • Library
clone
https://mordaunt.dev/code/odin-blend2d
license
Unlicense OR MIT
activity
30 commitsthis year, since 2025

Bindings for Blend2D vector graphics library.

Bindings are generated with bindgen, with custom patches applied to fix some naive output.

Generate

Blend2D source (and asmjit) is wholly included as a subtree.

The file ./script/generate.sh will compile a static library from source for your system, and generate the bindings from the headers.

You will need to run ./script/generate.sh to acquire the static library compatible with your system, or follow Blend2D’s build instructions yourself.

Examples

The examples folder contains some samples directly ported from Blend2D. Run the samples like so:

odin run ./example/sample_1.odin -file -extra-linker-flags:"-lstdc++"

While Blend2D offers a C api, we still need to link stdc++ the static lib uses C++.

Commit log

Mirrored to sourcehut and GitHub.