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

Public Member Functions | |
| GouraudTexturedQuad () | |
| GouraudTexturedQuad (Color c) | |
| GouraudTexturedQuad (const GouraudTexturedQuad &other, Color c) | |
| GouraudTexturedQuad & | setColorA (Color c) |
| GouraudTexturedQuad & | setColorB (Color c) |
| GouraudTexturedQuad & | setColorC (Color c) |
| GouraudTexturedQuad & | setColorD (Color c) |
| Color | getColorA () const |
| Color | getColorB () const |
| Color | getColorC () const |
| Color | getColorD () const |
| GouraudTexturedQuad & | setOpaque () |
| uint32_t | getCommandWord () const |
| The GP0 command word, minus any colour. | |
| GouraudTexturedQuad & | setColorAPacked (uint32_t packed) |
| Sets the command word and vertex A's colour in one go. | |
| GouraudTexturedQuad & | setSemiTrans () |
| bool | isSemiTrans () const |
| template<Transparency transparency = Transparency::Auto> | |
| void | interpolateColors (const Color *a, const Color *b, const Color *c, const Color *d) |
| template<Transparency transparency = Transparency::Auto> | |
| void | interpolateColors (Color a, Color b, Color c, Color d) |
A textured, blended quad.
This primitive will draw a textured quad with its texels blended with the interpolated color values of its vertices. See Quad for more information about vertices and ordering. The primitive has weird-looking ordering of members, but it is necessary to accommodate the way the hardware wants the quad information to be sent to it. The attributes of the primitive can be better visualized with this order:
pointA, pointB, pointC, pointDcolorA, colorB, colorC, colorDuvA, uvB, uvC, uvDclutIndex, tpage 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.
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 |
| PrimPieces::ClutIndex psyqo::Prim::GouraudTexturedQuad::clutIndex |
| Color psyqo::Prim::GouraudTexturedQuad::colorB |
| Color psyqo::Prim::GouraudTexturedQuad::colorC |
| Color psyqo::Prim::GouraudTexturedQuad::colorD |
| Vertex psyqo::Prim::GouraudTexturedQuad::pointA |
| Vertex psyqo::Prim::GouraudTexturedQuad::pointB |
| Vertex psyqo::Prim::GouraudTexturedQuad::pointC |
| Vertex psyqo::Prim::GouraudTexturedQuad::pointD |
| PrimPieces::TPageAttr psyqo::Prim::GouraudTexturedQuad::tpage |
| PrimPieces::UVCoords psyqo::Prim::GouraudTexturedQuad::uvA |
| PrimPieces::UVCoords psyqo::Prim::GouraudTexturedQuad::uvB |
| PrimPieces::UVCoordsPadded psyqo::Prim::GouraudTexturedQuad::uvC |
| PrimPieces::UVCoordsPadded psyqo::Prim::GouraudTexturedQuad::uvD |