DragASprite_Start
Richard van der Hoff
richard at rvanderhoff.org.uk
Wed Jul 30 12:49:12 BST 2003
Tony van der Hoff <tony at mk-net.demon.co.uk> wrote:
> On 28 Jul 2003, in message
<7f4bdc184c%Marco at dionin.esw-heim.tu-clausthal.de>,
> Marco Baye <Marco.Baye at tu-clausthal.de> wrote:
>
> > Hi!
> >
> > PRM 3-300 says about DragASprite_Start:
> >
> > On entry
> > R0 = flags
> > R1 = sprite area holding sprite:
> > 0 system sprite area
> > 1 wimp sprite area
> > Other address of sprite area
> >
> > When reading the OSLib function's StrongHelp page, I realized there
> > are no constants defined for accessing the system or wimp sprite
> > area. Any chance of adding
> >
> > #define dragasprite_SYSTEM_SPRITE_AREA (osspriteop_area const*) 0
> > #define dragasprite_WIMP_SPRITE_AREA (osspriteop_area const*) 1
> >
> > to "oslib/dragasprite.h" ?
> >
> [snip]
>
> Yes, that seems a reasonable thing to do. I'll put it on the list. Thanks.
>
Hmm; I only have a rather old version of oslib to hand, but in it I have
#define wimpspriteop_AREA ((osspriteop_area *) 0x1u)
(that's in wimpspriteop.h), though I can't find one for the system sprite
area.
Anyway, the point is, those constants aren't limited to use with
dragasprite, as they apply to almost every sprite operation under the wimp,
so dragasprite.h is the wrong place for them, IMHO.
More information about the oslib-user
mailing list