mirror of
https://github.com/zeldaret/tp
synced 2026-06-22 17:03:09 -04:00
2453c0e333
* move dolsdk2004 over * cleanup some temp work * finish and cleanup gf * b_bh done * d_a_e_mb done
11 lines
371 B
C++
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);
|
|
}
|