mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
add docs for priority
This commit is contained in:
parent
90952b3de5
commit
7a6043839e
|
@ -159,6 +159,10 @@ pub fn busy_wait_for_vblank() {
|
|||
while VCOUNT.get() < 160 {}
|
||||
}
|
||||
|
||||
/// The priority of a background layer or object. A higher priority should be
|
||||
/// thought of as rendering first, and so is behind that of a lower priority.
|
||||
/// For an equal priority background layer and object, the background has a
|
||||
/// higher priority and therefore is behind the object.
|
||||
#[bitsize(2)]
|
||||
#[derive(FromBits, PartialEq, Eq, Clone, Copy, Debug, Default)]
|
||||
pub enum Priority {
|
||||
|
|
Loading…
Reference in a new issue