Module image_vector

Module image_vector 

Source
Expand description

Vector image component built on top of SVG parsing and tessellation.

This module mirrors the ergonomics of crate::image, but keeps the content in vector form so it can scale cleanly at any size. SVG data is parsed with usvg and tessellated into GPU-friendly triangles using lyon. The resulting ImageVectorData can be cached and reused across frames.

Re-exports§

pub use crate::pipelines::image_vector::ImageVectorData;

Structs§

ImageVectorArgs
Arguments for image_vector.
ImageVectorArgsBuilder
Builder for ImageVectorArgs.

Enums§

ImageVectorArgsBuilderError
Error type for ImageVectorArgsBuilder
ImageVectorLoadError
Errors that can occur while decoding or tessellating vector images.
ImageVectorSource
Source for loading SVG vector data.

Functions§

image_vector
load_image_vector_from_source
Load ImageVectorData from the provided source.