Struct gba_dvd::sprite::Obj [−][src]
pub struct Obj {
pub attr0: ObjAttr0,
pub attr1: ObjAttr1,
pub attr2: ObjAttr2,
pub bounding_box: BoundingBox,
}
Fields
attr0: ObjAttr0
GBA obj attributes
attr1: ObjAttr1
attr2: ObjAttr2
bounding_box: BoundingBox
Bounding box used for collision
Implementations
Set sprite dimensions
Set sprite size
Set sprite shape
Set palbank index Valid sizes: 0..=15
Set beginning tile index for sprite Valid sizes: 0..=1023=Tile Number ????
Copy all 3 attributes to ind
Obj slot in OAM
Auto Trait Implementations
impl RefUnwindSafe for Obj
impl Send for Obj
impl Sync for Obj
impl Unpin for Obj
impl UnwindSafe for Obj
Blanket Implementations
pub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
pub fn from(t: T) -> T
pub fn from(t: T) -> T
Performs the conversion.
pub fn into(self) -> U
pub fn into(self) -> U
Performs the conversion.