22 April 2017, 10:31 | #1 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,539
|
How do you get the Handle of an existing Shape?
Say if I've already set the HandleX or HandleY of a shape, how do I later find out what it is?
|
22 April 2017, 11:00 | #2 |
Registered User
Join Date: Dec 2013
Location: Auckland
Posts: 3,539
|
Never mind, I worked it out. Code below is for "nudging" the handle of an existing shape by a specific amount. Shape info from http://www.amigacoding.com/index.php...ct_types#shape
Code:
NEWTYPE .shape ;size=32 _pixwidth.w ;00: pixel width of shape null=noshape _pixheight.w ;02: pixel height of shape _depth.w ;04: depth, in bitplanes, of shape _ebwidth.w ;06: even byte width of shape _bltsize.w ;08: BLTSIZE of shape _xhandle.w ;10: horizontal handle of shape _yhandle.w ;12: vertical handle of shape _data.l ;14: pointer to graphic data - Plane1, Plane2... _cookie.l ;18: pointer to one bitplane cookiecut _onebpmem.w ;22: memory taken by one bitplane of shape _onebpmemx.w ;24: memory taken by one bitplane of shape, ; plus an extra word per bitplane per ; vertical pixel _allbpmem.w ;26: memory taken by entire shape. _allbpmemx.w ;28: memory taken by entire shape, plus an ; extra word per bitplane per vertical ; pixel _pad.b[2] ;30: End NEWTYPE Statement NudgeHandle{id,x,y} *s.shape=Addr Shape(id) Handle id,*s\_xhandle + x,*s\_yhandle + y End Statement Last edited by earok; 22 April 2017 at 11:36. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Would the Amiga be able to handle Angry Birds? | Steve | Retrogaming General Discussion | 129 | 26 May 2023 17:40 |
[Found: Numerix] Obscure PD Shape Fitting Game | manic23 | Looking for a game name ? | 19 | 30 March 2019 18:16 |
Collective order: X500 Plus next gen case inspired to Amiga 500's shape | Omolungo | News | 10 | 15 February 2013 23:59 |
Amiga Game Tools-Shape Grabber | Joe Maroni | request.Apps | 0 | 22 October 2008 20:54 |
wtb: amiga 3000 desktop in great shape | james 23703 | MarketPlace | 0 | 25 January 2006 02:26 |
|
|