Add BootImage to second DisplayBuffer during boot

This commit is contained in:
2023-04-30 14:18:11 +02:00
parent ad18c89c0b
commit 73a0245b0d
4 changed files with 33 additions and 4 deletions

View File

@@ -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__