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

Public Member Functions | |
| GouraudTriangle () | |
| GouraudTriangle (Color c) | |
| GouraudTriangle (const GouraudTriangle &other, Color c) | |
| GouraudTriangle & | setColorA (Color c) |
| GouraudTriangle & | setColorB (Color c) |
| GouraudTriangle & | setColorC (Color c) |
| Color | getColorA () const |
| Color | getColorB () const |
| Color | getColorC () const |
| GouraudTriangle & | setOpaque () |
| uint32_t | getCommandWord () const |
| The GP0 command word, minus any colour. | |
| GouraudTriangle & | setColorAPacked (uint32_t packed) |
| Sets the command word and vertex A's colour in one go. | |
| GouraudTriangle & | setSemiTrans () |
| bool | isSemiTrans () const |
| GouraudTriangle & | setPointA (Vertex v) |
| GouraudTriangle & | setPointB (Vertex v) |
| GouraudTriangle & | setPointC (Vertex v) |
| template<Transparency transparency = Transparency::Auto> | |
| void | interpolateColors (const Color *a, const Color *b, const Color *c) |
| template<Transparency transparency = Transparency::Auto> | |
| void | interpolateColors (Color a, Color b, Color c) |
Public Attributes | |
| Vertex | pointA |
| Color | colorB |
| Vertex | pointB |
| Color | colorC |
| Vertex | pointC |
A gouraud-shaded triangle.
This primitive will draw a gouraud-shaded triangle. It will be drawn between the pointA, pointB, and pointC. Its color will be interpolated between the colors of its three vertices. Note that colorA can only be set using the constructor, or the setColorA method.
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |
|
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 |
| Color psyqo::Prim::GouraudTriangle::colorB |
| Color psyqo::Prim::GouraudTriangle::colorC |
| Vertex psyqo::Prim::GouraudTriangle::pointA |
| Vertex psyqo::Prim::GouraudTriangle::pointB |
| Vertex psyqo::Prim::GouraudTriangle::pointC |