Support linking primitives

This commit is contained in:
2023-06-13 21:21:02 +02:00
parent 04fa09e7e7
commit 50a2fc3128
6 changed files with 65 additions and 26 deletions

View File

@@ -1,11 +1,12 @@
#ifndef __JABYENGINE_PRIMITIVE_GPU_COMMANDS_HPP__
#define __JABYENGINE_PRIMITIVE_GPU_COMMANDS_HPP__
#include "../../System/IOPorts/gpu_io.hpp"
#include "linked_elements.hpp"
#include "primitive_support_types.hpp"
namespace JabyEngine {
namespace GPU {
struct TexPage {
struct TexPage : public internal::LinkedElementCreator<TexPage> {
GPU_IO::GP0_t value;
constexpr TexPage(const PositionU16& tex_pos, TexturePageColor tex_color, SemiTransparency transparency = SemiTransparency::B_Half_add_F_Half, bool dither = false) : value{