mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
add blend to distributor
This commit is contained in:
parent
41ccd56919
commit
cae71ff249
|
@ -4,7 +4,7 @@ use bitflags::bitflags;
|
||||||
use modular_bitfield::BitfieldSpecifier;
|
use modular_bitfield::BitfieldSpecifier;
|
||||||
use video::Video;
|
use video::Video;
|
||||||
|
|
||||||
use self::{object::ObjectController, window::Windows};
|
use self::{blend::Blend, object::ObjectController, window::Windows};
|
||||||
|
|
||||||
/// Graphics mode 3. Bitmap mode that provides a 16-bit colour framebuffer.
|
/// Graphics mode 3. Bitmap mode that provides a 16-bit colour framebuffer.
|
||||||
pub mod bitmap3;
|
pub mod bitmap3;
|
||||||
|
@ -71,6 +71,7 @@ pub struct Display {
|
||||||
pub video: Video,
|
pub video: Video,
|
||||||
pub object: ObjectDistribution,
|
pub object: ObjectDistribution,
|
||||||
pub window: WindowDist,
|
pub window: WindowDist,
|
||||||
|
pub blend: BlendDist,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
|
@ -91,12 +92,19 @@ impl WindowDist {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[non_exhaustive]
|
||||||
|
pub struct BlendDist;
|
||||||
|
|
||||||
|
impl BlendDist {
|
||||||
|
pub fn get(&mut self) -> Blend {
|
||||||
|
Blend::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Display {
|
impl Display {
|
||||||
pub(crate) const unsafe fn new() -> Self {
|
pub(crate) const unsafe fn new() -> Self {
|
||||||
Display {
|
Display {
|
||||||
video: Video {},
|
blend: BlendDist,
|
||||||
object: ObjectDistribution {},
|
|
||||||
window: WindowDist {},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue