- fixed UV coords
 - added further test models

Collada
 - fixed invalid aiStrings

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@343 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2009-02-12 15:58:55 +00:00
parent e5b06832b7
commit fd9769eae6
17 changed files with 201 additions and 81 deletions

View File

@@ -1156,6 +1156,42 @@ void InitUI()
return;
}
//-------------------------------------------------------------------------------
// Message prcoedure for the smooth normals dialog
//-------------------------------------------------------------------------------
INT_PTR CALLBACK SMMessageProc(HWND hwndDlg,UINT uMsg,
WPARAM wParam,LPARAM lParam)
{
UNREFERENCED_PARAMETER(lParam);
switch (uMsg)
{
case WM_INITDIALOG:
char s[30];
::sprintf(s,"%.2f",g_smoothAngle);
SetDlgItemText(hwndDlg,IDC_EDITSM,s);
return TRUE;
case WM_CLOSE:
EndDialog(hwndDlg,0);
return TRUE;
case WM_COMMAND:
if (IDOK == LOWORD(wParam)) {
char s[30];
GetDlgItemText(hwndDlg,IDC_EDITSM,s,30);
g_smoothAngle = atof(s);
EndDialog(hwndDlg,0);
}
else if (IDCANCEL == LOWORD(wParam)) {
EndDialog(hwndDlg,1);
}
return TRUE;
}
return FALSE;
}
//-------------------------------------------------------------------------------
// Main message procedure of the application
//
@@ -1763,6 +1799,10 @@ __DRUNKEN_ALIEN_FROM_MARS:
D3DCOLOR_ARGB(0xFF,0xFF,0xFF,0));
}
}
else if (ID_TOOLS_SETANGLELIMIT == LOWORD(wParam))
{
DialogBox(g_hInstance,MAKEINTRESOURCE(IDD_DIALOGSMOOTH),g_hDlg,&SMMessageProc);
}
else if (ID_VIEWER_CLEARHISTORY == LOWORD(wParam))
{
ClearHistory();