&mut self.canvas
}
+ #[allow(dead_code)]
pub fn viewport(&self) -> (u16, u16) {
let vp = self.canvas.viewport();
(vp.width() as u16, vp.height() as u16)
self.canvas.copy(texture, src, dst).unwrap();
}
+ #[allow(dead_code)]
pub fn blit_ex<R1, R2, P>(&mut self,
texture: &Texture,
src: R1,
self.canvas.aa_circle(pos.0, pos.1, rad, col.into()).unwrap();
}
+ #[allow(dead_code)]
pub fn ellipse<P, R, C>(&self, pos: P, rad: R, col: C)
where P: Into<(i16, i16)>,
R: Into<(i16, i16)>,