Lines Matching refs:srcMaterial
4483 const SPODMaterial &srcMaterial = src.pMaterial[i]; local
4494 if(strcmp(srcMaterial.pszName, dstMaterial.pszName) == 0)
4499 if(!MergeTexture(src, dst, srcMaterial.nIdxTexDiffuse, dstMaterial.nIdxTexDiffuse))
4505 if(!MergeTexture(src, dst, srcMaterial.nIdxTexAmbient, dstMaterial.nIdxTexAmbient))
4511 … if(!MergeTexture(src, dst, srcMaterial.nIdxTexSpecularColour, dstMaterial.nIdxTexSpecularColour))
4517 if(!MergeTexture(src, dst, srcMaterial.nIdxTexSpecularLevel, dstMaterial.nIdxTexSpecularLevel))
4523 if(!MergeTexture(src, dst, srcMaterial.nIdxTexBump, dstMaterial.nIdxTexBump))
4529 if(!MergeTexture(src, dst, srcMaterial.nIdxTexEmissive, dstMaterial.nIdxTexEmissive))
4535 if(!MergeTexture(src, dst, srcMaterial.nIdxTexGlossiness, dstMaterial.nIdxTexGlossiness))
4541 if(!MergeTexture(src, dst, srcMaterial.nIdxTexOpacity, dstMaterial.nIdxTexOpacity))
4547 if(!MergeTexture(src, dst, srcMaterial.nIdxTexReflection, dstMaterial.nIdxTexReflection))
4553 if(!MergeTexture(src, dst, srcMaterial.nIdxTexRefraction, dstMaterial.nIdxTexRefraction))
4559 dstMaterial.eBlendSrcRGB = srcMaterial.eBlendSrcRGB;
4560 dstMaterial.eBlendSrcA = srcMaterial.eBlendSrcA;
4561 dstMaterial.eBlendDstRGB = srcMaterial.eBlendDstRGB;
4562 dstMaterial.eBlendDstA = srcMaterial.eBlendDstA;
4563 dstMaterial.eBlendOpRGB = srcMaterial.eBlendOpRGB;
4564 dstMaterial.eBlendOpA = srcMaterial.eBlendOpA;
4565 memcpy(dstMaterial.pfBlendColour, srcMaterial.pfBlendColour, 4 * sizeof(VERTTYPE));
4566 memcpy(dstMaterial.pfBlendFactor, srcMaterial.pfBlendFactor, 4 * sizeof(VERTTYPE));
4567 dstMaterial.nFlags = srcMaterial.nFlags;
4570 if(srcMaterial.pszEffectFile)
4573 dstMaterial.pszEffectFile = (char*) malloc(strlen(srcMaterial.pszEffectFile) + 1);
4574 strcpy(dstMaterial.pszEffectFile, srcMaterial.pszEffectFile);
4577 if(srcMaterial.pszEffectName)
4580 dstMaterial.pszEffectName = (char*) malloc(strlen(srcMaterial.pszEffectName) + 1);
4581 strcpy(dstMaterial.pszEffectName, srcMaterial.pszEffectName);