29#include <EASTL/array.h>
48 uint32_t wasSemiTrans =
command & 0x02000000;
49 command = 0x40000000 | (
c.packed & 0xffffff) | wasSemiTrans;
68static_assert(
sizeof(
Line) ==
sizeof(uint32_t) * 3,
"Line is not 3 words");
83 uint32_t wasSemiTrans =
command & 0x02000000;
84 command = 0x50000000 | (
c.packed & 0xffffff) | wasSemiTrans;
127static_assert(
sizeof(
GouraudLine) ==
sizeof(uint32_t) * 4,
"Line is not 4 words");
146 uint32_t wasSemiTrans =
command & 0x02000000;
147 command = 0x48000000 | (
c.packed & 0xffffff) | wasSemiTrans;
165static_assert(
sizeof(
PolyLineBegin) ==
sizeof(uint32_t) * 2,
"PolyLineBegin is not 2 words");
187 uint32_t wasSemiTrans =
command & 0x02000000;
188 command = 0x48000000 | (
c.packed & 0xffffff) | wasSemiTrans;
207 const uint32_t endMarker = 0x50005000;
Definition gte-timing.c:164
The Gouraud-shaded Line primitive.
Definition lines.hh:79
GouraudLine & setSemiTrans()
Definition lines.hh:114
uint32_t getCommandWord() const
The GP0 command word, minus any colour.
Definition lines.hh:102
GouraudLine & setOpaque()
Definition lines.hh:91
GouraudLine & setColorB(Color c)
Definition lines.hh:87
Vertex pointB
Definition lines.hh:125
GouraudLine(Color c)
Definition lines.hh:81
GouraudLine()
Definition lines.hh:80
GouraudLine & setColorAPacked(uint32_t packed)
Sets the command word and vertex A's colour in one go.
Definition lines.hh:110
Vertex pointA
Definition lines.hh:123
Color colorB
Definition lines.hh:124
GouraudLine & setColorA(Color c)
Definition lines.hh:82
The Line primitive.
Definition lines.hh:44
Vertex pointA
Definition lines.hh:65
Line & setSemiTrans()
Definition lines.hh:56
Vertex pointB
Definition lines.hh:66
Line()
Definition lines.hh:45
Line & setOpaque()
Definition lines.hh:52
Line(Color c)
Definition lines.hh:46
Line & setColor(Color c)
Definition lines.hh:47
The primitive used to begin a polyline.
Definition lines.hh:142
PolyLineBegin & setSemiTrans()
Definition lines.hh:154
PolyLineBegin(Color c)
Definition lines.hh:144
PolyLineBegin()
Definition lines.hh:143
Vertex point
Definition lines.hh:163
PolyLineBegin & setOpaque()
Definition lines.hh:150
PolyLineBegin & setColor(Color c)
Definition lines.hh:145
const uint32_t endMarker
Definition lines.hh:168
The primitive used to draw a polyline.
Definition lines.hh:183
PolyLine & setSemiTrans()
Definition lines.hh:195
PolyLine(Color c)
Definition lines.hh:185
PolyLine()
Definition lines.hh:184
PolyLine & setOpaque()
Definition lines.hh:191
PolyLine & setColor(Color c)
Definition lines.hh:186
eastl::array< Vertex, N+1 > points
Definition lines.hh:204
static int c
Definition syscalls.h:172
The Color struct.
Definition common.hh:91
The Vertex struct.
Definition common.hh:47