From: | |
Date: | 01 Feb 2001 at 22:57:27 |
Subject: | Re: Clipping graphics output |
Hello Sensei,
>> There's no system friendly way to attach a layer to an offscreen
>> rastport. But in practise it's quite simple.
> Could you explain it a bit more clearly? Why using layers.library
> functions in normal program isn't system friendly? [...]
You can use layers.library in your private program but you may not mix
this with intuition. This note is in the RKM.
>> But tt's not something I
>> do, as it is not really a documented feature of the OS.
> Layers.library is documented very well I think... I can even create my
> own window system (instead of Intuition Windows) using this functions,
> so why you wrote that it's not system friendly?
There's a difference between using layers.library for your own window
system, and using it to fake layer structures normally created by
intuition (using layers.library).
When intuition allocates a layer it fills out some of the private fields
of the layer structure for various info (and uses the flag field etc.).
So when graphics.library is handed a rastport with an attached layer
structure it naturally assumes that the layer structure was allocated
through intuition.library, thus that the conventions introduced by this
library are present -- conventions which are *not* documented in the
layers.library autodoc nor anywhere else.
Kind regards Allan
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/981065670/
---------------------------------------------------------------------_->