Add D3D11 project

This commit is contained in:
2026-11-23 13:32:53 +01:00
parent abf85aa6f7
commit 024a283898
24 changed files with 1793 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
#include "Utilities.h"
void ShowError(UINT error)
{
#if _DEBUG
LPCTSTR msg = TEXT("Application quit with an error: ");
#if UNICODE
std::wstring str = std::wstring(msg) + std::to_wstring(error);
msg = str.c_str();
#else // UNICODE
std::string str = std::string(msg) + std::to_string(error);
msg = str.c_str();
#endif // UNICODE
MessageBox(nullptr, msg, TEXT("Error"), MB_OK);
#endif // DEBUG
}