|
Nugget
|
A textured, blended triangle. More...
#include <psyqo/primitives/triangles.hh>

Public Member Functions | |
| GouraudTexturedTriangle () | |
| GouraudTexturedTriangle (Color c) | |
| GouraudTexturedTriangle (const GouraudTexturedTriangle &other, Color c) | |
| GouraudTexturedTriangle & | setColorA (Color c) |
| GouraudTexturedTriangle & | setColorB (Color c) |
| GouraudTexturedTriangle & | setColorC (Color c) |
| Color | getColorA () const |
| Color | getColorB () const |
| Color | getColorC () const |
| GouraudTexturedTriangle & | setOpaque () |
| uint32_t | getCommandWord () const |
| The GP0 command word, minus any colour. | |
| GouraudTexturedTriangle & | setColorAPacked (uint32_t packed) |
| Sets the command word and vertex A's colour in one go. | |
| GouraudTexturedTriangle & | setSemiTrans () |
| bool | isSemiTrans () const |
| 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) |
A textured, blended triangle.
This primitive will draw a textured triangle with its texels blended with the interpolated color values of its vertices. It will be draw between the pointA, pointB, and pointC vertices. The primitive has weird-looking ordering of members, but it is necessary to accommodate the way the hardware wants the triangle information to be sent to it. The attributes of the primitive can be better visualized with this order:
pointA, pointB, pointCcolorA, colorB, colorCuvA, uvB, uvCclutIndex, tpage
|
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 |
| PrimPieces::ClutIndex psyqo::Prim::GouraudTexturedTriangle::clutIndex |
| Color psyqo::Prim::GouraudTexturedTriangle::colorB |
| Color psyqo::Prim::GouraudTexturedTriangle::colorC |
| Vertex psyqo::Prim::GouraudTexturedTriangle::pointA |
| Vertex psyqo::Prim::GouraudTexturedTriangle::pointB |
| Vertex psyqo::Prim::GouraudTexturedTriangle::pointC |
| PrimPieces::TPageAttr psyqo::Prim::GouraudTexturedTriangle::tpage |
| PrimPieces::UVCoords psyqo::Prim::GouraudTexturedTriangle::uvA |
| PrimPieces::UVCoords psyqo::Prim::GouraudTexturedTriangle::uvB |
| PrimPieces::UVCoordsPadded psyqo::Prim::GouraudTexturedTriangle::uvC |