mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Merge pull request #54 from corwinkuiper/object-hidden-by-default
Object hidden by default
This commit is contained in:
commit
aa10a893f4
|
@ -238,18 +238,19 @@ impl AffineMatrix<'_> {
|
|||
|
||||
impl ObjectAttribute {
|
||||
fn new() -> Self {
|
||||
ObjectAttribute {
|
||||
let mut o = ObjectAttribute {
|
||||
a0: 0,
|
||||
a1: 0,
|
||||
a2: 0,
|
||||
}
|
||||
};
|
||||
o.set_mode(Mode::Hidden);
|
||||
o
|
||||
}
|
||||
}
|
||||
|
||||
impl ObjectControl {
|
||||
pub(crate) fn new() -> Self {
|
||||
let mut o = ObjectAttribute::new();
|
||||
o.set_mode(Mode::Hidden);
|
||||
let o = ObjectAttribute::new();
|
||||
for index in 0..128 {
|
||||
unsafe { o.commit(index) };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue