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 () |
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
, pointC
colorA
, colorB
, colorC
uvA
, uvB
, uvC
clutIndex
, tpage
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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 |