Support TILE and SPRT for make functions
This commit is contained in:
@@ -68,6 +68,10 @@ namespace JabyEngine {
|
||||
|
||||
// ###################################################################
|
||||
|
||||
static constexpr GPU::AreaI16 AreaI16() {
|
||||
return creator_template<GPU::AreaI16>(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
static constexpr GPU::AreaI16 AreaI16(int16_t x, int16_t y, int16_t w, int16_t h) {
|
||||
return creator_template<GPU::AreaI16>(x, y, w, h);
|
||||
}
|
||||
@@ -78,6 +82,10 @@ namespace JabyEngine {
|
||||
|
||||
// ###################################################################
|
||||
|
||||
static constexpr GPU::AreaU16 AreaU16() {
|
||||
return creator_template<GPU::AreaU16>(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
static constexpr GPU::AreaU16 AreaU16(uint16_t x, uint16_t y, uint16_t w, uint16_t h) {
|
||||
return creator_template<GPU::AreaU16>(x, y, w, h);
|
||||
}
|
||||
@@ -116,6 +124,16 @@ namespace JabyEngine {
|
||||
return creator_template<GPU::TPage>(x, y, transparency, clut_color);
|
||||
}
|
||||
|
||||
// ###################################################################
|
||||
|
||||
static constexpr GPU::TexPage TexPage() {
|
||||
return creator_template<GPU::TexPage>(PositionU16(), GPU::TexturePageColor::$4bit, GPU::SemiTransparency::B_Half_add_F_Half, false);
|
||||
}
|
||||
|
||||
static constexpr GPU::TexPage TexPage(const GPU::PositionU16& tex_pos, GPU::TexturePageColor tex_color, GPU::SemiTransparency transparency = GPU::SemiTransparency::B_Half_add_F_Half, bool dither = false) {
|
||||
return creator_template<GPU::TexPage>(tex_pos, tex_color, transparency, dither);
|
||||
}
|
||||
|
||||
// ###################################################################
|
||||
|
||||
static constexpr GPU::PagePositionClut PagePositionClut() {
|
||||
@@ -151,7 +169,72 @@ namespace JabyEngine {
|
||||
// ###################################################################
|
||||
// ###################################################################
|
||||
// ###################################################################
|
||||
|
||||
static constexpr GPU::TILE_1 TILE_1() {
|
||||
return creator_template<GPU::TILE_1>(Vertex(), GPU::Color24::Black());
|
||||
}
|
||||
|
||||
static constexpr GPU::TILE_1 TILE_1(const GPU::Vertex& position, const GPU::Color24& color) {
|
||||
return creator_template<GPU::TILE_1>(position, color);
|
||||
}
|
||||
|
||||
static constexpr GPU::TILE_8 TILE_8() {
|
||||
return creator_template<GPU::TILE_8>(Vertex(), GPU::Color24::Black());
|
||||
}
|
||||
|
||||
static constexpr GPU::TILE_8 TILE_8(const GPU::Vertex& position, const GPU::Color24& color) {
|
||||
return creator_template<GPU::TILE_8>(position, color);
|
||||
}
|
||||
|
||||
static constexpr GPU::TILE_16 TILE_16() {
|
||||
return creator_template<GPU::TILE_16>(Vertex(), GPU::Color24::Black());
|
||||
}
|
||||
|
||||
static constexpr GPU::TILE_16 TILE_16(const GPU::Vertex& position, const GPU::Color24& color) {
|
||||
return creator_template<GPU::TILE_16>(position, color);
|
||||
}
|
||||
|
||||
static constexpr GPU::TILE TILE() {
|
||||
return creator_template<GPU::TILE>(AreaI16(), GPU::Color24::Black());
|
||||
}
|
||||
|
||||
static constexpr GPU::TILE TILE(const GPU::AreaI16& area, const GPU::Color24& color) {
|
||||
return creator_template<GPU::TILE>(area, color);
|
||||
}
|
||||
|
||||
// ###################################################################
|
||||
|
||||
static constexpr GPU::SPRT_1 SPRT_1() {
|
||||
return creator_template<GPU::SPRT_1>(Vertex(), PagePositionClut(), GPU::Color24::Black());
|
||||
}
|
||||
|
||||
static constexpr GPU::SPRT_1 SPRT_1(const GPU::Vertex& position, const GPU::PagePositionClut& page, const GPU::Color24& color = GPU::Color24::Grey()) {
|
||||
return creator_template<GPU::SPRT_1>(position, page, color);
|
||||
}
|
||||
|
||||
static constexpr GPU::SPRT_8 SPRT_8() {
|
||||
return creator_template<GPU::SPRT_8>(Vertex(), PagePositionClut(), GPU::Color24::Black());
|
||||
}
|
||||
|
||||
static constexpr GPU::SPRT_8 SPRT_8(const GPU::Vertex& position, const GPU::PagePositionClut& page, const GPU::Color24& color = GPU::Color24::Grey()) {
|
||||
return creator_template<GPU::SPRT_8>(position, page, color);
|
||||
}
|
||||
|
||||
static constexpr GPU::SPRT_16 SPRT_16() {
|
||||
return creator_template<GPU::SPRT_16>(Vertex(), PagePositionClut(), GPU::Color24::Black());
|
||||
}
|
||||
|
||||
static constexpr GPU::SPRT_16 SPRT_16(const GPU::Vertex& position, const GPU::PagePositionClut& page, const GPU::Color24& color = GPU::Color24::Grey()) {
|
||||
return creator_template<GPU::SPRT_16>(position, page, color);
|
||||
}
|
||||
|
||||
static constexpr GPU::SPRT SPRT() {
|
||||
return creator_template<GPU::SPRT>(AreaI16(), PagePositionClut(), GPU::Color24::Black());
|
||||
}
|
||||
|
||||
static constexpr GPU::SPRT SPRT(const GPU::AreaI16& area, const GPU::PagePositionClut& page, const GPU::Color24& color = GPU::Color24::Grey()) {
|
||||
return creator_template<GPU::SPRT>(area, page, color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user