Support all primitives
This commit is contained in:
21
include/PSX/GPU/Primitives/primitive_gpu_commands.hpp
Normal file
21
include/PSX/GPU/Primitives/primitive_gpu_commands.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef __JABYENGINE_PRIMITIVE_GPU_COMMANDS_HPP__
|
||||
#define __JABYENGINE_PRIMITIVE_GPU_COMMANDS_HPP__
|
||||
#include "../../System/IOPorts/gpu_io.hpp"
|
||||
#include "primitive_support_types.hpp"
|
||||
|
||||
namespace JabyEngine {
|
||||
namespace GPU {
|
||||
struct 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{
|
||||
GPU_IO::Command::TexPage(tex_pos, transparency, tex_color, dither, false)} {}
|
||||
};
|
||||
|
||||
namespace internal {
|
||||
__jaby_engine_declare_render_primitive(TexPage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !__JABYENGINE_PRIMITIVE_GPU_COMMANDS_HPP__
|
Reference in New Issue
Block a user