linux-wallpaperengine/wallpaperengine/texture.cpp
Alexis Maiquez Murcia 9f9d44834b - Removed the whole "fileResolver" class in favour of using the actual irrlicht file-handling functions
~ Added a small utils class to read full files to ram for the purpose of parsing json files
  Most of these files are really small, so there shouldn't really be any memory concerns
+ Added support for loading backgrounds directly from PKG files


Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2019-04-04 16:51:54 +02:00

18 lines
334 B
C++

#include <wallpaperengine/texture.h>
#include <stdexcept>
#include <lz4.h>
#include "irrlicht.h"
namespace wp
{
texture::texture (irr::io::path& file)
{
this->m_texture = wp::irrlicht::driver->getTexture (file);
}
irr::video::ITexture* texture::getIrrTexture ()
{
return this->m_texture;
}
}