• Home
  • Raw
  • Download

Lines Matching refs:psVol

493 	PVRTShadowVolShadowVol			* const psVol,  in PVRTShadowVolMeshInitVol()  argument
503 _ASSERT(psVol); in PVRTShadowVolMeshInitVol()
515 psVol->nIdxCntMax = psMesh->nT * 2 * 3; in PVRTShadowVolMeshInitVol()
525 hRes = pContext->pDev->CreateBuffer(&sIdxBuferDesc, NULL, &psVol->piib) != S_OK; in PVRTShadowVolMeshInitVol()
536 pContext->pglExt->glGenBuffersARB(1, &psVol->piib); in PVRTShadowVolMeshInitVol()
537 pContext->pglExt->glBindBufferARB(GL_ARRAY_BUFFER_ARB, psVol->piib); in PVRTShadowVolMeshInitVol()
542 psVol->piib = (unsigned short*)malloc(psMesh->nT * 2 * 3 * sizeof(unsigned short)); in PVRTShadowVolMeshInitVol()
588 PVRTShadowVolShadowVol * const psVol, in PVRTShadowVolMeshReleaseVol() argument
595 psContext->pglExt->glDeleteBuffersARB(1, &psVol->piib); in PVRTShadowVolMeshReleaseVol()
600 FREE(psVol->piib); in PVRTShadowVolMeshReleaseVol()
615 PVRTShadowVolShadowVol * const psVol, in PVRTShadowVolSilhouetteProjectedBuild() argument
622 …PVRTShadowVolSilhouetteProjectedBuild(psVol, dwVisFlags,psMesh, (PVRTVECTOR3*) pvLightModel, bPoin… in PVRTShadowVolSilhouetteProjectedBuild()
636 PVRTShadowVolShadowVol * const psVol, in PVRTShadowVolSilhouetteProjectedBuild() argument
656 _ASSERT(psVol && psVol->piib); in PVRTShadowVolSilhouetteProjectedBuild()
669 hRes = pDeviceContext->Map(psVol->piib, 0, D3D11_MAP_WRITE_DISCARD, NULL, &data); in PVRTShadowVolSilhouetteProjectedBuild()
679 pContext->pglExt->glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, psVol->piib); in PVRTShadowVolSilhouetteProjectedBuild()
683 pwIdx = psVol->piib; in PVRTShadowVolSilhouetteProjectedBuild()
686 psVol->nIdxCnt = 0; in PVRTShadowVolSilhouetteProjectedBuild()
715 pwIdx[psVol->nIdxCnt+0] = psTri->w[0]; in PVRTShadowVolSilhouetteProjectedBuild()
716 pwIdx[psVol->nIdxCnt+1] = psTri->w[1]; in PVRTShadowVolSilhouetteProjectedBuild()
717 pwIdx[psVol->nIdxCnt+2] = psTri->w[2]; in PVRTShadowVolSilhouetteProjectedBuild()
718 psVol->nIdxCnt += 3; in PVRTShadowVolSilhouetteProjectedBuild()
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()
733 psVol->nIdxCnt += 3; in PVRTShadowVolSilhouetteProjectedBuild()
739 _ASSERT(psVol->nIdxCnt <= psVol->nIdxCntMax); in PVRTShadowVolSilhouetteProjectedBuild()
740 for(nCurr = 0; nCurr < psVol->nIdxCnt; ++nCurr) { in PVRTShadowVolSilhouetteProjectedBuild()
759 pwIdx[psVol->nIdxCnt+0] = psEdge->wV0; in PVRTShadowVolSilhouetteProjectedBuild()
760 pwIdx[psVol->nIdxCnt+1] = psEdge->wV1; 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()
764 pwIdx[psVol->nIdxCnt+4] = psEdge->wV1; in PVRTShadowVolSilhouetteProjectedBuild()
765 pwIdx[psVol->nIdxCnt+5] = psEdge->wV1 + (unsigned short) psMesh->nV; in PVRTShadowVolSilhouetteProjectedBuild()
767 pwIdx[psVol->nIdxCnt+0] = psEdge->wV1; in PVRTShadowVolSilhouetteProjectedBuild()
768 pwIdx[psVol->nIdxCnt+1] = psEdge->wV0; 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()
772 pwIdx[psVol->nIdxCnt+4] = psEdge->wV0; in PVRTShadowVolSilhouetteProjectedBuild()
773 pwIdx[psVol->nIdxCnt+5] = psEdge->wV0 + (unsigned short) psMesh->nV; in PVRTShadowVolSilhouetteProjectedBuild()
776 psVol->nIdxCnt += 6; in PVRTShadowVolSilhouetteProjectedBuild()
784 _ASSERT(psVol->nIdxCnt <= psVol->nIdxCntMax); in PVRTShadowVolSilhouetteProjectedBuild()
785 for(nCurr = 0; nCurr < psVol->nIdxCnt; ++nCurr) { in PVRTShadowVolSilhouetteProjectedBuild()
795 pDeviceContext->Unmap(psVol->piib, 0); in PVRTShadowVolSilhouetteProjectedBuild()
1269 const PVRTShadowVolShadowVol * const psVol, in PVRTShadowVolSilhouetteProjectedRender() argument
1280 _ASSERT(psVol->nIdxCnt <= psVol->nIdxCntMax); in PVRTShadowVolSilhouetteProjectedRender()
1281 _ASSERT(psVol->nIdxCnt % 3 == 0); in PVRTShadowVolSilhouetteProjectedRender()
1282 _ASSERT(psVol->nIdxCnt / 3 <= 0xFFFF); in PVRTShadowVolSilhouetteProjectedRender()
1290 pContext->pglExt->glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, psVol->piib); in PVRTShadowVolSilhouetteProjectedRender()
1298 glDrawElements(GL_TRIANGLES, psVol->nIdxCnt, GL_UNSIGNED_SHORT, NULL); in PVRTShadowVolSilhouetteProjectedRender()
1306 return psVol->nIdxCnt / 3; in PVRTShadowVolSilhouetteProjectedRender()
1320 glDrawElements(GL_TRIANGLES, psVol->nIdxCnt, GL_UNSIGNED_SHORT, psVol->piib); in PVRTShadowVolSilhouetteProjectedRender()
1325 return psVol->nIdxCnt / 3; in PVRTShadowVolSilhouetteProjectedRender()
1338 glDrawElements(GL_TRIANGLES, psVol->nIdxCnt, GL_UNSIGNED_SHORT, psVol->piib); in PVRTShadowVolSilhouetteProjectedRender()
1344 return psVol->nIdxCnt / 3; in PVRTShadowVolSilhouetteProjectedRender()