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

Function readName

physx/samples/samplebase/RawLoader.cpp:215–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215static void readName(File* fp, char* objectName)
216{
217 PxU32 offset=0;
218 char c;
219 do
220 {
221 size_t numRead = fread(&c, 1, 1, fp);
222 if(numRead != 1) { c = '\0';}
223 objectName[offset++] = c;
224 }while(c);
225 objectName[offset]=0;
226}
227
228bool loadRAWfile(const char* filename, RAWImportCallback& cb, PxReal scale)
229{

Callers 1

loadRAWfileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected