drawSurface.h

Go to the documentation of this file.
00001 #ifndef SURFACE_DRAW_H
00002 #define SURFACE_DRAW_H
00003 
00013 #include "surfaceInterface.h"
00014 #include "sdlVideo.h"
00015 
00016 
00020 class DrawSurface : public SurfaceInterface {
00021   SDL_Surface* surface;
00022   void setSize(void);
00023   SDL_Surface* surfaceTransparent(SDL_Surface* sdlSurface);
00024 
00025 public:
00026   DrawSurface(void);
00027 
00034   DrawSurface(const char* bmpFile, bool transparent = false);
00035 
00042   DrawSurface(SDL_Surface* sdlSurface, bool transparent = false);
00043   virtual ~DrawSurface(void);
00044   bool draw(const VXV::Rect& size,
00045             const VXV::Grid& pos, unsigned long ticks);
00046 
00053   void load(const char* bmpFile, bool transparent = false);
00054 
00061   void load(SDL_Surface* sdlSurface, bool transparent = false);
00062 };
00063 
00064 #endif /* !SURFACE_DRAW_H */
00065 

Generated on Mon Apr 13 22:52:02 2009 by  doxygen 1.5.7.1