00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _OPENGL_LAST_ERROR_H_
00021 #define _OPENGL_LAST_ERROR_H_
00022
00023 #include <GL\glew.h>
00024
00025 #include <windows.h>
00026 #include <string>
00027
00028 namespace TestFrameWork
00029 {
00030
00031 class OpenglLastError
00032 {
00033 public:
00034 OpenglLastError(void);
00035
00036 ~OpenglLastError(void);
00037
00038 DWORD GetErrorCode(void) const;
00039
00040 const std::wstring& ToString(void) const;
00041
00042 bool IsLastErrorSet(void);
00043
00044 private:
00045 GLenum m_code;
00046
00047 std::wstring m_string;
00048
00049 std::wstring EnumToString(GLenum code);
00050 };
00051
00052 }
00053
00054 #endif