Skip to content
Discussion options

You must be logged in to vote

My apologies, I thought you had SpriteVrams for some reason.

You should be able to use 'static references to sprites. The sprite method you're using gives a Sprite with the static lifetime: https://docs.rs/agb/latest/agb/display/object/struct.Tag.html#method.sprite

You don't want to make copies of the Sprite data itself, which is why we don't let it happen.

Object::new accepts Into<SpriteVram>, which includes SpriteVram, but that's an aside.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Mambouna
Comment options

@Mambouna
Comment options

@corwinkuiper
Comment options

Answer selected by Mambouna
@corwinkuiper
Comment options

@Mambouna
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants