00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _OPENGL_CONTEXT_H_
00021 #define _OPENGL_CONTEXT_H_
00022
00023 #include <boost\utility.hpp>
00024 #include <windows.h>
00025
00026 namespace TestFrameWork
00027 {
00028
00029 class OpenglContext :
00030 boost::noncopyable
00031 {
00032 public:
00033 OpenglContext(HDC deviceContext, int depth, int samples);
00034
00035 ~OpenglContext(void);
00036
00037 private:
00038 HDC m_deviceContext;
00039
00040 HGLRC m_context;
00041
00042 void CreateContext(int pixelFormat, PIXELFORMATDESCRIPTOR& pixelFormatDescriptor);
00043
00044 void DestroyContext(void);
00045 };
00046
00047
00048 }
00049
00050
00051 #endif