00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _OPENGL_PIXEL_FORMAT_H_
00021 #define _OPENGL_PIXEL_FORMAT_H_
00022
00023 #include <windows.h>
00024
00025 namespace TestFrameWork
00026 {
00027
00028 class OpenglPixelFormat
00029 {
00030 public:
00031 OpenglPixelFormat(int depth, int samples);
00032
00033 ~OpenglPixelFormat(void);
00034
00035 int GetPixelFormat(void) const;
00036
00037 int GetSelectedDepth(void) const;
00038
00039 int GetSamples(void) const;
00040
00041 PIXELFORMATDESCRIPTOR& GetDescriptor(void);
00042
00043 private:
00044 static const int m_defaultColorDepth;
00045 static const int m_defaultDepth;
00046
00047 int m_selectedDepth;
00048 int m_selectedSamples;
00049
00050 int m_pixelFormat;
00051
00052 PIXELFORMATDESCRIPTOR m_pixelFormatDesc;
00053
00054 int CreatePixelFormat(int& depth, int& samples);
00055
00056 bool WGLMultisampleExtension(void);
00057
00058 };
00059
00060 }
00061
00062 #endif