Introduce internal and normal GPU functions

This commit is contained in:
Jaby
2022-09-11 10:10:51 +02:00
parent b523c2c73f
commit 3317867f1d
7 changed files with 73 additions and 12 deletions

View File

@@ -0,0 +1,14 @@
#ifndef __JABYENGINE_INTERNAL_GPU_HPP__
#define __JABYENGINE_INTERNAL_GPU_HPP__
#include <PSX/GPU/GPU_Types.hpp>
#include <PSX/System/IOPorts/GPU_IO.hpp>
namespace GPU {
static void quick_fill_fast(const Color& color, const PositionU16& pos, const SizeU16& size) {
Port::GP0.write(Port::Command::GP0::QuickFill(color));
Port::GP0.write(Port::Command::GP0::TopLeftPosition(pos.x, pos.y));
Port::GP0.write(Port::Command::GP0::WidthHeight(size.width, size.height));
}
}
#endif //!__JABYENGINE_INTERNAL_GPU_HPP__