Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: Layers Lib./Clipping Message-ID: <8712010903.AA22789@cory.Berkeley.EDU> Date: Tue, 1-Dec-87 04:03:54 EST Article-I.D.: cory.8712010903.AA22789 Posted: Tue Dec 1 04:03:54 1987 Date-Received: Fri, 4-Dec-87 06:19:39 EST Sender: usenet@ucbvax.BERKELEY.EDU Lines: 19 > I am about to deal with the issue of clipping in the > program I am working on, and would like some advice on how > to go about it. I have been told that by using the Layers > Library functions I can do this, but my reading has neither > confirmed nor denied this. > > By clipping I mean that I would like to be able to pass the > drawing functions lines whose endpoints may not be within the All windows created with OpenWindow() automatically use the layers library and clip. The rastport in the screen structure does not use the layers library and thus does not clip. Usually one opens a custom screen, then a backdrop window, rendering into the window. The simple drawing functions will clip completely, but I have found that the more complex ones can't handle x/y values greater than about 4096, so you still need to be a little careful. -Matt