error.h
来自「一个纹理地形渲染器」· C头文件 代码 · 共 35 行
H
35 行
// 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 + =
减小字号Ctrl + -
显示快捷键?