compiles, slowly moving everything over to spec stuff

This commit is contained in:
2020-08-09 23:39:03 -07:00
parent c52bdc1441
commit ccbd21d90b
5 changed files with 104 additions and 95 deletions

View File

@@ -39,6 +39,14 @@ impl CanvasFrame {
window_size: window_size,
}
}
/// Push this drawable onto the back of the accumulator
pub fn add(&mut self, drawable: Vec<VertexTypeContainer>) {
for i in drawable{
self.map.push(i);
}
}
/// Push this drawable onto the back of the accumulator
pub fn draw(&mut self, drawable: &dyn Drawable) {
for i in drawable.get(self.window_size) {