From 697cd08979c12f2a1ebd32f12a1a306b730f14ec Mon Sep 17 00:00:00 2001 From: TakaRikka <38417346+TakaRikka@users.noreply.github.com> Date: Mon, 22 Jan 2024 07:23:54 -0800 Subject: some various J2D/J3D work (#2043) * most of J2DPicture done * fix GXSetTexCoordGen * some j3d work --- include/JSystem/J3DGraphBase/J3DVertex.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'include/JSystem/J3DGraphBase') 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]; -- cgit v1.2.3