Apply HiDPI to text, images, and clip primitives

Quads are a bit trickier to handle. We may need to change the shaders a
bit.
This commit is contained in:
Héctor Ramón Jiménez 2019-11-05 05:26:20 +01:00
parent 0157121038
commit db716b3bdf
6 changed files with 112 additions and 58 deletions

View file

@ -22,8 +22,15 @@ pub trait Target {
window: &W,
width: u16,
height: u16,
dpi: f32,
renderer: &Self::Renderer,
) -> Self;
fn resize(&mut self, width: u16, height: u16, renderer: &Self::Renderer);
fn resize(
&mut self,
width: u16,
height: u16,
dpi: f32,
renderer: &Self::Renderer,
);
}