I'd like to set a window rectangle such that the parts of sprites that are outside of it. This is supported by underlying graphics library, I'm just not sure how it should all tie together.
- Is it possible to affect the clipping window of the sprite from outside the
Sprite.draw() function?
- Is this a per-sprite option or per-scene? per-scene works for my use case but per-sprite more flexible.
sprite.set_clip(Rectangle::new())?
- Another way I've missed?
Links:
I'd like to set a window rectangle such that the parts of sprites that are outside of it. This is supported by underlying graphics library, I'm just not sure how it should all tie together.
Sprite.draw()function?sprite.set_clip(Rectangle::new())?Links:
default_draw_state().