Change to double buffering and SPRT_16

This commit is contained in:
2023-12-20 15:12:21 -05:00
parent d7fce900f9
commit 4bf87bc85f
5 changed files with 23 additions and 13 deletions

View File

@@ -37,6 +37,14 @@ namespace JabyEngine {
static void set_offset(uint16_t x, uint16_t y);
};
static uint32_t update_id() {
return Display::current_id;
}
static uint32_t render_id() {
return Display::current_id ^ 1;
}
namespace internal {
void render(const uint32_t* data, size_t words);
void render_dma(const uint32_t* data);