Skip to content

Add a way to read info about bitmaps and sprites #335

@stevesims

Description

@stevesims

We have VDP variables to get some minimal information on the state of the bitmap and sprite system, but right now this is very minimal.

Specifically there are variables for the currently selected (16-bit) bitmap ID, the number of bitmaps used, a buffer ID for an affine transform being applied to bitmap plots (if that's been set), the current sprite ID, and the number of sprites active.

What we are missing here is info on the bitmaps and/or sprites.

We should add variables to allow for reading more info on the currently selected bitmap, and the currently selected sprite (including info on the sprite's current bitmap).

This would allow ways to get bitmap sizes and format, and additional info for sprites like x, y coordinates, whether it's a hardware sprite, and the plot mode being used.

Getting access to bitmap info on the VDP would allow for buffered command sequences to read that info and use it - for example one could define a buffered command to "flip selected bitmap vertically" which could compose a suitable version of buffered command 24 to do that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions