MD2
- 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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user