Slick Forums

Discuss the Slick 2D Library
It is currently Wed Nov 21, 2018 12:12 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: RFE: Push/Pop World Clip
PostPosted: Sun May 23, 2010 10:27 am 
Offline
Oldbie

Joined: Tue Jun 17, 2008 5:11 pm
Posts: 336
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group