20个版本 (5个重大变更)
0.5.0 | 2023年4月28日 |
---|---|
0.4.0 | 2023年1月27日 |
0.3.0 | 2022年10月22日 |
0.2.0 | 2022年7月31日 |
0.0.3 | 2020年11月3日 |
#806 in 图形API
在2个包中使用(通过kludgine-core)
22KB
285 代码行
easygpu-lyon
基本示例
let mut builder = ShapeBuilder::default();
lyon::tessellation::basic_shapes::fill_circle(
Point::new(50., 50.),
25.,
&FillOptions::default(),
&mut builder,
)
.expect("Error tesselating circle");
let shape = builder.prepare(&renderer);
// { ... }
pass.set_pipeline(&self.pipeline);
self.shape.draw(pass);
要深入了解,请查看examples/目录。您可以使用cargo run --example <name>
运行单个示例,例如cargo run --example circle
依赖项
~11–42MB
~674K SLoC