1
0
Fork 0
forked from wry/wry

render: hide graphics API behind traits

This commit is contained in:
Julian Orth 2023-10-22 20:00:32 +02:00
parent d650b3375d
commit 24e410a5b5
40 changed files with 601 additions and 246 deletions

View file

@ -3,8 +3,8 @@ use {
format::Format,
gfx_api::{
AbsoluteRect, BufferPoint, BufferPoints, Clear, CopyTexture, FillRect, GfxApiOpt,
GfxTexture,
},
gfx_apis::gl::Texture,
rect::Rect,
scale::Scale,
theme::Color,
@ -120,7 +120,7 @@ impl RendererBase<'_> {
pub fn render_texture(
&mut self,
texture: &Rc<Texture>,
texture: &Rc<dyn GfxTexture>,
x: i32,
y: i32,
format: &'static Format,