My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
gui_h  
Updated May 27, 2012 by victorc...@gmail.com
#ifndef _GUI_H_
#define _GUI_H_

#include "SDL/SDL.h"
//#include "SDL/SDL_image.h"

class SDL
{
      private:
              SDL_Surface* screen;
              bool running;
              //screen definitions
              int width, height, bpp;
              Uint32 flags;         
      public:
             SDL();
             virtual ~SDL();
             SDL_Rect source;
             SDL_Rect destination;
             
             void setupScreen(int tWidth, int tHeight, int tBpp, Uint32 tFlags);
             void setupExtra(const char* title, const char* icon);
             void setIcon(char* tFile, Uint8* tMask);
             void supportScreen();
             
             void initVideo();
             void initTimer();
             //void quitVideo();
             //void quitTimer();
             
             void delay(Uint32 ms);
             void quit();
             
             bool getRunning();
             void setRunning(bool OPrunning);
};

#endif
Powered by Google Project Hosting