diff options
| author | TakaRikka <38417346+TakaRikka@users.noreply.github.com> | 2024-01-22 07:23:54 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-22 17:23:54 +0200 |
| commit | 697cd08979c12f2a1ebd32f12a1a306b730f14ec (patch) | |
| tree | cf87190adf687a837db8424dc00ffa21da99e837 /include/JSystem/J3DGraphBase | |
| parent | 5a735a495680b6b410a242cbe570a72b789d7016 (diff) | |
some various J2D/J3D work (#2043)
* most of J2DPicture done
* fix GXSetTexCoordGen
* some j3d work
Diffstat (limited to 'include/JSystem/J3DGraphBase')
| -rw-r--r-- | include/JSystem/J3DGraphBase/J3DVertex.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DVertex.h b/include/JSystem/J3DGraphBase/J3DVertex.h index 1f0c7c421b..4e5129a3bf 100644 --- a/include/JSystem/J3DGraphBase/J3DVertex.h +++ b/include/JSystem/J3DGraphBase/J3DVertex.h @@ -105,6 +105,26 @@ public: mTransformedVtxNrmArray[1] = tmp; } + void swapVtxPosArrayPointer() { + void* temp = mVtxPosArray[0]; + mVtxPosArray[0] = mVtxPosArray[1]; + mVtxPosArray[1] = temp; + } + + void swapVtxNrmArrayPointer() { + void* temp = mVtxNrmArray[0]; + mVtxNrmArray[0] = mVtxNrmArray[1]; + mVtxNrmArray[1] = temp; + } + + void* getVtxPosArrayPointer(int index) { + return mVtxPosArray[index]; + } + + void* getVtxNrmArrayPointer(int index) { + return mVtxNrmArray[index]; + } + private: /* 0x00 */ J3DVertexData* mVtxData; /* 0x04 */ void* mVtxPosArray[2]; |
