00001
00002 #ifndef __CERBERUS_H
00003 #define __CERBERUS_H
00004
00005 #include "landscape.h"
00006
00007
00008 extern "C" {
00009 #include <lua.h>
00010 #include <lualib.h>
00011 #include <lauxlib.h>
00012 }
00013
00014
00015 #ifdef USE_IRRKLANG
00016 #include "irrKlang.h"
00017 #endif
00018 #include <irrlicht.h>
00019 using namespace irr;
00020
00021
00022 class mt19937;
00023
00024 class cConfiguration
00025 {
00026 public:
00027 bool loadFromFile( lua_State* L, const char* filename );
00028
00029 public:
00030 bool fullscreen;
00031 s32 width;
00032 s32 height;
00033 bool vsync;
00034 u32 screenDepth;
00035 size_t driverType;
00036
00037 double max_fps;
00038 double fps_period;
00039 };
00040
00041
00042 class cAudioDevice
00043 {
00044 public:
00045 cAudioDevice( std::string mediaPath );
00046 ~cAudioDevice( void );
00047
00048
00049 void setListenerPosition( const irrklang::vec3df& pos, const irrklang::vec3df& lookdir,
00050 const irrklang::vec3df& velPerSecond=irrklang::vec3df(0, 0, 0),
00051 const irrklang::vec3df& upVector=irrklang::vec3df(0, 1, 0) );
00052
00053 private:
00054 #ifdef USE_IRRKLANG
00055 irrklang::ISoundEngine* irrKlang;
00056 irrklang::ISoundSource* testSound;
00057 #endif
00058 };
00059
00060
00061 char* formatString( char* format, ... );
00062
00063 #endif // __CERBERUS_H