Modularize iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2019-10-05 19:22:51 +02:00
parent ae56edc8cc
commit 5a5ca34b5f
11 changed files with 394 additions and 353 deletions

View file

@ -0,0 +1,16 @@
use crate::{Primitive, Renderer};
use iced_native::{image, Image, Layout, Node, Style};
impl image::Renderer<&str> for Renderer {
fn node(&mut self, _image: &Image<&str>) -> Node {
Node::new(Style::default())
}
fn draw(
&mut self,
_image: &Image<&str>,
_layout: Layout<'_>,
) -> Self::Primitive {
Primitive::None
}
}