Interface.hpp (639B)
1 #include "Application.hpp" 2 #include <SDL/SDL.h> 3 #include <SDL/SDL_ttf.h> 4 5 class Interface 6 { 7 Application sonExplorateur; 8 int sonX, sonY, sonScroll, sonMenu; 9 std::map<std::string, SDL_Surface *> sesIcones; 10 SDL_Color sonBlanc, sonNoir, sonFocus; 11 SDL_Surface * sonEcran, * sonArrierePlan, * sonFondMessage, * sonFondMenu, * sonMenuSelectionne, * sonIconeDossier, * sonIconeFichier, * sonIconeInconnu; 12 TTF_Font * saPolice; 13 void afficher(); 14 void boucler(); 15 SDL_Surface * chargerImage(std::string) const; 16 void ecrire(std::string, int, int, bool); 17 SDL_Surface * getSonIcone(std::string) const; 18 public : 19 Interface(); 20 ~Interface(); 21 }; 22