| 108 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 109 | |
| 110 | bool physx::readFloatBuffer(PxF32* dest, PxU32 nbFloats, bool mismatch, PxInputStream& stream) |
| 111 | { |
| 112 | stream.read(dest, sizeof(PxF32)*nbFloats); |
| 113 | if(mismatch) |
| 114 | { |
| 115 | for(PxU32 i=0;i<nbFloats;i++) |
| 116 | flip(dest[i]); |
| 117 | } |
| 118 | return true; |
| 119 | } |
| 120 | |
| 121 | void physx::writeFloatBuffer(const PxF32* src, PxU32 nb, bool mismatch, PxOutputStream& stream) |
| 122 | { |