Refactor imports of triangle modules in iced_glow and iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2022-11-03 06:05:23 +01:00
parent 68cddd6468
commit f31c8f2504
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 14 additions and 15 deletions

View file

@ -2,16 +2,15 @@
mod gradient;
mod solid;
use crate::{program, Transformation};
use crate::program;
use crate::Transformation;
use iced_graphics::layer::mesh::{self, Mesh};
use iced_graphics::triangle;
use iced_graphics::triangle::{self, Vertex2D};
use glow::HasContext;
use std::marker::PhantomData;
pub use iced_graphics::triangle::{Mesh2D, Vertex2D};
#[derive(Debug)]
pub(crate) struct Pipeline {
vertex_array: <glow::Context as HasContext>::VertexArray,