added slider thing, broke rendering somehow though

This commit is contained in:
2020-08-01 20:06:53 -07:00
parent 8da810f23a
commit f3a3be1d99
12 changed files with 78 additions and 52 deletions

View File

@@ -6,12 +6,12 @@ use crate::canvas::managed::shader::dynamic_vertex::RuntimeVertexDef;
use crate::canvas::managed::handles::{CanvasTextureHandle, CanvasImageHandle, CanvasFontHandle, Handle};
use vulkano::pipeline::vertex::Vertex;
use std::any::Any;
use crate::VertexTypes;
use crate::VertexType;
use winit::event::Event;
/// Trait which may be inherited by objects that wish to be drawn to the screen
pub trait Drawable {
fn get(&self) -> Vec<VertexTypes>;
fn get(&self) -> Vec<VertexType>;
}
/// Trait which may be inherited by objects that wish to receive events
@@ -22,7 +22,7 @@ pub trait Eventable<T> {
/// Accumulator for Vectors of VertexTypes
#[derive(Default)]
pub struct CanvasFrame {
pub map: Vec<VertexTypes>,
pub map: Vec<VertexType>,
}
impl CanvasFrame {