blob: ae6e32506e3da754644326b97de8c758cb8b1a91 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
mod text;
use ggez::graphics::{self, Color};
use ggez::Context;
pub struct Renderer<'a> {
pub context: &'a mut Context,
}
impl Renderer<'_> {
pub fn flush(&mut self) {
graphics::draw_queued_text(
self.context,
graphics::DrawParam::default(),
Default::default(),
graphics::FilterMode::Linear,
)
.expect("Draw text");
}
}
impl iced::Renderer for Renderer<'_> {
type Color = Color;
fn explain(&mut self, layout: &iced::Layout<'_>, color: Color) {}
}
|