00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef VIDEO_BASIC_H_
00010 #define VIDEO_BASIC_H_
00011
00012 #include "../ngt.h"
00013 #include <string>
00014
00015 using namespace std;
00016
00018
00021 class NGT_Surface{
00022 public:
00024 int x;
00026 int y;
00028 SDL_Surface *surface;
00029
00030
00031
00032
00033 NGT_Surface() {};
00035 void draw(SDL_Surface *surf);
00037 void free(){ SDL_FreeSurface(surface); };
00039 int LoadIMG(char *filename);
00040
00041
00042 };
00043
00044
00046 SDL_Surface *NGT_SurfaceLoad(char* file);
00047
00049 void SurfaceDraw(SDL_Surface *screen, SDL_Surface *img, int x, int y);
00050
00051
00052 void SurfaceDraw(SDL_Surface *screen, SDL_Surface *img, int x, int y, int w, int h, int x2, int y2);
00053
00054
00055 #endif