Skip to content

Add clipping window to sprite #116

@xaviershay

Description

@xaviershay

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.

  1. Is it possible to affect the clipping window of the sprite from outside the Sprite.draw() function?
  2. 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())?
  3. Another way I've missed?

Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions