mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41: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 {
|
impl ObjectAttribute {
|
||||||
fn new() -> Self {
|
fn new() -> Self {
|
||||||
ObjectAttribute {
|
let mut o = ObjectAttribute {
|
||||||
a0: 0,
|
a0: 0,
|
||||||
a1: 0,
|
a1: 0,
|
||||||
a2: 0,
|
a2: 0,
|
||||||
}
|
};
|
||||||
|
o.set_mode(Mode::Hidden);
|
||||||
|
o
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ObjectControl {
|
impl ObjectControl {
|
||||||
pub(crate) fn new() -> Self {
|
pub(crate) fn new() -> Self {
|
||||||
let mut o = ObjectAttribute::new();
|
let o = ObjectAttribute::new();
|
||||||
o.set_mode(Mode::Hidden);
|
|
||||||
for index in 0..128 {
|
for index in 0..128 {
|
||||||
unsafe { o.commit(index) };
|
unsafe { o.commit(index) };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue