Lines Matching refs:nStride
243 nStride = 0; in Reset()
777 if(!WriteData32(pFile, ePODFileStride, &n.nStride)) return false; in WriteCPODData()
782 case 1: if(!WriteData(pFile, ePODFileData, n.pData, nEntries * n.nStride)) return false; break; in WriteCPODData()
783 …case 2: if(!WriteData16(pFile, ePODFileData, n.pData, nEntries * (n.nStride / 2))) return false; b… in WriteCPODData()
784 …case 4: if(!WriteData32(pFile, ePODFileData, n.pData, nEntries * (n.nStride / 4))) return false; b… in WriteCPODData()
845 …if(!WriteMarker(pFile, ePODFileMeshInterleaved, false, mesh.nNumVertex * mesh.sVertex.nStride)) re… in WriteInterleaved()
849 unsigned char* pVtxStart = mesh.pInterleaved + (i * mesh.sVertex.nStride); in WriteInterleaved()
869 …padding = (pCPODData[j]->nStride - (size_t)pCPODData[j]->pData) - PVRTModelPODDataStride(*pCPODDat… in WriteInterleaved()
1167 case ePODFileStride: if(!src.Read32(s.nStride)) return false; break; in ReadCPODData()
1402 pData += data.nStride; in PVRTFixInterleavedEndiannessUsingCPODData()
1420 pData += data.nStride; in PVRTFixInterleavedEndiannessUsingCPODData()
3136 data.nStride = (unsigned int)PVRTModelPODDataStride(data);
3139 if(old.nStride != data.nStride)
3141 data.pData = (unsigned char*)malloc(data.nStride * nCnt);
3146 PVRTVertexRead(&v, old.pData + i * old.nStride, old.eType, old.n);
3147 …PVRTVertexWrite(data.pData + i * data.nStride, eNewType, (int) (data.n * PVRTModelPODDataTypeCompo…
3150 if(old.nStride != data.nStride)
3192 …oxComputeInterleaved(&BoundingBox, mesh.sVertex.pData, mesh.nNumVertex, 0, mesh.sVertex.nStride);
3265 …PVRTVertexRead(&v, mesh.sVertex.pData + i * mesh.sVertex.nStride, mesh.sVertex.eType, mesh.sVe…
3285 …PVRTVertexWrite(mesh.sVertex.pData + i * mesh.sVertex.nStride, mesh.sVertex.eType, (int) (mesh.sVe…
3330 data.nStride = (unsigned int)PVRTModelPODDataStride(data);
3332 if(data.nStride == 0)
3338 data.pData = (unsigned char*)malloc(data.nStride * nCnt);
3343 PVRTVertexRead(&v, old.pData + i * old.nStride, old.eType, old.n);
3353 …PVRTVertexWrite((char*)data.pData + i * data.nStride, data.eType, (int) (data.n * PVRTModelPODData…
3376 unsigned char *pData = mesh.sFaces.pData + i * mesh.sFaces.nStride;
3380 PVRTVertexRead(&ui32V[1], pData + mesh.sFaces.nStride, mesh.sFaces.eType);
3381 PVRTVertexRead(&ui32V[2], pData + 2 * mesh.sFaces.nStride, mesh.sFaces.eType);
3385 PVRTVertexWrite(pData + mesh.sFaces.nStride, mesh.sFaces.eType, ui32V[i32El2]);
3386 PVRTVertexWrite(pData + 2 * mesh.sFaces.nStride, mesh.sFaces.eType, ui32V[i32El3]);
3404 const PVRTuint32 nStride, argument
3408 if(!data.nStride)
3412 memcpy(pInterleaved + i * nStride + nOffset, (char*)data.pData + i * data.nStride, data.nStride);
3416 data.nStride = nStride;
3433 const PVRTuint32 nSrcStride = data.nStride;
3443 data.nStride = nAlignedStride;
3482 PVRTuint32 nStride, nOffset, nBytes; local
3495 nStride = nVertexStride = PVRTModelPODDataStride(mesh.sVertex);
3496 nStride += nVertexPadding = NEEDED_PADDING(nVertexStride);
3498 nStride += nNormalStride = PVRTModelPODDataStride(mesh.sNormals);
3499 nStride += nNormalPadding = NEEDED_PADDING(nNormalStride);
3501 nStride += nTangentStride = PVRTModelPODDataStride(mesh.sTangents);
3502 nStride += nTangentPadding = NEEDED_PADDING(nTangentStride);
3504 nStride += nBinormalStride = PVRTModelPODDataStride(mesh.sBinormals);
3505 nStride += nBinormalPadding = NEEDED_PADDING(nBinormalStride);
3509 nStride += nUVWStride[i] = PVRTModelPODDataStride(mesh.psUVW[i]);
3510 nStride += nUVWPadding[i] = NEEDED_PADDING(nUVWStride[i]);
3513 nStride += nVtxColourStride = PVRTModelPODDataStride(mesh.sVtxColours);
3514 nStride += nVtxColourPadding = NEEDED_PADDING(nVtxColourStride);
3516 nStride += nBoneIdxStride = PVRTModelPODDataStride(mesh.sBoneIdx);
3517 nStride += nBoneIdxPadding = NEEDED_PADDING(nBoneIdxStride);
3519 nStride += nBoneWeightStride = PVRTModelPODDataStride(mesh.sBoneWeight);
3520 nStride += nBoneWeightPadding = NEEDED_PADDING(nBoneWeightStride);
3524 SafeAlloc(mesh.pInterleaved, mesh.nNumVertex * nStride);
3532 …InterleaveArray((char*)mesh.pInterleaved, mesh.sVertex, mesh.nNumVertex, nStride, nVertexPadding, …
3535 …InterleaveArray((char*)mesh.pInterleaved, mesh.sNormals, mesh.nNumVertex, nStride, nNormalPadding,…
3538 …InterleaveArray((char*)mesh.pInterleaved, mesh.sTangents, mesh.nNumVertex, nStride, nTangentPaddin…
3541 …InterleaveArray((char*)mesh.pInterleaved, mesh.sBinormals, mesh.nNumVertex, nStride, nBinormalPadd…
3544 …InterleaveArray((char*)mesh.pInterleaved, mesh.sVtxColours, mesh.nNumVertex, nStride, nVtxColourPa…
3549 …InterleaveArray((char*)mesh.pInterleaved, mesh.psUVW[i], mesh.nNumVertex, nStride, nUVWPadding[i],…
3553 …InterleaveArray((char*)mesh.pInterleaved, mesh.sBoneIdx, mesh.nNumVertex, nStride, nBoneIdxPadding…
3556 …InterleaveArray((char*)mesh.pInterleaved, mesh.sBoneWeight, mesh.nNumVertex, nStride, nBoneWeightP…
3578 SafeAlloc(pNew, mesh.sVertex.nStride * mesh.nNumVertex);
3584 … * mesh.sVertex.nStride, (char*)mesh.pInterleaved + ((unsigned short*)mesh.sFaces.pData)[i] * mesh…
3591 …i * mesh.sVertex.nStride, (char*)mesh.pInterleaved + ((unsigned int*)mesh.sFaces.pData)[i] * mesh.…
3601 mesh.sFaces.nStride = 0;
3710 pFaces = &old.pData[3 * mesh.sBoneBatches.pnBatchOffset[h] * old.nStride];
3719 PVRTVertexRead(&n0, (char*)pFaces + (3 * i + 0) * old.nStride, old.eType);
3720 PVRTVertexRead(&n1, (char*)pFaces + (3 * i + 1) * old.nStride, old.eType);
3721 PVRTVertexRead(&n2, (char*)pFaces + (3 * i + 2) * old.nStride, old.eType);
3729 … PVRTVertexWrite((char*)mesh.sFaces.pData + nIdxCnt * mesh.sFaces.nStride, mesh.sFaces.eType, n2);
3739 … PVRTVertexWrite((char*)mesh.sFaces.pData + nIdxCnt * mesh.sFaces.nStride, mesh.sFaces.eType, n2);
3750 … PVRTVertexWrite((char*)mesh.sFaces.pData + nIdxCnt * mesh.sFaces.nStride, mesh.sFaces.eType, n0);
3752 … PVRTVertexWrite((char*)mesh.sFaces.pData + nIdxCnt * mesh.sFaces.nStride, mesh.sFaces.eType, n1);
3754 … PVRTVertexWrite((char*)mesh.sFaces.pData + nIdxCnt * mesh.sFaces.nStride, mesh.sFaces.eType, n2);
3796 out.nStride = in.nStride;
3911 if(bInterleaved && SafeAlloc(out.pInterleaved, out.nNumVertex * in.sVertex.nStride))
3912 memcpy(out.pInterleaved, in.pInterleaved, out.nNumVertex * in.sVertex.nStride);
4047 PVRTVertexRead(&fOrig, in.pData + (idx * in.nStride), in.eType, in.n);
4086 PVRTVertexWrite(out.pData + (idx * out.nStride), out.eType, in.n, &fResult);
4244 PVRTVertexRead(&idx, inMesh.sFaces.pData + (l * inMesh.sFaces.nStride), inMesh.sFaces.eType);
4250 …TVECTOR4f*) &fBoneIdx[0], inMesh.sBoneIdx.pData + (idx * inMesh.sBoneIdx.nStride), inMesh.sBoneIdx…
4251 …) &fBoneWeights[0], inMesh.sBoneWeight.pData + (idx * inMesh.sBoneWeight.nStride), inMesh.sBoneWei…
4270 … PVRTVertexRead(&idx, inMesh.sFaces.pData + (l * inMesh.sFaces.nStride), inMesh.sFaces.eType);
4276 …TVECTOR4f*) &fBoneIdx[0], inMesh.sBoneIdx.pData + (idx * inMesh.sBoneIdx.nStride), inMesh.sBoneIdx…
4277 …) &fBoneWeights[0], inMesh.sBoneWeight.pData + (idx * inMesh.sBoneWeight.nStride), inMesh.sBoneWei…