Port GPU IO

This commit is contained in:
Jaby Blubb
2023-09-17 22:14:48 +02:00
parent a1ed1f28e8
commit e2c8283076
10 changed files with 100 additions and 98 deletions

View File

@@ -9,7 +9,7 @@ namespace JabyEngine {
struct TexPage : public internal::LinkedElementCreator<TexPage> {
static constexpr bool is_render_primitive = true;
GPU_IO::GP0_t value;
struct GPU_IO::GP0 value;
constexpr TexPage() = default;
constexpr TexPage(const PositionU16& tex_pos, TexturePageColor tex_color, SemiTransparency transparency = SemiTransparency::B_Half_add_F_Half, bool dither = false) : value{

View File

@@ -28,11 +28,11 @@ namespace JabyEngine {
static uint8_t current_id;
static void enable() {
GPU_IO::GP1 = GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::On);
GPU_IO::GP1.write(GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::On));
}
static void disable() {
GPU_IO::GP1 = GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::Off);
GPU_IO::GP1.write(GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::Off));
}
static void set_offset(uint16_t x, uint16_t y);