Advertisement
expired6978

Untitled

May 14th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1.             else if(value->key == OVRValue::kParam_TextureSet) {
  2.                 BGSTextureSet * textureSet = (BGSTextureSet *)value->data.p;
  3.                 if(textureSet)
  4.                 {
  5.                     if(immediate)
  6.                     {
  7.                         char buffer[MAX_PATH];
  8.                         for(UInt32 i = 0; i < BSTextureSet::kNumTextures; i++)
  9.                         {
  10.                             const char * texturePath = textureSet->textureSet.GetTexturePath(i);
  11.                             if(texturePath)
  12.                             {
  13.                                 strcpy_s(buffer, MAX_PATH, "Data\\Textures\\");
  14.                                 strcat_s(buffer, MAX_PATH, texturePath);
  15.                                 material->textureSet->SetTexturePath(i, buffer);
  16.                             }
  17.                         }
  18.                         material->ReleaseTextures();
  19.                         CALL_MEMBER_FN(lightingShader, InvalidateTextures)(0);
  20.                     }
  21.                     else
  22.                         CALL_MEMBER_FN(BSTaskPool::GetSingleton(), SetNiGeometryTexture)(geometry, textureSet);
  23.                 }
  24.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement