diff --git a/agb/src/display/object.rs b/agb/src/display/object.rs index f13bc4f4..0ab50abe 100644 --- a/agb/src/display/object.rs +++ b/agb/src/display/object.rs @@ -184,7 +184,7 @@ impl ObjectControl { DISPLAY_CONTROL.set(disp); } - pub fn get_object(&mut self) -> ObjectStandard { + pub fn get_object_standard(&mut self) -> ObjectStandard { let id = self.object_count; self.object_count += 1; assert!(id < 128, "object id must be less than 128"); @@ -194,6 +194,17 @@ impl ObjectControl { } } + pub fn get_object_affine(&mut self) -> ObjectAffine { + let id = self.object_count; + self.object_count += 1; + assert!(id < 128, "object id must be less than 128"); + ObjectAffine { + attributes: ObjectAttribute::new(), + id, + aff_id: None, + } + } + pub fn get_affine(&mut self) -> AffineMatrix { let id = self.affine_count; self.affine_count += 1;