| 91 | } |
| 92 | |
| 93 | static PxI32 getFileSize(const char* name) |
| 94 | { |
| 95 | if(!name) |
| 96 | return 0; |
| 97 | |
| 98 | SampleFramework::File* fp = NULL; |
| 99 | PxToolkit::fopen_s(&fp, name, "rb"); |
| 100 | if( !fp ) |
| 101 | return 0; |
| 102 | |
| 103 | fseek(fp, 0, SEEK_END); |
| 104 | PxI32 filesize = (PxI32)ftell(fp); |
| 105 | fclose(fp); |
| 106 | return filesize; |
| 107 | } |
| 108 | |
| 109 | void SampleLargeWorld::addWindMills(const PxTriangleMeshGeometry& meshGeom, BasicRandom& random, const PxBounds3& bound, PxCollection& outCollection) |
| 110 | { |