added hello-world example + modified vkproccessor to live inside specs
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use std::sync::Arc;
|
||||
use crate::canvas::managed::handles::{CanvasImageHandle, CanvasTextureHandle};
|
||||
use crate::canvas::canvas_frame::Drawable;
|
||||
use crate::util::vertex::{VertexType, ImageVertex3D};
|
||||
use crate::util::vertex::{VertexTypeContainer, ImageVertex3D};
|
||||
|
||||
pub struct CompuSprite {
|
||||
|
||||
pub verts: VertexType,
|
||||
pub verts: VertexTypeContainer,
|
||||
|
||||
position: (f32, f32),
|
||||
size: (f32, f32),
|
||||
@@ -44,7 +44,7 @@ impl CompuSprite {
|
||||
];
|
||||
|
||||
CompuSprite {
|
||||
verts: VertexType::ImageType(verts, image_handle.clone()),
|
||||
verts: VertexTypeContainer::ImageType(verts, image_handle.clone()),
|
||||
position: position,
|
||||
size: size,
|
||||
color: (0.0, 0.0, 0.0, 0.0),
|
||||
@@ -53,7 +53,7 @@ impl CompuSprite {
|
||||
}
|
||||
|
||||
impl Drawable for CompuSprite {
|
||||
fn get(&self, window_size: (u32, u32)) -> Vec<VertexType> {
|
||||
fn get(&self, window_size: (u32, u32)) -> Vec<VertexTypeContainer> {
|
||||
vec![self.verts.clone()]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user