added hello-world example + modified vkproccessor to live inside specs

This commit is contained in:
2020-08-08 23:38:44 -07:00
parent b070a7dd32
commit c10115e7b9
15 changed files with 150 additions and 102 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::VertexType;
use crate::VertexTypeContainer;
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, window_size: (u32, u32)) -> Vec<VertexType>;
fn get(&self, window_size: (u32, u32)) -> Vec<VertexTypeContainer>;
}
/// Trait which may be inherited by objects that wish to receive events
@@ -27,7 +27,7 @@ pub trait Updatable {
/// Accumulator for Vectors of VertexTypes
#[derive(Default)]
pub struct CanvasFrame {
pub map: Vec<VertexType>,
pub map: Vec<VertexTypeContainer>,
window_size: (u32, u32),
}