Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
PSYQO SDK
Function template · 2 overloads
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Performs `interpolate colors` as part of typed PlayStation GPU primitives.
template <Transparency transparency = Transparency::Auto> void interpolateColors(Color a, Color b, Color c)Performs `interpolate colors` as part of typed PlayStation GPU primitives.
| Parameter | Type | Meaning |
|---|---|---|
a | Color | Not documented; consult the linked header. |
b | Color | Not documented; consult the linked header. |
c | Color | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "psyqo/primitives/triangles.hh"
// Replace these template arguments with types or values accepted by the declaration:
// transparency
// Assume these named values have been initialized with valid data:
// Color a
// Color b
// Color c
psyqo::Prim::GouraudTriangle& object = /* obtain a valid instance */;
object.interpolateColors<transparency>(a, b, c);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
template <Transparency transparency = Transparency::Auto> void interpolateColors(const Color* a, const Color* b, const Color* c)Performs `interpolate colors` as part of typed PlayStation GPU primitives.
| Parameter | Type | Meaning |
|---|---|---|
a | const Color * | Not documented; consult the linked header. |
b | const Color * | Not documented; consult the linked header. |
c | const Color * | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "psyqo/primitives/triangles.hh"
// Replace these template arguments with types or values accepted by the declaration:
// transparency
// Assume these named values have been initialized with valid data:
// const Color * a
// const Color * b
// const Color * c
psyqo::Prim::GouraudTriangle& object = /* obtain a valid instance */;
object.interpolateColors<transparency>(a, b, c);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
getColorAReturns color a as part of typed PlayStation GPU primitives.MethodgetColorBReturns color b as part of typed PlayStation GPU primitives.MethodgetColorCReturns color c as part of typed PlayStation GPU primitives.MethodgetCommandWordThe GP0 command word, minus any colour.MethodGouraudTriangleConstructs `psyqo::Prim::GouraudTriangle` for typed PlayStation GPU primitives.constructorisSemiTransReports whether semi trans as part of typed PlayStation GPU primitives.MethodsetColorASets color a as part of typed PlayStation GPU primitives.MethodsetColorAPackedSets the command word and vertex A's colour in one go.MethodsetColorBSets color b as part of typed PlayStation GPU primitives.MethodsetColorCSets color c as part of typed PlayStation GPU primitives.MethodsetOpaqueSets opaque as part of typed PlayStation GPU primitives.MethodsetPointASets point a as part of typed PlayStation GPU primitives.Method