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

Function readUVs

physx/samples/samplebase/RawLoader.cpp:184–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184static void readUVs(File* fp, PxReal* uvs, PxU32 nbVerts)
185{
186 const size_t size = 4*2*nbVerts;
187 size_t numRead = fread(uvs, 1, size, fp);
188 if(numRead != size) { return; }
189
190 if(gFlip)
191 {
192 for(PxU32 j=0;j<nbVerts*2;j++)
193 Flip(uvs[j]);
194 }
195}
196
197static void readVertices(File* fp, PxVec3* verts, PxU32 nbVerts, PxReal scale)
198{

Callers 1

loadRAWfileFunction · 0.70

Calls 1

FlipFunction · 0.70

Tested by

no test coverage detected