00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef header_displaycard_opengl_win32
00016 #define header_displaycard_opengl_win32
00017
00018 #ifdef USE_OPENGL
00019
00020 #include "GL/Generic/displaycard_gl_generic.h"
00021 #include <GL/gl.h>
00022 #include <GL/glu.h>
00023
00024 class CL_OpenGL_Initializer;
00025
00026 class CL_DisplayCard_OpenGL_Win32 : public CL_GL_DisplayCard_Generic
00027 {
00028 public:
00029 CL_DisplayCard_OpenGL_Win32(int card_no);
00030 virtual ~CL_DisplayCard_OpenGL_Win32();
00031
00032 static void __cdecl add_display();
00033
00034
00035
00036
00037 virtual int get_max_texture_size() { return max_texture_size; }
00038
00039
00040
00041
00042 virtual void flip_display(bool sync=false);
00043 virtual void put_display(const class CL_Rect &rect);
00044 virtual void set_videomode(int width, int height, int bpp, bool fullscreen, bool allow_resize, bool video_memory);
00045
00046 virtual std::string get_name() { return "opengl"; }
00047
00048 private:
00049 friend CL_OpenGL_Initializer;
00050
00051
00052 static HGLRC context;
00053 static HDC hdc;
00054
00055 GLint max_texture_size;
00056 };
00057
00058 #endif // USE_OPENGL
00059
00060 #endif