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

target_ximage_dga.h

Go to the documentation of this file.
00001 /*
00002         $Id: target_ximage_dga.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_ximage_dga
00016 #define header_target_ximage_dga
00017 
00018 #ifdef USE_X11
00019 
00020 #include "target_ximage.h"
00021 
00022 // #include <X11/extensions/XDGA.h>
00023 
00024 class CL_Target_XImage_DGA : public CL_Target_XImage
00025 {
00026 public:
00027         CL_Target_XImage_DGA(
00028                 XVisualInfo visual_info,
00029                 Display *dpy,
00030                 unsigned int width,
00031                 unsigned int height);
00032                 
00033         virtual ~CL_Target_XImage_DGA();
00034 
00035         virtual void lock();
00036         virtual void unlock();
00037 
00038         virtual void *get_data() const;
00039 
00040         virtual unsigned int get_width() const;
00041         virtual unsigned int get_height() const;
00042         virtual unsigned int get_pitch() const;
00043         
00044         virtual unsigned int get_depth() const;
00045         virtual unsigned int get_red_mask() const;
00046         virtual unsigned int get_green_mask() const;
00047         virtual unsigned int get_blue_mask() const;
00048         virtual unsigned int get_alpha_mask() const;
00049         virtual bool is_indexed() const;
00050                 
00051         virtual unsigned int get_num_frames() const { return 1; }
00052 
00053         virtual CL_Palette *get_palette() const;
00054         
00055         virtual void put_image(int x, int y, Drawable win, GC gc);
00056         virtual void put_image(int x, int y, const class CL_Rect &rect, Drawable win, GC gc);
00057         
00058 protected:
00059         XVisualInfo m_visual_info;
00060         Display *m_dpy;
00061         
00062         unsigned int m_width;
00063         unsigned int m_height;
00064         unsigned int m_depth, m_pitch;
00065 
00066         XImage *m_dga_image;
00067 };
00068 
00069 #endif /*USE_X11*/
00070 
00071 #endif

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