Epok Engine

PSYQO SDK

psyqo::Prim::GouraudTriangle::interpolateColors

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.

Function template

Performs `interpolate colors` as part of typed PlayStation GPU primitives.

Belongs to
psyqo::Prim::GouraudTriangle
Header
primitives/triangles.hh
Overloads
2

Declaration 1 of 2

template
Declaration
template <Transparency transparency = Transparency::Auto> void interpolateColors(Color a, Color b, Color c)

Performs `interpolate colors` as part of typed PlayStation GPU primitives.

ParameterTypeMeaning
aColorNot documented; consult the linked header.
bColorNot documented; consult the linked header.
cColorNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#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);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/primitives/triangles.hh:220

Declaration 2 of 2

template
Declaration
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.

ParameterTypeMeaning
aconst Color *Not documented; consult the linked header.
bconst Color *Not documented; consult the linked header.
cconst Color *Not documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#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);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/primitives/triangles.hh:203

Related members