|
Nugget
|
A gouraud-shaded quad. More...
#include <psyqo/primitives/quads.hh>

Public Attributes | |
| Vertex | pointA |
| Color | colorB |
| Vertex | pointB |
| Color | colorC |
| Vertex | pointC |
| Color | colorD |
| Vertex | pointD |
A gouraud-shaded quad.
This primitive will draw a gouraud-shaded quad. See Quad for more information about vertices and ordering. The color of the quad will be interpolated between the colors of its four vertices. Note that colorA can only be set using the constructor, or the setColorA method.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
The GP0 command word, minus any colour.
A GP0 polygon's first word is the command in bits 31-24 and vertex A's colour in 23-0, and the GTE's RGBC register has an 8 bit CODE field that it fuses into every colour it produces - which is exactly what that field is for. Load this into CODE before an nc* command and the colour FIFO hands back finished first words; then store them with setColorAPacked and the whole thing is a word store instead of a read-modify-write per vertex.
|
inline |
|
inline |
|
inline |
|
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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Color psyqo::Prim::GouraudQuad::colorB |
| Color psyqo::Prim::GouraudQuad::colorC |
| Color psyqo::Prim::GouraudQuad::colorD |
| Vertex psyqo::Prim::GouraudQuad::pointA |
| Vertex psyqo::Prim::GouraudQuad::pointB |
| Vertex psyqo::Prim::GouraudQuad::pointC |
| Vertex psyqo::Prim::GouraudQuad::pointD |