Files
tp/src/dolphin/gf/GFGeometry.cpp
T
TakaRikka 2453c0e333 copy dolsdk2004 to tp / b_bh + e_mb done (#2299)
* move dolsdk2004 over

* cleanup some temp work

* finish and cleanup gf

* b_bh done

* d_a_e_mb done
2025-02-10 21:20:42 +02:00

11 lines
371 B
C++

#include <dolphin/gf.h>
#include <dolphin/gd.h>
void GFSetGenMode2(u8 nTexGens, u8 nChans, u8 nTevs, u8 nInds, GXCullMode cm) {
static u8 cm2hw[4] = {0, 2, 1, 3};
GFWriteBPCmd(0xFE07FC3F);
GFWriteBPCmd(GF_GEN_MODE(nTexGens, nChans, nTevs - 1, cm2hw[cm], nInds));
GFWriteXFCmd(XF_REG_NUMCOLORS_ID, nChans);
GFWriteXFCmd(XF_REG_NUMTEX_ID, nTexGens);
}