00001 /* 00002 Irrlicht Library Wrapper 00003 Created by: 00004 Nathan Adams 00005 Denzel Morris 00006 Copyright (C) 2007 00007 00008 This software is licensed under the GNU/GPL. 00009 This software may not be used for commerical purposes. 00010 */ 00011 00012 #ifndef IRRLIBBASE_H 00013 #define IRRLIBBASE_H 00014 00015 /* We should include some basic functions */ 00016 #include <iostream> 00017 /* include strings */ 00018 #include <strings.h> 00019 00020 /* We have to include Irrlichts libs */ 00021 #include <irrlicht.h> 00022 00023 00024 class IrrLibBase { 00025 00026 protected: 00027 irr::video::IVideoDriver* driver; 00028 irr::scene::ISceneManager* smgr; 00029 irr::IrrlichtDevice *device; 00030 public: 00031 //template<class type> std::string to_string( const type & value); 00032 irr::core::dimension2d<irr::s32> irrpixels; 00033 void IrrLibBase::SetDriver(irr::video::IVideoDriver* driver); 00034 void IrrLibBase::SetSmgr(irr::scene::ISceneManager* smgr); 00035 void SetDevice(irr::IrrlichtDevice *device); 00036 std::string int_to_string (int t); 00037 std::string stringw_to_stdstring(irr::core::stringw sw); 00038 irr::core::stringw stdstring_to_stringw(std::string ss); 00039 std::string wchar_to_stdstring (const wchar_t* wc); 00040 //irr::core::stringw int_to_stringw(int t); 00041 void init(); 00042 00043 }; 00044 00045 #endif
1.5.4