📄 error.h
字号:
// DirectX Error
#pragma once
#include <string>
#include "System/Error.h"
namespace DirectX
{
/// %DirectX implementation of %Error.
/// In the future we should find a solution that allows
/// sharing of the Windows implementation of Error across DirectX and OpenGL.
class Error : public System::Error
{
public:
Error(const char message[]) : System::Error(message)
{
}
virtual int report()
{
MessageBox(0, message(), title(), MB_OK | MB_ICONERROR | MB_SETFOREGROUND | MB_TOPMOST);
return 1;
}
virtual const char* title() const
{
return "DirectX Error";
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -