Support for loading TIM
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "include/frame.hpp"
|
||||
#include <FontWriter/fonts.hpp>
|
||||
#include <PSX/GPU/gpu.hpp>
|
||||
#include <PSX/GPU/make_gpu_primitives.hpp>
|
||||
#include <PSX/Periphery/periphery.hpp>
|
||||
#include <PSX/Timer/frame_timer.hpp>
|
||||
|
||||
@@ -76,6 +77,13 @@ namespace ScreenCenter {
|
||||
Formular{.name = PSYQ::Name, .function = PSYQ::set_offset}
|
||||
};
|
||||
|
||||
static constexpr const auto background_img = Make::POLY_FT4(
|
||||
Make::AreaI16(Make::PositionI16((GPU::Display::Width - 256)/2, (GPU::Display::Height - 240)/2), Make::SizeI16(256, 240)),
|
||||
Make::PageOffset(0, 0),
|
||||
Make::TPage(Make::PositionU16(384, 256), GPU::SemiTransparency::B_Half_add_F_Half, GPU::TextureColorMode::clut4),
|
||||
Make::PageClut(Make::PositionU16(384, 255))
|
||||
);
|
||||
|
||||
static auto frame = Frame::create();
|
||||
|
||||
static ButtonPulser button_pulse[4];
|
||||
@@ -182,6 +190,7 @@ namespace ScreenCenter {
|
||||
}
|
||||
|
||||
static void render() {
|
||||
GPU::render(background_img);
|
||||
frame.render();
|
||||
Shared::back_menu.render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user