Update GPU IOs (What a pain)
This commit is contained in:
@@ -8,23 +8,23 @@ namespace JabyEngine {
|
||||
struct TexPage : public internal::LinkedElementCreator<TexPage> {
|
||||
static constexpr bool is_render_primitive = true;
|
||||
|
||||
struct GPU_IO::GP0 value;
|
||||
GPU_IO_Values::GP0 value;
|
||||
|
||||
static constexpr TexPage create(const PositionU16& tex_pos, TextureColorMode tex_color, SemiTransparency transparency = SemiTransparency::B_Half_add_F_Half, bool dither = false) {
|
||||
return TexPage{.value = GPU_IO::Command::TexPage(tex_pos, transparency, tex_color, dither, false)};
|
||||
return TexPage{.value = GPU_IO_Values::GP0::TexPage(tex_pos, transparency, tex_color, dither, false)};
|
||||
}
|
||||
};
|
||||
|
||||
struct CPU2VRAM {
|
||||
struct GPU_IO::GP0 cmd;
|
||||
struct GPU_IO::GP0 pos;
|
||||
struct GPU_IO::GP0 size;
|
||||
GPU_IO_Values::GP0 cmd;
|
||||
GPU_IO_Values::GP0 pos;
|
||||
GPU_IO_Values::GP0 size;
|
||||
|
||||
static constexpr CPU2VRAM create(const AreaU16& dst) {
|
||||
return CPU2VRAM{
|
||||
.cmd = GPU_IO::Command::CPU2VRAM_Blitting(),
|
||||
.pos = GPU_IO::Command::TopLeftPosition(dst.position),
|
||||
.size = GPU_IO::Command::WidthHeight(dst.size)
|
||||
.cmd = GPU_IO_Values::GP0::CPU2VRAMBlitting(),
|
||||
.pos = GPU_IO_Values::GP0::PostionTopLeft(dst.position),
|
||||
.size = GPU_IO_Values::GP0::WidthHeight(dst.size)
|
||||
};
|
||||
}
|
||||
};
|
||||
|
@@ -33,11 +33,11 @@ namespace JabyEngine {
|
||||
}
|
||||
|
||||
static void enable() {
|
||||
GPU_IO::GP1.write(GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::On));
|
||||
GPU_IO::GP1.set_display_state(GPU_IO::DisplayMode::State::On);
|
||||
}
|
||||
|
||||
static void disable() {
|
||||
GPU_IO::GP1.write(GPU_IO::Command::SetDisplayState(GPU_IO::DisplayState::Off));
|
||||
GPU_IO::GP1.set_display_state(GPU_IO::DisplayMode::State::Off);
|
||||
}
|
||||
|
||||
static void set_offset(int16_t x, int16_t y);
|
||||
|
Reference in New Issue
Block a user