home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!hri.com!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!uc.msc.edu!shamash!runyon.cim.cdc.com!pbd
- From: pbd@runyon.cim.cdc.com (Paul Dokas x4629)
- Newsgroups: comp.sys.sun.misc
- Subject: Clipping with XGL
- Message-ID: <49519@shamash.cdc.com>
- Date: 11 Nov 92 19:58:25 GMT
- Sender: usenet@shamash.cdc.com
- Organization: ICEM Systems, Inc.
- Lines: 64
-
- Does anyone know how to clip to a non-rectangular region with XGL?
- The best that I can figure out is that XGL only allows 2D clipping
- to rectangular areas, not arbitrary regions.
-
- For example, I want the window to look like this:
-
- _______________________________________________________
- | |
- | |
- | geometry here |
- | |
- | |
- | --------------------
- | | |
- | | |
- | | text here |
- | | |
- | | |
- | --------------------
- | |
- | |
- | |
- | |
- | |
- -------------------------------------------------------
-
- therefore the masking region would look like a fat C:
-
- _______________________________________________________
- | |
- | |
- | |
- | |
- | |
- | --------------------
- | |
- | |
- | |
- | |
- | |
- | --------------------
- | |
- | |
- | |
- | |
- | |
- -------------------------------------------------------
-
- Unfortunately, the best that XGL seems to be able to do is use
- rectangular clipping areas :-(
-
- BTW, I can't solve this problem by drawing the geometry and then
- drawing the text. I just takes too long. Also, I need to handle
- rubberbanding that doesn't cross the text area at all.
-
- What I wouldn't give for overlay planes.
-
- My machine is a SS2 with a GS card, SunOS 4.1.3, OW3.0, etc...
-
- --
- #include <std.disclaimer>
- #define FULL_NAME "Paul Dokas"
- #define EMAIL "pbd@runyon.cim.cdc.com"
- /* oh what the hell */
-