AgonConsole8 / agon-vdp

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

Support multiple different graphics contexts #200

Closed stevesims closed 3 months ago

stevesims commented 4 months ago

Allow the support of multiple different graphics contexts.

Within a "context" all graphics related state is stored. This includes the current graphics and text viewports, selected colours, selected fonts, and cursor-related information.

Swapping to a different context will allow for a different set of graphics state to be used. Thus one can have multiple text viewports, for instance, each with their own current font.

Information on the commands to use this new feature will be added here soon.

TODO:

This PR builds on the multi-font work of #198 and includes all of that code