Re: [cc65] tgi_sprite and friends

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-11-06 21:52:22
Hi!

On Tue, Nov 06, 2012 at 09:08:57AM +0200, Karri Kaksonen wrote:
> Perhaps a good next step would be
> to create two new primitives for displaying them.

Just out of curiosity, which platforms do have hardware sprites?

C64, C128, Atari, CBM 510, Lynx. Anything else?

> A more portable function could be:
>
> tgi_spritexy(posx, posy, sprite);
>
> The posx, posy is where to draw the action point of a sprite. If the
> graphics is a cursor array the action point
> is the pixel at the arrow point. If it is a crosshair it is in the center.

There are a few problems with this. First, the platforms with a VIC (C64,
C128, CBM 510) do have specific slots for up to 8 sprites. On the C64, the
mouse driver uses the first slot for the mouse pointer sprite if the default
mouse pointer routines are used. Who do you think should manage these slots?
Is this task up to the TGI kernel? How does this work on the Lynx?

Then there is the action point. While I think it's a good concept, it's rather
uncommon in the CBM world. And of no real use with the exception of mouse
cursors.

Any thoughts on this?

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Nov 6 21:52:28 2012

This archive was generated by hypermail 2.1.8 : 2012-11-06 21:52:32 CET