|
Nugget
|
The Gouraud-shaded Line primitive. More...
#include <psyqo/primitives/lines.hh>

Public Member Functions | |
| GouraudLine () | |
| GouraudLine (Color c) | |
| GouraudLine & | setColorA (Color c) |
| GouraudLine & | setColorB (Color c) |
| GouraudLine & | setOpaque () |
| uint32_t | getCommandWord () const |
| The GP0 command word, minus any colour. | |
| GouraudLine & | setColorAPacked (uint32_t packed) |
| Sets the command word and vertex A's colour in one go. | |
| GouraudLine & | setSemiTrans () |
Public Attributes | |
| Vertex | pointA |
| Color | colorB |
| Vertex | pointB |
The Gouraud-shaded Line primitive.
The Line primitive will draw a single, gouraud-shaded segment. It will be drawn between the pointA and pointB vertices. The color of the segment will be interpolated between the colorA and colorB colors. Note that colorA can only be set using the constructor, or the setColorA method.
|
inline |
|
inline |
|
inline |
The GP0 command word, minus any colour.
Meant for the GTE's RGBC CODE field, which gets fused into every colour the GTE emits. Preload it and the colour FIFO hands back finished first words. See GouraudQuad::getCommandWord for the full round trip.
|
inline |
|
inline |
Sets the command word and vertex A's colour in one go.
For a value that came out of the GTE with CODE preloaded from getCommandWord. Unlike setColorA this does not preserve the transparency bit, because the value being stored already carries it.
|
inline |
|
inline |
|
inline |
| Color psyqo::Prim::GouraudLine::colorB |
| Vertex psyqo::Prim::GouraudLine::pointA |
| Vertex psyqo::Prim::GouraudLine::pointB |