Epok Engine

PSYQO SDK

psyqo::Prim::GouraudTexturedQuad::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::GouraudTexturedQuad
Header
primitives/quads.hh
Overloads
2

Declaration 1 of 2

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

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.
dColorNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "psyqo/primitives/quads.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
// Color d

psyqo::Prim::GouraudTexturedQuad& object = /* obtain a valid instance */;

object.interpolateColors<transparency>(a, b, c, d);

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/quads.hh:375

Declaration 2 of 2

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

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.
dconst Color *Not documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "psyqo/primitives/quads.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
// const Color * d

psyqo::Prim::GouraudTexturedQuad& object = /* obtain a valid instance */;

object.interpolateColors<transparency>(a, b, c, d);

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/quads.hh:354

Related members