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

target_ggi_db.h

Go to the documentation of this file.
00001 /*
00002         $Id: target_ggi_db.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_target_ggi_db
00016 #define header_target_ggi_db
00017 
00018 #ifdef USE_GGI
00019 
00020 #include <ggi/ggi.h>
00021 
00022 #include "target_ggi.h"
00023 
00024 class CL_Target_GGI_DB : public CL_Target_GGI
00025 {
00026 public:
00027         CL_Target_GGI_DB(ggi_visual_t vis, int frame);
00028                 
00029         virtual ~CL_Target_GGI_DB();
00030 
00031         virtual void lock();
00032         virtual void unlock();
00033 
00034         virtual void *get_data() const;
00035         virtual void to_back();
00036         virtual void to_front();
00037 
00038         virtual unsigned int get_width() const;
00039         virtual unsigned int get_height() const;
00040         virtual unsigned int get_pitch() const;
00041         
00042         virtual unsigned int get_depth() const;
00043         virtual unsigned int get_red_mask() const;
00044         virtual unsigned int get_green_mask() const;
00045         virtual unsigned int get_blue_mask() const;
00046         virtual unsigned int get_alpha_mask() const;
00047 
00048         virtual bool is_indexed() const { return false; }
00049 
00050         virtual CL_Palette *get_palette() const;
00051         virtual unsigned int get_num_frames() const { return 1; }
00052         
00053         virtual bool is_video() { return true; }
00054 
00055 protected:
00056         const ggi_directbuffer* m_db;
00057         int                     m_frame;
00058         void*                   m_fb;
00059 };
00060 
00061 #endif /*USE_GGI*/
00062 
00063 #endif

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