| 68 | } |
| 69 | |
| 70 | PxF32 physx::readFloat(bool mismatch, PxInputStream& stream) |
| 71 | { |
| 72 | union |
| 73 | { |
| 74 | PxU32 d; |
| 75 | PxF32 f; |
| 76 | } u; |
| 77 | |
| 78 | stream.read(&u.d, sizeof(PxU32)); |
| 79 | |
| 80 | if(mismatch) |
| 81 | flip(u.d); |
| 82 | return u.f; |
| 83 | } |
| 84 | |
| 85 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 86 |