Readjusted namespaces, removed Geometry example as it's no longer relevant.
This commit is contained in:
parent
6e7b3ced0b
commit
30432cbade
27 changed files with 394 additions and 625 deletions
|
|
@ -5,13 +5,13 @@ mod solid;
|
|||
use crate::{program, Transformation};
|
||||
use glow::HasContext;
|
||||
use iced_graphics::layer::{attribute_count_of, Mesh};
|
||||
use iced_graphics::shader;
|
||||
use std::marker::PhantomData;
|
||||
use iced_graphics::layer;
|
||||
|
||||
use crate::triangle::gradient::GradientProgram;
|
||||
use crate::triangle::solid::SolidProgram;
|
||||
pub use iced_graphics::triangle::{Mesh2D, Vertex2D};
|
||||
use shader::Shader;
|
||||
use layer::mesh;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct Pipeline {
|
||||
|
|
@ -139,11 +139,11 @@ impl Pipeline {
|
|||
clip_bounds.height as i32,
|
||||
);
|
||||
|
||||
match mesh.shader {
|
||||
Shader::Solid(color) => {
|
||||
match mesh.style {
|
||||
mesh::Style::Solid(color) => {
|
||||
self.programs.solid.use_program(gl, &color, &transform);
|
||||
}
|
||||
Shader::Gradient(gradient) => {
|
||||
mesh::Style::Gradient(gradient) => {
|
||||
self.programs.gradient.use_program(gl, &gradient, &transform);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue