hey guys, i have this code of game
snippet image_manager.h
class ImageManager { public: bool Initial(); void SetDevice(irr::IrrlichtDevice* dev); void ClearTexture(); void RemoveTexture(int code); irr::video::ITexture* GetTexture(int code); irr::video::ITexture* GetTextureThumb(int code);
std::unordered_map<int, irr::video::ITexture*> tMap; std::unordered_map<int, irr::video::ITexture*> tThumb; irr::IrrlichtDevice* device; irr::video::IVideoDriver* driver; irr::video::ITexture* tCover; irr::video::ITexture* tUnknown;
snippet image_manager.cpp
namespace game {
ImageManager imageManager;
bool ImageManager::Initial() { tCover = driver->getTexture("data/textures/cover.jpg"); tUnknown = driver->getTexture("data/textures/unknown.jpg");
I was wonderin is it possiblle to do similar with irrKlang(just with sounds)...i have tried many things but it dont work..thanks
|