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