diff options
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]; |
