1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 15:13:12 -04:00

[docs] Improve README.md and documentation

This commit is contained in:
Emil Ernerfeldt
2020-08-21 18:53:43 +02:00
parent ad9783a33d
commit 73cea29f7d
15 changed files with 366 additions and 189 deletions

View File

@@ -235,6 +235,7 @@ impl Painter {
}
fn paint_triangles(&self, triangles: &Triangles) -> Result<(), JsValue> {
debug_assert!(triangles.is_valid());
let indices: Vec<u16> = triangles.indices.iter().map(|idx| *idx as u16).collect();
let mut positions: Vec<f32> = Vec::with_capacity(2 * triangles.vertices.len());