Refactor imports of triangle modules in iced_glow and iced_wgpu
This commit is contained in:
parent
68cddd6468
commit
f31c8f2504
2 changed files with 14 additions and 15 deletions
|
|
@ -2,16 +2,15 @@
|
||||||
mod gradient;
|
mod gradient;
|
||||||
mod solid;
|
mod solid;
|
||||||
|
|
||||||
use crate::{program, Transformation};
|
use crate::program;
|
||||||
|
use crate::Transformation;
|
||||||
|
|
||||||
use iced_graphics::layer::mesh::{self, Mesh};
|
use iced_graphics::layer::mesh::{self, Mesh};
|
||||||
use iced_graphics::triangle;
|
use iced_graphics::triangle::{self, Vertex2D};
|
||||||
|
|
||||||
use glow::HasContext;
|
use glow::HasContext;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
|
|
||||||
pub use iced_graphics::triangle::{Mesh2D, Vertex2D};
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct Pipeline {
|
pub(crate) struct Pipeline {
|
||||||
vertex_array: <glow::Context as HasContext>::VertexArray,
|
vertex_array: <glow::Context as HasContext>::VertexArray,
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
||||||
//! Draw meshes of triangles.
|
//! Draw meshes of triangles.
|
||||||
use crate::{settings, Transformation};
|
|
||||||
use core::fmt;
|
|
||||||
use std::fmt::Formatter;
|
|
||||||
|
|
||||||
use iced_graphics::layer::mesh::{self, Mesh};
|
|
||||||
use iced_graphics::triangle;
|
|
||||||
use iced_graphics::Size;
|
|
||||||
|
|
||||||
use crate::buffer::r#static::Buffer;
|
|
||||||
pub use iced_graphics::triangle::{Mesh2D, Vertex2D};
|
|
||||||
|
|
||||||
mod gradient;
|
mod gradient;
|
||||||
mod msaa;
|
mod msaa;
|
||||||
mod solid;
|
mod solid;
|
||||||
|
|
||||||
|
use crate::buffer::r#static::Buffer;
|
||||||
|
use crate::settings;
|
||||||
|
use crate::Transformation;
|
||||||
|
|
||||||
|
use iced_graphics::layer::mesh::{self, Mesh};
|
||||||
|
use iced_graphics::triangle::{self, Vertex2D};
|
||||||
|
use iced_graphics::Size;
|
||||||
|
|
||||||
|
use core::fmt;
|
||||||
|
use std::fmt::Formatter;
|
||||||
|
|
||||||
/// Triangle pipeline for all mesh layers in a [`iced_graphics::Canvas`] widget.
|
/// Triangle pipeline for all mesh layers in a [`iced_graphics::Canvas`] widget.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub(crate) struct Pipeline {
|
pub(crate) struct Pipeline {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue