Files
tp/libs/dolphin/gf/GFTev.cpp
T
TakaRikka 981cfe7283 almost all of dolphin matched (#2036)
* TRK full match

* remove trk asm

* ar done

* cleanup some dolphin headers

* more dolphin cleanup

* cleanup / GD fully matched

* almost all of GX fully matched

* GX / Mtx full matched

* most of OS done

* pad done

* most of VI

* remove asm

* forgot couple vec funcs

* couple JUtility matches
2024-01-20 02:22:19 +02:00

15 lines
545 B
C++

#include "dolphin/gf/GFTev.h"
#include "dolphin/gx.h"
/* 802CE0D0-802CE138 2C8A10 0068+00 0/0 0/0 1/1 .text
* GFSetTevColorS10__F11_GXTevRegID11_GXColorS10 */
void GFSetTevColorS10(_GXTevRegID param_0, _GXColorS10 param_1) {
u32 uVar1 = (param_1.r & 0x7ffU) | ((param_1.a & 0x7ffU) << 12) | ((param_0 * 2 + 0xe0) << 24);
u32 uVar2 = (param_1.b & 0x7ffU) | ((param_1.g & 0x7ffU) << 12) | ((param_0 * 2 + 0xe1) << 24);
GFWriteBPCmd(uVar1);
GFWriteBPCmd(uVar2);
GFWriteBPCmd(uVar2);
GFWriteBPCmd(uVar2);
}