58 static_assert(
sizeof(
Vertex) ==
sizeof(uint32_t),
"Vertex is not 32 bits");
82 static_assert(
sizeof(
Rect) ==
sizeof(uint64_t),
"Rect is not 64 bits");
96 static_assert(
sizeof(
Color) ==
sizeof(uint32_t),
"Color is not 32 bits");
114 ClutIndex(uint16_t x, uint16_t y) : index((y << 6) | x) {}
119 static_assert(
sizeof(
ClutIndex) ==
sizeof(uint16_t),
"ClutIndex is not 16 bits");
133 static_assert(
sizeof(
TexInfo) ==
sizeof(uint32_t),
"TexInfo is not 32 bits");
148 void setColor(
Color c) { command = 0x02000000 | c.packed; }
156 static_assert(
sizeof(
FastFill) == (
sizeof(uint32_t) * 3),
"FastFill is not 96 bits");
169 Sprite() : command(0b01100100'00000000'00000000'00000000) {}
170 Sprite(
Color c) : command(0b01100100'00000000'00000000'00000000 | c.packed) {}
171 void setColor(
Color c) { command = 0b01100100'00000000'00000000'00000000 | c.packed; }
181 static_assert(
sizeof(
Sprite) == (
sizeof(uint32_t) * 4),
"Sprite is not 128 bits");
192 Pixel() : command(0b01101000'00000000'00000000'00000000) {}
193 Pixel(
Color c) : command(0b01101000'00000000'00000000'00000000 | c.packed) {}
194 void setColor(
Color c) { command = 0b01101000'00000000'00000000'00000000 | c.packed; }
202 static_assert(
sizeof(
Pixel) == (
sizeof(uint64_t)),
"Pixel is not 64 bits");
218 static_assert(
sizeof(
FlushCache) ==
sizeof(uint32_t),
"FlushCache is not 32 bits");
234 static_assert(
sizeof(
DrawingAreaStart) ==
sizeof(uint32_t),
"DrawingAreaStart is not 32 bits");
250 static_assert(
sizeof(
DrawingAreaEnd) ==
sizeof(uint32_t),
"DrawingAreaEnd is not 32 bits");
266 static_assert(
sizeof(
DrawingOffset) ==
sizeof(uint32_t),
"DrawingOffset is not 32 bits");
299 static_assert(
sizeof(
VRAMUpload) == (
sizeof(uint32_t) * 3),
"VRAMUpload is not 96 bits");
A primitive's CLUT command.
Definition: primitives.hh:111
The DrawingAreaEnd primitive.
Definition: primitives.hh:244
The DrawingAreaStart primitive.
Definition: primitives.hh:228
The DrawingOffset primitive.
Definition: primitives.hh:260
The FastFill primitive.
Definition: primitives.hh:145
The FlushCache primitive.
Definition: primitives.hh:212
The Pixel primitive.
Definition: primitives.hh:191
A compounded Scissor primitive.
Definition: primitives.hh:278
The Sprite primitive.
Definition: primitives.hh:168
A primitive's texture information.
Definition: primitives.hh:128
Initiates a VRAM upload.
Definition: primitives.hh:290
The Rect struct.
Definition: primitives.hh:74
The Color struct.
Definition: primitives.hh:90
The Vertex struct.
Definition: primitives.hh:47