18 lines
686 B
C++
18 lines
686 B
C++
#pragma once
|
|
#include "../../System/IOPorts/gpu_io.hpp"
|
|
#include "linked_elements.hpp"
|
|
#include "primitive_support_types.hpp"
|
|
|
|
namespace JabyEngine {
|
|
namespace GPU {
|
|
struct TexPage : public internal::LinkedElementCreator<TexPage> {
|
|
static constexpr bool is_render_primitive = true;
|
|
|
|
struct GPU_IO::GP0 value;
|
|
|
|
static constexpr TexPage create(const PositionU16& tex_pos, TexturePageColor tex_color, SemiTransparency transparency = SemiTransparency::B_Half_add_F_Half, bool dither = false) {
|
|
return TexPage{.value = GPU_IO::Command::TexPage(tex_pos, transparency, tex_color, dither, false)};
|
|
}
|
|
};
|
|
}
|
|
} |