Add BootImage to second DisplayBuffer during boot
This commit is contained in:
@@ -92,11 +92,26 @@ namespace JabyEngine {
|
||||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
struct Area {
|
||||
Position<T> position;
|
||||
Size<T> size;
|
||||
|
||||
constexpr Area() = default;
|
||||
constexpr Area(Position<T> position, Size<T> size) : position(position), size(size) {
|
||||
}
|
||||
constexpr Area(T position_x, T position_y, T size_width, T size_height) : position{position_x, position_y}, size{size_width, size_height} {
|
||||
}
|
||||
};
|
||||
|
||||
typedef Position<int16_t> PositionI16;
|
||||
typedef Position<uint16_t> PositionU16;
|
||||
|
||||
typedef Size<int16_t> SizeI16;
|
||||
typedef Size<uint16_t> SizeU16;
|
||||
|
||||
typedef Area<int16_t> AreaI16;
|
||||
typedef Area<uint16_t> AreaU16;
|
||||
}
|
||||
}
|
||||
#endif //!__JABYENGINE_GPU_TYPES_HPP__
|
@@ -106,6 +106,10 @@ namespace JabyEngine {
|
||||
return {(0x02 << 24) | color.raw()};
|
||||
}
|
||||
|
||||
static constexpr GP0_t VRAM2VRAM_Blitting() {
|
||||
return {(0b100u << 29)};
|
||||
}
|
||||
|
||||
static constexpr GP0_t CPU2VRAM_Blitting() {
|
||||
return {(0b101u << 29)};
|
||||
}
|
||||
|
Reference in New Issue
Block a user