Advertisement
Vchavauty

Surface.h

Jul 26th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  1. #ifndef _SURFACE_HEADER
  2. #define _SURFACE_HEADER
  3. #include <SDL/SDL.h>
  4.  
  5. class MySurface
  6. {
  7. public:
  8.     static SDL_Surface *OnLoad(char *File);
  9.     static bool OnDraw(SDL_Surface *Main, SDL_Surface *Src, int X, int Y); //This Will Draw an Image onto X, Y Position
  10.     static bool OnDraw(SDL_Surface *Main, SDL_Surface *Src, int X, int Y, int X2, int Y2, int W, int H); //This will load certain parts of an image (X2, Y2, Widht, Height) onto a part of the screen (X, Y)
  11.     static bool Transparent(SDL_Surface *Surface, int R, int G, int B); //This will delete the Colors RGB of the image of a Surface
  12. };
  13. #endif // _SURFACE_HEADER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement