00001 #include <SDL/SDL.h>
00002 #include <SDL/SDL_ttf.h>
00003 #ifndef _RELOJ_H
00004 #define _RELOJ_H
00005
00009 class reloj {
00010 public:
00016 reloj(Uint32 posx, Uint32 posy);
00023 reloj(Uint32 tiempo, Uint32 posx, Uint32 posy);
00028 void actualizartiempo(SDL_Surface* pantalla);
00033 void consultartiempo(Uint32 *min, Uint32 *seg);
00036 Uint32 consultarseg();
00041 void dibujatiempo(SDL_Surface* pantalla);
00045 void settime(Uint32 min, Uint32 seg);
00046 virtual ~reloj();
00047 private:
00048 Uint32 minutos, segundos, _posx, _posy;
00049 TTF_Font *fuente;
00050 bool cronometro;
00051 SDL_Surface *texto;
00052 };
00053
00054 #endif
00055