added hello-world example + modified vkproccessor to live inside specs
This commit is contained in:
@@ -2,7 +2,7 @@ use std::sync::Arc;
|
||||
use crate::canvas::*;
|
||||
use crate::canvas::managed::handles::{CanvasFontHandle, CanvasImageHandle, CanvasTextureHandle, Handle};
|
||||
use crate::canvas::canvas_frame::{Drawable, Eventable, Updatable};
|
||||
use crate::util::vertex::{VertexType, TextureVertex3D, Vertex3D};
|
||||
use crate::util::vertex::{VertexTypeContainer, TextureVertex3D, Vertex3D};
|
||||
use winit::event::{DeviceEvent, MouseButton, ElementState, Event, WindowEvent};
|
||||
|
||||
///
|
||||
@@ -73,9 +73,9 @@ impl Sprite {
|
||||
}
|
||||
|
||||
impl Drawable for Sprite {
|
||||
fn get(&self, window_size: (u32, u32)) -> Vec<VertexType> {
|
||||
fn get(&self, window_size: (u32, u32)) -> Vec<VertexTypeContainer> {
|
||||
vec![
|
||||
VertexType::TextureType(
|
||||
VertexTypeContainer::TextureType(
|
||||
Sprite::generate_verts(window_size, self.position, self.size, self.depth),
|
||||
self.texture_handle.clone())
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user