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; 00053 int video_fullscreen; 00054 00055 // Input atributes 00057 00065 int input_joy_enabled; 00066 00068 SDL_Joystick *joystick; 00069 00071 00077 int input_show_cursor; 00078 00079 // Audio attributes 00081 00085 int audio_frequency; 00087 00091 int audio_buffer; 00093 00097 int audio_mode; 00098 00099 // Other atributes 00101 00108 int machine_target; 00109 00110 // Functions and methodes 00111 00113 00116 void initialize(SDL_Surface *&surf); 00118 00121 void NGT_Engine::finalize(); 00122 00123 private: 00124 string version; 00125 }; 00126 00127 #endif /*ENGINE_BASE_H_*/