Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _SURFACE_HEADER
- #define _SURFACE_HEADER
- #include <SDL/SDL.h>
- class MySurface
- {
- public:
- static SDL_Surface *OnLoad(char *File);
- static bool OnDraw(SDL_Surface *Main, SDL_Surface *Src, int X, int Y); //This Will Draw an Image onto X, Y Position
- 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)
- static bool Transparent(SDL_Surface *Surface, int R, int G, int B); //This will delete the Colors RGB of the image of a Surface
- };
- #endif // _SURFACE_HEADER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement