compiles, slowly moving everything over to spec stuff
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user