Go to the source code of this file.
|
| 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.
|
◆ 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
-
- 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
-
- 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
-
| pCommand | Receives the command. |
| nColorA0 | The input a of the colour of the first cycle. |
| nColorB0 | The input b of the colour of the first cycle. |
| nColorC0 | The input c of the colour of the first cycle. |
| nColorD0 | The input d of the colour of the first cycle. |
| nAlphaA0 | The input a of the alpha of the first cycle. |
| nAlphaB0 | The input b of the alpha of the first cycle. |
| nAlphaC0 | The input c of the alpha of the first cycle. |
| nAlphaD0 | The input d of the alpha of the first cycle. |
| nColorA1 | The input a of the colour of the second cycle. |
| nColorB1 | The input b of the colour of the second cycle. |
| nColorC1 | The input c of the colour of the second cycle. |
| nColorD1 | The input d of the colour of the second cycle. |
| nAlphaA1 | The input a of the alpha of the second cycle. |
| nAlphaB1 | The input b of the alpha of the second cycle. |
| nAlphaC1 | The input c of the alpha of the second cycle. |
| nAlphaD1 | The input d of the alpha of the second cycle. |
- Ghidra address:
- BRD3D: 0x1002f900
- Ghidra address:
- BRGlide: 0x1001cf90