12 releases

0.2.10 Nov 28, 2021
0.2.9 Nov 28, 2021
0.1.7 May 13, 2021

#720 in Graphics APIs

38 downloads per month

GPL-3.0 license

1MB
2.5K SLoC

bufro

crates.io Documentation

A vector graphics renderer using wgpu with a Rust & C API.

A Rust example can be found in examples/quickstart.rs (using winit). A C example can be found in c_examples/quickstart.c (using glfw). Build the C examples by running make <example> in the c_examples folder.

Roadmap

  • Transformations (e.g. ctx.rotate)
  • Rectangle fill
  • Circle fill
  • Blending
  • Strokes
  • Text rendering (stroke & fill)
  • Effects (glow & shadows)
  • Gradients
  • Rounded rectangles and polygons
  • Use Lyon for tesselation
  • Custom shader language
  • Web API (using wasm-bindgen)

Demo

Gif showing bufro in action

Build & Install (C)

$ make # Build the dynamic library and generate the C header
% make install # Install the header and library system-wide 

Note that $ indicates a regular user shell, while % denotes a root shell.

Dependencies

~6–18MB
~273K SLoC