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

Function readVertexArray

physx/samples/samplebase/RawLoader.cpp:167–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167static void readVertexArray(File* fp, PxVec3* verts, PxU32 nbVerts)
168{
169 const size_t size = 4*3*nbVerts;
170 size_t numRead = fread(verts, 1, size, fp);
171 if(numRead != size) { return; }
172
173 if(gFlip)
174 {
175 for(PxU32 j=0;j<nbVerts;j++)
176 {
177 Flip(verts[j].x);
178 Flip(verts[j].y);
179 Flip(verts[j].z);
180 }
181 }
182}
183
184static void readUVs(File* fp, PxReal* uvs, PxU32 nbVerts)
185{

Callers 3

readVerticesFunction · 0.70
readNormalsFunction · 0.70
readVertexColorsFunction · 0.70

Calls 1

FlipFunction · 0.70

Tested by

no test coverage detected