Create a frame rate

This commit is contained in:
2023-04-26 22:06:47 +02:00
parent f566383467
commit a2c735f158
7 changed files with 79 additions and 8 deletions

View File

@@ -24,6 +24,8 @@ namespace JabyEngine {
static void exchange_buffer_and_display();
};
void wait_vsync(uint8_t syncs);
static void set_draw_area(uint16_t x, uint16_t y) {
GPU_IO::GP0 = GPU_IO::Command::DrawAreaTopLeft(x, y);
GPU_IO::GP0 = GPU_IO::Command::DrawAreaBottomRight((x + Display::Width), (y + Display::Height));