Main Page | Namespace List | Class List | File List | Class Members | File Members

video_basic.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   NGT (Neopontec Gaming Toolkit                                         *
00003  *   Distributed under the terms of the GNU LGPL License                   *
00004  *   Copyright (C) 2005 by Hector Blanco de Frutos                         *
00005  *   hectorblanco@neopontec.com                                            *
00006  *   Refer to the LICENSE file to read the full license agreement          *
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                 // Functions
00031                 
00032                 // Constructor
00033                 NGT_Surface() {};       // Constructor
00035                 void draw(SDL_Surface *surf);
00037                 void free(){ SDL_FreeSurface(surface); };
00039                 int LoadIMG(char *filename);
00040                 
00041                 
00042         };
00043         
00044         // Independent functions (for compatibility and non OBJ oriented)
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 /*VIDEO_BASIC_H_*/

Generated on Sat Feb 4 10:15:16 2006 for Neopntec Gaming Toolkit - API reference by  doxygen 1.4.4