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

target_ggi_put.h

Go to the documentation of this file.
00001 /*
00002         $Id: target_ggi_put.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_put
00016 #define header_target_ggi_put
00017 
00018 #ifdef USE_GGI
00019 
00020 #include <ggi/ggi.h>
00021 
00022 #include "target_ggi.h"
00023 
00024 class CL_Target_GGI_Put : public CL_Target_GGI
00025 {
00026 public:
00027         CL_Target_GGI_Put(ggi_visual_t vis);
00028                 
00029         virtual ~CL_Target_GGI_Put();
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         virtual unsigned int get_num_frames() const { return 1; }
00048 
00049         virtual bool is_indexed() const { return false; }
00050         virtual CL_Palette *get_palette() const;
00051         
00052         virtual bool is_video() { return false; }
00053         
00054 protected:
00055         int                     image_size;
00056         void*                   image_data;
00057         const ggi_pixelformat*  m_pixelformat;
00058 };
00059 
00060 #endif /*USE_GGI*/
00061 
00062 #endif

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