use canvas instead of txt

master
histausse 3 years ago
parent 3ac7f46f08
commit 7d8da021b8
Signed by: histausse
GPG Key ID: 67486F107F62E9E9

@ -104,6 +104,18 @@ impl Universe {
pub fn render(&self) -> String {
self.to_string()
}
pub fn width(&self) -> u32 {
self.width
}
pub fn height(&self) -> u32 {
self.height
}
pub fn cells(&self) -> *const Cell {
self.cells.as_ptr()
}
}
impl fmt::Display for Universe {

2
www

@ -1 +1 @@
Subproject commit bef70f448235c03bffd69694f5455a14b4b150aa
Subproject commit e36fb207617a80c2aeb528d973a57c25407d77b6
Loading…
Cancel
Save