diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2025-09-08 02:01:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-08 12:01:20 +0300 |
| commit | 52aa5f677f722f14f10298a3ebe1e355a4c26938 (patch) | |
| tree | 583eb03de69d9a2232be573fd4fe5f4e5380e417 /include/JSystem/J3DGraphBase | |
| parent | cbe5aaca8f2cb2e5046166b79a46de1e97f82730 (diff) | |
scannon / scannon_crs / scannon_ten done (#2632)
* scannon done
* scannon_crs done
* scannon_ten done
* pr
* attention debug stuff
* attn flags
* fix build
Diffstat (limited to 'include/JSystem/J3DGraphBase')
| -rw-r--r-- | include/JSystem/J3DGraphBase/J3DPacket.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DPacket.h b/include/JSystem/J3DGraphBase/J3DPacket.h index 177c8de837..92b817ec23 100644 --- a/include/JSystem/J3DGraphBase/J3DPacket.h +++ b/include/JSystem/J3DGraphBase/J3DPacket.h @@ -32,6 +32,29 @@ enum J3DDiffFlag { J3DDiffFlag_Changed = 0x80000000, }; +#define J3D_DIFF_LIGHTOBJNUM(n) ((n & 0xF) << 4) +#define J3D_DIFF_TEXGENNUM(n) ((n & 0xF) << 8) +#define J3D_DIFF_TEXNONUM(n) ((n & 0xF) << 16) +#define J3D_DIFF_TEVSTAGENUM(n) ((n & 0xF) << 20) + +#define J3D_DIFF_FLAG(MatColor, ColorChan, AmbColor, LightNum, TexGenNum, TexGen, TexCoordNum, TevStageNum, TevReg, KColor, TexCoordScale, TevStageInd, Fog, Blend) \ + ( \ + (MatColor << 0) | \ + (ColorChan << 1) | \ + (AmbColor << 2) | \ + ((LightNum & 0xF) << 4) | \ + ((TexGenNum & 0xF) << 8) | \ + (TexGen << 12) | \ + ((TexCoordNum & 0xF) << 16) | \ + ((TevStageNum & 0xF) << 20) | \ + (TevReg << 24) | \ + (KColor << 25) | \ + (TexCoordScale << 26) | \ + (TevStageInd << 27) | \ + (Fog << 28) | \ + (Blend << 29) \ + ) + inline u32 getDiffFlag_LightObjNum(u32 diffFlags) { return (diffFlags & 0xf0) >> 4; } |
