-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
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:
- Sprite draw code. that appears to hard code
default_draw_state(). - (Piston examples demo](https://github.com/PistonDevelopers/piston-examples/blob/master/src/draw_state.rs) with raw graphics.
Metadata
Metadata
Assignees
Labels
No labels