MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / getFileSize

Function getFileSize

physx/samples/samplelargeworld/ChunkLoader.cpp:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static 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
109void SampleLargeWorld::addWindMills(const PxTriangleMeshGeometry& meshGeom, BasicRandom& random, const PxBounds3& bound, PxCollection& outCollection)
110{

Callers 1

loadChunkMethod · 0.85

Calls 1

fopen_sFunction · 0.50

Tested by

no test coverage detected