event system needs some thinkin

This commit is contained in:
2020-08-11 00:09:58 -07:00
parent 9eed836083
commit 2e33c9c75e
9 changed files with 202 additions and 157 deletions

View File

@@ -137,7 +137,13 @@ impl Text {
}
impl Drawable for Text {
fn get(&self, window_size: (u32, u32)) -> Vec<VertexTypeContainer> {
fn get(&self,
window_size: (u32, u32),
position: (f32, f32),
rotation: f32,
size: (f32, f32),
depth: f32,
) -> Vec<VertexTypeContainer> {
vec![self.verts.clone()]
}
}