1
0
Fork 0
forked from wry/wry

render: remove clear OP

This commit is contained in:
Julian Orth 2023-10-29 22:53:45 +01:00
parent e0ed29038e
commit 1500b10de3
4 changed files with 18 additions and 38 deletions

View file

@ -2,8 +2,7 @@ use {
crate::{
format::Format,
gfx_api::{
AbsoluteRect, BufferPoint, BufferPoints, Clear, CopyTexture, FillRect, GfxApiOpt,
GfxTexture,
AbsoluteRect, BufferPoint, BufferPoints, CopyTexture, FillRect, GfxApiOpt, GfxTexture,
},
rect::Rect,
scale::Scale,
@ -62,10 +61,6 @@ impl RendererBase<'_> {
rect
}
pub fn clear(&mut self, c: &Color) {
self.ops.push(GfxApiOpt::Clear(Clear { color: *c }))
}
pub fn fill_boxes(&mut self, boxes: &[Rect], color: &Color) {
self.fill_boxes2(boxes, color, 0, 0);
}