Port GPU IO
This commit is contained in:
@@ -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{
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user