Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

displaycard_opengl_win32.h

Go to the documentation of this file.
00001 /*
00002         $Id: displaycard_opengl_win32.h,v 1.3 2000/11/21 09:32:02 mbn Exp $
00003 
00004         ------------------------------------------------------------------------
00005         ClanLib, the platform independent game SDK.
00006 
00007         This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00008         version 2. See COPYING for details.
00009 
00010         For a total list of contributers see CREDITS.
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         // CL_GL_DisplayCard_Generic
00035         // -------------------------
00036         
00037         virtual int get_max_texture_size() { return max_texture_size; }
00038 
00039         // CL_DisplayCard functions:
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 //      bool initialized;
00051 
00052         static HGLRC context;
00053         static HDC hdc;
00054 
00055         GLint max_texture_size;
00056 };
00057 
00058 #endif // USE_OPENGL
00059 
00060 #endif

Generated at Wed Apr 4 19:54:00 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001