Article View: rec.games.programmer
Article #1507Using XLIB04: Clipping?
From: Tom Boutell
Date: Sat, 12 Dec 1992 19:51
Date: Sat, 12 Dec 1992 19:51
18 lines
1167 bytes
1167 bytes
Well, I've just moved the game I'm working on to Xlib04. Works great, with one notable exception: clipping. Has anybody used the x_clip_rect (maybe it's x_set_clip_rect) function with any success? I tried peeking at the external variables that hold the clipping box, and they're set, but none of the lines I draw get clipped. ): This is a serious problem as it makes it put-near impossible to use an otherwise nifty library for the project. (I suppose I could blit the whole blasted screen on every repaint, but I don't need to and I'd rather avoid it; my dirty-rectangle-ish approach works very nicely, particularly for a port of a vector graphics-style game. Clipping would solve the problem quite nicely.) -T -- Tom Boutell, boutell@cshl.org Clausthaler is the best non - alcoholic beer in the known universe.
Technical Details
Message-ID:
<Bz5wI0.546@phage.cshl.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!jvnc.net!phage!boutellShow Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!yale.edu!jvnc.net!phage!boutell From: boutell@isis.cshl.org (Tom Boutell) Subject: Using XLIB04: Clipping? Message-ID: <Bz5wI0.546@phage.cshl.org> Sender: news@phage.cshl.org Organization: Cold Spring Harbor Labs Date: Sat, 12 Dec 1992 19:51:35 GMT Lines: 18