render: hide graphics API behind traits
This commit is contained in:
parent
d650b3375d
commit
24e410a5b5
40 changed files with 601 additions and 246 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue