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

cardsurface.h

Go to the documentation of this file.
00001 /*
00002         $Id: cardsurface.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_cardsurface
00016 #define header_cardsurface
00017 
00018 class CL_SurfaceProvider;
00019 class CL_Target;
00020 
00021 class CL_CardSurface
00022 {
00023 public:
00024         CL_CardSurface(CL_SurfaceProvider *provider)
00025         {
00026                 m_provider = provider;
00027         }
00028 
00029         virtual ~CL_CardSurface() {;}
00030 
00031         virtual CL_SurfaceProvider *get_provider()
00032         {
00033                 return m_provider;
00034         }
00035 
00036         virtual bool reload()=0;
00037 
00038         virtual bool can_convert_video()=0;
00039         virtual bool can_convert_system()=0;
00040 
00041         virtual bool convert_video()=0;
00042         virtual bool convert_system()=0;
00043 
00044         virtual void put_screen(
00045                 int x,
00046                 int y,
00047                 int spr_no,
00048                 CL_Target *target)=0;
00049                 
00050         virtual void put_screen(
00051                 int x,
00052                 int y,
00053                 float scale_x,
00054                 float scale_y,
00055                 int spr_no,
00056                 CL_Target *target)=0;
00057 
00058         virtual void put_screen(
00059                 int x,
00060                 int y,
00061                 int size_x,
00062                 int size_y,
00063                 int spr_no,
00064                 CL_Target *target)=0;
00065                 
00066         virtual bool is_video()=0;
00067 
00068 protected:
00069         CL_SurfaceProvider *m_provider;
00070 };
00071 
00072 #endif

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