mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
wip: big flat pt.5: implement transforms with macro
This commit is contained in:
parent
34e731f111
commit
18b2d8c48b
8 changed files with 387 additions and 558 deletions
|
|
@ -27,7 +27,7 @@ impl<E: Engine, A: Render<E>, B: Render<E>> Render<E> for Split<E, A, B> {
|
|||
Ok(Some(to))
|
||||
}
|
||||
fn render (&self, to: &mut E::Output) -> Usually<()> {
|
||||
let (a, b) = self.1.split_fixed(self.2, self.3);
|
||||
let (a, b) = self.1.split_fixed(to.area(), self.2);
|
||||
Ok(if self.0 {
|
||||
to.render_in(a.into(), &self.4)?;
|
||||
to.render_in(b.into(), &self.3)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue