🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #136

Re: Clicking on Irregular Shapes

#136
From: Rob Peck
Date: Wed, 21 Jun 1989 21:43
23 lines
1639 bytes
In article <7110@cbmvax.UUCP> steveb@cbmvax.UUCP (Steve Beats) writes:
>In article <42700015@m.cs.uiuc.edu> schwager@m.cs.uiuc.edu writes:
>>
>>Given an irregularly shaped object on a Screen, how can one tell if
>>the mouse button has been pressed inside of it?  I don't want a box all
>>around or inside it; I want the object and exactly the object.  
>
>You were on the right track with the BOBs idea in the first place.  Although
.... more deleted...

I had this same thought, but it was pointed out to me that starting with
1.2, and documented in the 1.2 enhancer docs (though I dont have em here),
there is supposed to be something extra attached to a gadget structure
that is the equivalent of the object collision mask in Bobs.  In other
words, since 1.2, masked gadgets HAVE been available.  I have not tried
it, nor have I actually looked at the documentation, but I have seen this
facility used in an actual product, on a map of Italy, "to boot". (grin)

Look it up, perhaps in intuition/intuition.h under the Gadget structure
description, or find the 1.2 enhancer docs.  "They" tell me it is
there.  (There's that wonderful "they" again).

Rob Peck
Technical Details
Message-ID: <7007@ardent.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!ames!vsi1!ubvax!ardent!ez!rap
References: <42700015@m.cs.uiuc.edu> <7110@cbmvax.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!ames!vsi1!ubvax!ardent!ez!rap
From: rap@ez.ardent.com (Rob Peck)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Clicking on Irregular Shapes
Message-ID: <7007@ardent.UUCP>
Date: 21 Jun 89 21:43:11 GMT
References: <42700015@m.cs.uiuc.edu> <7110@cbmvax.UUCP>
Sender: news@ardent.UUCP
Reply-To: rap@ez.ardent.com (Rob Peck)
Organization: Ardent Computer Corp., Sunnyvale, CA
Lines: 23