coastline 0.0.4
Loading...
Searching...
No Matches
combine.h File Reference
Include dependency graph for combine.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int EncodeCombinerSelectorWide (int nInput)
 Encode an input of the colour combiner for a field of 5 bits: 0 for zero becomes selector 31, 1 for one becomes selector 6, and 1000 more than a selector becomes the selector.
int EncodeCombinerSelectorNarrow (int nInput)
 Encode an input of the colour combiner for a field of 3 bits: 0 for zero becomes selector 7, 1 for one becomes selector 6, 1013 becomes selector 0, and 1000 more than a selector becomes the selector.
void PackCombineMode (GbiCommand *pCommand, int nColorA0, int nColorB0, int nColorC0, int nColorD0, int nAlphaA0, int nAlphaB0, int nAlphaC0, int nAlphaD0, int nColorA1, int nColorB1, int nColorC1, int nColorD1, int nAlphaA1, int nAlphaB1, int nAlphaC1, int nAlphaD1)
 Build the command that sets the combine mode of two cycles from the inputs of the colour combiner, as EncodeCombinerSelectorWide() and EncodeCombinerSelectorNarrow() take them, packed as the console packs them.

Function Documentation

◆ EncodeCombinerSelectorWide()

int EncodeCombinerSelectorWide ( int nInput)

Encode an input of the colour combiner for a field of 5 bits: 0 for zero becomes selector 31, 1 for one becomes selector 6, and 1000 more than a selector becomes the selector.

Parameters
nInputThe input.
Returns
The selector.
Ghidra address:
BRD3D: 0x1002faf0
Ghidra address:
BRGlide: 0x1001d180

◆ EncodeCombinerSelectorNarrow()

int EncodeCombinerSelectorNarrow ( int nInput)

Encode an input of the colour combiner for a field of 3 bits: 0 for zero becomes selector 7, 1 for one becomes selector 6, 1013 becomes selector 0, and 1000 more than a selector becomes the selector.

Parameters
nInputThe input.
Returns
The selector.
Ghidra address:
BRD3D: 0x1002fac0
Ghidra address:
BRGlide: 0x1001d150

◆ PackCombineMode()

void PackCombineMode ( GbiCommand * pCommand,
int nColorA0,
int nColorB0,
int nColorC0,
int nColorD0,
int nAlphaA0,
int nAlphaB0,
int nAlphaC0,
int nAlphaD0,
int nColorA1,
int nColorB1,
int nColorC1,
int nColorD1,
int nAlphaA1,
int nAlphaB1,
int nAlphaC1,
int nAlphaD1 )

Build the command that sets the combine mode of two cycles from the inputs of the colour combiner, as EncodeCombinerSelectorWide() and EncodeCombinerSelectorNarrow() take them, packed as the console packs them.

Parameters
pCommandReceives the command.
nColorA0The input a of the colour of the first cycle.
nColorB0The input b of the colour of the first cycle.
nColorC0The input c of the colour of the first cycle.
nColorD0The input d of the colour of the first cycle.
nAlphaA0The input a of the alpha of the first cycle.
nAlphaB0The input b of the alpha of the first cycle.
nAlphaC0The input c of the alpha of the first cycle.
nAlphaD0The input d of the alpha of the first cycle.
nColorA1The input a of the colour of the second cycle.
nColorB1The input b of the colour of the second cycle.
nColorC1The input c of the colour of the second cycle.
nColorD1The input d of the colour of the second cycle.
nAlphaA1The input a of the alpha of the second cycle.
nAlphaB1The input b of the alpha of the second cycle.
nAlphaC1The input c of the alpha of the second cycle.
nAlphaD1The input d of the alpha of the second cycle.
Ghidra address:
BRD3D: 0x1002f900
Ghidra address:
BRGlide: 0x1001cf90