Integrate all the progress into master #6

Merged
jaby merged 595 commits from ToolBox into main 2025-01-01 13:17:44 +00:00
1 changed files with 15 additions and 0 deletions
Showing only changes of commit d984890205 - Show all commits

View File

@ -44,6 +44,21 @@ namespace JabyEngine {
constexpr GPU::PositionU16 get_clut_position() const {
return GPU::PositionU16::create(SimpleTIM::get_clut_x(), SimpleTIM::get_clut_y());
}
constexpr GPU::PageOffset get_page_offset() const {
const auto tex_page = SimpleTIM::get_texture_position();
return GPU::PageOffset::create(tex_page.x&0x3F, tex_page.y);
}
constexpr GPU::PageOffset get_page_offset_clut8() const {
const auto page_offset = SimpleTIM::get_page_offset();
return GPU::PageOffset::create(page_offset.x*2, page_offset.y);
}
constexpr GPU::PageOffset get_page_offset_clut4() const {
const auto page_offset = SimpleTIM::get_page_offset();
return GPU::PageOffset::create(page_offset.x*4, page_offset.y);
}
};
struct CopyTo {