/* Irrlicht Library Wrapper Created by: Nathan Adams Denzel Morris Copyright (C) 2007 This software is licensed under the GNU/GPL. This software may not be used for commerical purposes. */ #include #include #include "IrrLibBase.h" #include #include using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui; using namespace std; void IrrLibBase::SetDriver(IVideoDriver* driver) //can be overloaded { this->driver = driver; } void IrrLibBase::SetSmgr(ISceneManager* smgr) { this->smgr = smgr; } std::string IrrLibBase::int_to_string (int t) { std::stringstream ss; ss << t; return ss.str(); } std::string IrrLibBase::stringw_to_stdstring(irr::core::stringw sw) { std::stringstream ss; ss << sw.c_str(); return ss.str(); } irr::core::stringw IrrLibBase::stdstring_to_stringw(std::string ss) { stringw tmpw(ss.c_str()); return tmpw; } void IrrLibBase::SetDevice(irr::IrrlichtDevice *device) { this->device = device; } void IrrLibBase::init() { }