Added validation step, added helper macro AI_BUILD_KEY to the material system.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@59 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2008-06-15 10:27:08 +00:00
parent d6fc5de7d5
commit 758e092449
25 changed files with 1287 additions and 182 deletions

View File

@@ -1589,14 +1589,14 @@ INT_PTR CALLBACK MessageProc(HWND hwndDlg,UINT uMsg,
// check whether it is a typical texture file format ...
++sz;
if (0 == Assimp::ASSIMP_stricmp(sz,"png") ||
0 == Assimp::ASSIMP_stricmp(sz,"bmp") ||
0 == Assimp::ASSIMP_stricmp(sz,"jpg") ||
0 == Assimp::ASSIMP_stricmp(sz,"tga") ||
0 == Assimp::ASSIMP_stricmp(sz,"tif") ||
0 == Assimp::ASSIMP_stricmp(sz,"hdr") ||
0 == Assimp::ASSIMP_stricmp(sz,"ppm") ||
0 == Assimp::ASSIMP_stricmp(sz,"pfm"))
if (0 == ASSIMP_stricmp(sz,"png") ||
0 == ASSIMP_stricmp(sz,"bmp") ||
0 == ASSIMP_stricmp(sz,"jpg") ||
0 == ASSIMP_stricmp(sz,"tga") ||
0 == ASSIMP_stricmp(sz,"tif") ||
0 == ASSIMP_stricmp(sz,"hdr") ||
0 == ASSIMP_stricmp(sz,"ppm") ||
0 == ASSIMP_stricmp(sz,"pfm"))
{
CBackgroundPainter::Instance().SetTextureBG(szFile);
}