Crate contrast_renderer

Source
Expand description

Contrast is a web-gpu based 2D render engine written in Rust.

Re-exports§

pub extern crate geometric_algebra;
pub extern crate ttf_parser;
pub extern crate wgpu;

Modules§

convex_hull
2D convex hull algorithms
curve
Various math helper functions to work with bezier curves.
error
Error handling
path
Defining the geometry and rendering options of Paths
renderer
Rendering of Paths bundeled in Shapes using a Renderer
safe_float
Floats which are guaranteed to be finite (no NaNs or Infinity)
text
(Optional) Working with font faces, converting glyphs and text to Paths
utils
Miscellaneous utility and helper functions

Macros§

concat_buffers
Concats the given sequence of Buffers and serializes them into a Vec<u8>
hash_map
Like vec! but for HashMap
hash_set
Like vec! but for HashSet
match_option
Like matches! but returns an option of the matched value