this is a week or so worth of brainstorming. Looking at pulling everything sprite related into it's own little struct. And also doing a message everything arch
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use crate::canvas::canvas_frame::Drawable;
|
||||
use crate::util::vertex::{VertexTypeContainer, ColorVertex3D};
|
||||
use crate::util::tr_event::{TrUIEvent, TrEvent};
|
||||
|
||||
///
|
||||
#[derive(Debug, Clone)]
|
||||
@@ -137,13 +138,21 @@ impl Text {
|
||||
}
|
||||
|
||||
impl Drawable for Text {
|
||||
fn get(&self,
|
||||
window_size: (u32, u32),
|
||||
position: (f32, f32),
|
||||
rotation: f32,
|
||||
size: (f32, f32),
|
||||
depth: f32,
|
||||
fn render(&self,
|
||||
window_size: (u32, u32),
|
||||
position: (f32, f32),
|
||||
rotation: f32,
|
||||
size: (f32, f32),
|
||||
depth: f32,
|
||||
) -> Vec<VertexTypeContainer> {
|
||||
vec![self.verts.clone()]
|
||||
}
|
||||
|
||||
fn update<T>(&self, delta_time: f32) -> Vec<TrUIEvent<T>> {
|
||||
Vec::new()
|
||||
}
|
||||
|
||||
fn notify<Y, T>(&self, tr_event: Vec<TrEvent<Y>>, ui_events: Vec<TrUIEvent<T>>) -> Vec<TrUIEvent<T>> {
|
||||
Vec::new()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user