BorderTexture.h

Aller à la documentation de ce fichier.
00001 #ifndef BORDERTEXTURE_H
00002 #define BORDERTEXTURE_H
00003 
00009 #include <SDL/sdl.h>
00010 #include "log.h"
00011 
00013 typedef enum{HAUTGAUCHE,HAUT,HAUTDROITE,DROITE,BASDROITE,BAS,BASGAUCHE,GAUCHE}BorderPosition_FR;
00015 //typedef enum{TopLeft,Top,TopRight,Right,BotomRight,Botom,BotomLeft,Left}BorderPosition_EN;
00016 #define BorderPosition BorderPosition_FR 
00017 
00018 
00024 class BorderTexture
00025 {
00026     public:
00030         BorderTexture();
00034         virtual ~BorderTexture();
00039         bool isInit();
00052         bool InitTextures(char* filetexTopLeft, char* filetexTop,char* filetexTopRight,char* filetexRight,char* filetexBotomRight,char* filetexBotom,char* filetexBotomLeft,char* filetexLeft);
00058         bool Draw(SDL_Surface *target, SDL_Rect *position);
00063         BorderTexture(const BorderTexture &source);
00069         BorderTexture & operator=(const BorderTexture &source);
00070     protected:
00074         void incRefcounts(void);
00075 
00076     public:
00077         int width[8]; 
00078         int height[8]; 
00079     protected:
00080         SDL_Surface *texTop; 
00081         SDL_Surface *texLeft; 
00082         SDL_Surface *texBotom; 
00083         SDL_Surface *texRight; 
00084         SDL_Surface *texTopLeft; 
00085         SDL_Surface *texTopRight; 
00086         SDL_Surface *texBotomLeft; 
00087         SDL_Surface *texBotomRight; 
00088         bool init; 
00089     private:
00090 
00091 };
00092 
00093 #endif // BORDERTEXTURE_H

Généré le Sun Nov 15 16:53:06 2009 pour PFen par  doxygen 1.6.1