Lines Matching refs:nV
105 for(wCurr = 0; wCurr < psMesh->nV; wCurr++) { in FindOrCreateVertex()
115 psMesh->pV[psMesh->nV] = *pV; in FindOrCreateVertex()
117 return (unsigned short) psMesh->nV++; in FindOrCreateVertex()
320 _ASSERT(psMesh->nV <= nNumVertex); in PVRTShadowVolMeshCreateMesh()
324 _RPT2(_CRT_WARN, "Unique vertices : %d (from %d)\n", psMesh->nV, nNumVertex); in PVRTShadowVolMeshCreateMesh()
331 psMesh->pV = (PVRTVECTOR3*)realloc(psMesh->pV, psMesh->nV * sizeof(*psMesh->pV)); in PVRTShadowVolMeshCreateMesh()
400 _ASSERT(psMesh->nV); in PVRTShadowVolMeshInitMesh()
408 …hInitMesh() %5d byte VB (%3dv x 2 x size(%d))\n", psMesh->nV * 2 * sizeof(*pvData), psMesh->nV, si… in PVRTShadowVolMeshInitMesh()
412 sVBBufferDesc.ByteWidth = psMesh->nV * 2 * 3 * sizeof(*pvData); in PVRTShadowVolMeshInitMesh()
446 …pContext->pglExt->glBufferDataARB(GL_ARRAY_BUFFER_ARB, psMesh->nV * 2 * sizeof(*pvData), NULL, GL_… in PVRTShadowVolMeshInitMesh()
451 psMesh->pivb = malloc(psMesh->nV * 2 * sizeof(*pvData)); in PVRTShadowVolMeshInitMesh()
458 for(nCurr = 0; nCurr < psMesh->nV; ++nCurr) in PVRTShadowVolMeshInitMesh()
467 pvData[nCurr + psMesh->nV].fWeight = 1; in PVRTShadowVolMeshInitMesh()
469 pvData[nCurr + psMesh->nV] = pvData[nCurr]; in PVRTShadowVolMeshInitMesh()
470 pvData[nCurr + psMesh->nV].dwExtrude = 0x04030201; // Order is wzyx in PVRTShadowVolMeshInitMesh()
505 _ASSERT(psMesh->nV); in PVRTShadowVolMeshInitVol()
730 pwIdx[psVol->nIdxCnt+0] = (unsigned short) psMesh->nV + psTri->w[0]; in PVRTShadowVolSilhouetteProjectedBuild()
731 pwIdx[psVol->nIdxCnt+1] = (unsigned short) psMesh->nV + psTri->w[1]; in PVRTShadowVolSilhouetteProjectedBuild()
732 pwIdx[psVol->nIdxCnt+2] = (unsigned short) psMesh->nV + psTri->w[2]; in PVRTShadowVolSilhouetteProjectedBuild()
741 _ASSERT(pwIdx[nCurr] < psMesh->nV*2); in PVRTShadowVolSilhouetteProjectedBuild()
761 pwIdx[psVol->nIdxCnt+2] = psEdge->wV0 + (unsigned short) psMesh->nV; in PVRTShadowVolSilhouetteProjectedBuild()
763 pwIdx[psVol->nIdxCnt+3] = psEdge->wV0 + (unsigned short) psMesh->nV; in PVRTShadowVolSilhouetteProjectedBuild()
765 pwIdx[psVol->nIdxCnt+5] = psEdge->wV1 + (unsigned short) psMesh->nV; in PVRTShadowVolSilhouetteProjectedBuild()
769 pwIdx[psVol->nIdxCnt+2] = psEdge->wV1 + (unsigned short) psMesh->nV; in PVRTShadowVolSilhouetteProjectedBuild()
771 pwIdx[psVol->nIdxCnt+3] = psEdge->wV1 + (unsigned short) psMesh->nV; in PVRTShadowVolSilhouetteProjectedBuild()
773 pwIdx[psVol->nIdxCnt+5] = psEdge->wV0 + (unsigned short) psMesh->nV; in PVRTShadowVolSilhouetteProjectedBuild()
786 _ASSERT(pwIdx[nCurr] < psMesh->nV*2); in PVRTShadowVolSilhouetteProjectedBuild()