⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 error.h

📁 一个纹理地形渲染器
💻 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 + -