Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!mcnc!uvaarpa!murdoch!davinci.acc.Virginia.EDU!tmb From: tmb@davinci.acc.Virginia.EDU (Thomas M. Breeden) Newsgroups: comp.sys.amiga.programmer Subject: Re: Sharing layers.library with intuition Message-ID: <1991Jan16.162030.7783@murdoch.acc.Virginia.EDU> Date: 16 Jan 91 16:20:30 GMT References: <1991Jan11.001055.2055@mintaka.lcs.mit.edu> <17398@cbmvax.commodore.com> Sender: news@murdoch.acc.Virginia.EDU Organization: Image Processing Cntr, Univ of Va. Lines: 40 Ireallyam: tmb In article <17398@cbmvax.commodore.com> peter@cbmvax.commodore.com (Peter Cherna) writes: >In article <1991Jan11.001055.2055@mintaka.lcs.mit.edu> rjc@wookumz.ai.mit.edu (Ray Cromwell) writes: >> >> Ok, so what is the proper way to 'share' a screen with intuition? > >You cannot perform direct layers operations in an Intuition screen, >in general. Basically, you have two choices: > >1. Create your own viewport (graphics.library equivalent of the >visible-slice of a screen), and do your own layers operations on that. > >2. Create borderless Intuition windows, and use Intuition and graphics > rendering in those. You can use RMBTRAP to catch menu buttons. > >I will warn you that you are headed into very tricky territory, and >you'll want to be very careful about deadlocks and race conditions. > >-- > Peter Cherna, Software Engineer, Commodore-Amiga, Inc. > {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com A related question: Is it in the same tricky territory to attempt to add a clipping rectangle within an Intuition window? The "Layers library" section of RKM is not yet real clear to me on clipping, but could you AndRectangle (func name?) to something extracted from the Intuition window (screen?) structure? Can you avoid doing it between BeginRefresh and AndRefresh as warned by RKM? Tom Breeden tmb@virginia.EDU -->> Internet tmb@virginia -->> BITNET - Tom Breeden tmb@virginia.EDU -> Internet tmb@virginia -> BITNET