mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-13 23:26:41 +01:00
remove last color conversion from render loop
This commit is contained in:
parent
a31de6e819
commit
7ad574cf2a
9 changed files with 122 additions and 47 deletions
|
|
@ -55,12 +55,12 @@ try_from_expr!(<'a, E>: Bsp<RenderBox<'a, E>, RenderBox<'a, E>>: |state, iter| {
|
|||
}
|
||||
});
|
||||
impl<A, B> Bsp<A, B> {
|
||||
pub fn n (a: A, b: B) -> Self { Self(North, a, b) }
|
||||
pub fn s (a: A, b: B) -> Self { Self(South, a, b) }
|
||||
pub fn e (a: A, b: B) -> Self { Self(East, a, b) }
|
||||
pub fn w (a: A, b: B) -> Self { Self(West, a, b) }
|
||||
pub fn a (a: A, b: B) -> Self { Self(Above, a, b) }
|
||||
pub fn b (a: A, b: B) -> Self { Self(Below, a, b) }
|
||||
#[inline] pub fn n (a: A, b: B) -> Self { Self(North, a, b) }
|
||||
#[inline] pub fn s (a: A, b: B) -> Self { Self(South, a, b) }
|
||||
#[inline] pub fn e (a: A, b: B) -> Self { Self(East, a, b) }
|
||||
#[inline] pub fn w (a: A, b: B) -> Self { Self(West, a, b) }
|
||||
#[inline] pub fn a (a: A, b: B) -> Self { Self(Above, a, b) }
|
||||
#[inline] pub fn b (a: A, b: B) -> Self { Self(Below, a, b) }
|
||||
}
|
||||
pub trait BspAreas<E: Output, A: Content<E>, B: Content<E>> {
|
||||
fn direction (&self) -> Direction;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue