mirror of https://github.com/Ivsucram/ivsemu.git
Marcus Vinicius de Carvalho
03b943eeca
The main contribution of this commit is changing the display rendering method. Before, I was asking the canvas to render rectangles, which represented scaled pixesl. Now I am using a texture, that is automatically stretched to the whole canvas by SDL. The display coding is running faster, but there is still some ways to improve rendering. The main one is to change the cpu display buffer from a multi-dimensional array of booleans (indincating pixels toggling) to a single dimension pixel-color array. In the pixel-color array, 4u8 samples represent a single pixel on screen (R: u8, G: u8, B: u8, A:u8). This refactor will force the CPU to control have knowledge of which color will be printed on the display, letting the display being agnostic to implementation details. This refactor will be added as an issue to the github project kanban and further analyzed. Besides that, other changes to the codebase were mainly in terms of code organization. |
||
---|---|---|
src | ||
.gitignore | ||
Cargo.toml | ||
LICENSE |