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

displaycard_svgalib.h

Go to the documentation of this file.
00001 /*
00002         $Id: displaycard_svgalib.h,v 1.1 2001/03/06 15:09:17 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_svgalib
00016 #define header_displaycard_svgalib
00017 
00018 #include "Display/Display/Generic/displaycard_generic.h"
00019 #include "Display/Display/Generic/target_system.h"
00020 
00021 class CL_DisplayCard_Svgalib : public CL_DisplayCard_Generic
00022 {
00023 public:
00024         CL_DisplayCard_Svgalib(int card_no);
00025         virtual ~CL_DisplayCard_Svgalib();
00026 
00027         // CL_DisplayCard functions:
00028         // -------------------------
00029 
00030         virtual void flip_display(bool sync=false);
00031         virtual void put_display(const class CL_Rect &rect);
00032 
00033         virtual void set_palette(CL_Palette *palette);
00034         virtual CL_Palette *get_palette();
00035 
00036         virtual void set_videomode(int width, int height, int bpp, bool fullscreen, bool allow_resize, bool video_memory);
00037         virtual bool is_initialized();
00038 
00039         virtual std::string get_name() { return "Svgalib Display"; }
00040         virtual int get_total_memory() { return -1; }
00041         virtual const std::list<CL_VidMode*> &get_videomodes();
00042 
00043         // CL_DisplayCard_Generic functions:
00044         // ---------------------------------
00045         
00046         virtual CL_Target *get_target() { return m_target; }
00047         virtual CL_Target *get_frontbuffer() { return m_target; }
00048 
00049 private:
00050         bool m_initialized;
00051         CL_Palette *m_palette;
00052         CL_Target_System *m_target;
00053 };
00054 
00055 #endif

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