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

engine_base.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 /*************************************************************************** 
00010  *                      Engine base header                                                                                         *
00011  ***************************************************************************/
00017 #ifndef ENGINE_BASE_H_
00018 #define ENGINE_BASE_H_
00019 
00020 
00021 #include "../ngt.h"
00022 #include "machine_gp2x.h"
00023 #include <string>
00024         
00025         using namespace std;
00026         
00027         
00028 // Machine targets definitions
00029 // Generic: for Win, Linux, Mac ...
00030 #define NGT_MACHINE_GENERIC 0
00031 // for the GamePark Holdings GP2X console
00032 #define NGT_MACHINE_GP2X 2
00033 
00034 
00035 
00036 using namespace std;
00037 
00039 
00043 class NGT_Engine{
00044         public:
00045                 // Video atributes
00047                 int video_res_h;
00049                 int video_res_w;
00051                 int video_bpp;
00052                 
00053                 // Input atributes
00055 
00063                 int input_joy_enabled;
00065 
00071                 int input_show_cursor;
00072                 
00073                 // Audio attributes
00075 
00079                 int audio_frequency;
00081 
00085                 int audio_buffer;
00087 
00091                 int audio_mode;
00092                 
00093                 // Other atributes
00095 
00102                 int machine_target;
00103                 
00104                 // Functions and methodes
00105                 
00107 
00110                 void initialize(SDL_Surface *&surf);
00112 
00115                 void NGT_Engine::finalize();
00116                 
00117         private:
00118                 string version;
00119 };
00120 
00121 #endif /*ENGINE_BASE_H_*/

Generated on Wed Feb 1 00:07:07 2006 for Neopntec Gaming Toolkit - API reference by  doxygen 1.4.4