summaryrefslogtreecommitdiffstats
path: root/third_party/rust/wpf-gpu-raster/examples/simple.rs
blob: 5b82cdd9411179e00fd8e466c6c3e5985096468c (plain)
1
2
3
4
5
6
7
8
9
10
11
use wpf_gpu_raster::PathBuilder;
fn main() {
    let mut p = PathBuilder::new();
    p.move_to(10., 10.);
    p.line_to(10., 30.);
    p.line_to(30., 30.);
    p.line_to(30., 10.);
    p.close();
    let _result = p.rasterize_to_tri_list(0, 0, 100, 100);
    //dbg!(result);
}