Cleanup GPU code more

This commit is contained in:
2023-04-26 20:42:44 +02:00
parent 7845ac2034
commit f566383467
4 changed files with 28 additions and 36 deletions

View File

@@ -21,6 +21,8 @@ namespace JabyEngine {
static constexpr size_t Height = 240;
#endif
static uint8_t current_id;
static void enable() {
GPU_IO::GP1 = GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::On);
}
@@ -28,10 +30,6 @@ namespace JabyEngine {
static void disable() {
GPU_IO::GP1 = GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::Off);
}
};
struct Screen {
static uint8_t CurrentDisplayAreaID;
static void set_offset(uint16_t x, uint16_t y);
};