texture.cpp 333 B

123456789101112131415161718
  1. #include <wallpaperengine/texture.h>
  2. #include <stdexcept>
  3. #include <lz4.h>
  4. #include "irrlicht.h"
  5. namespace wp
  6. {
  7. texture::texture (irr::io::path file)
  8. {
  9. this->m_texture = wp::irrlicht::driver->getTexture (file);
  10. }
  11. irr::video::ITexture* texture::getIrrTexture ()
  12. {
  13. return this->m_texture;
  14. }
  15. }