AgonConsole8 / agon-vdp

Official Firmware for the Agon Console8: ESP32 VDP
MIT License
38 stars 17 forks source link

Enhanced sprites #25

Open stevesims opened 1 year ago

stevesims commented 1 year ago

Our sprite commands currently support a fairly basic command set. It would be good to add some extensions.

Ideas for enhanced features include supporting setting a scale factor for the sprite, rotation and mirroring options.

NB none of these features are currently supported by the underlying vdp-gl.

stevesims commented 3 months ago

bitmap plotting now supports applying an affine transform when plotting a bitmap

the nature of how this works, however, is inherently slower than regular bitmap plotting.

sprites in contrast need to be drawn as fast as practical. the implication of this is that it may be best to not support real-time transforms on sprites.

it is still however desirable to allow for sprites to use transformed versions of bitmaps. the solution therefore is to allow for new bitmaps to be created from existing bitmaps by applying a transform to them. bitmaps can therefore be pre-transformed for use within a sprite