I'm finding I want to create clips for different entities at different layers in my game. I don't want the entities to have to know where they are in screen space but they need to be able to clip to their dimensions. It would be nice to be able to say
Code:
g.pushWorldClip();
g.setWorldClip(0, 0, this.width, this.height);
g.drawStuff();
g.clearWorldClip();
g.popWorldClip();
Also while we're on the topic of clipping, is it possible to clip with a circle or other shape? That would be a nice feature, too.
_________________
My website about game development
http://anotherearlymorning.com