linux-wallpaperengine/wallpaperengine/texture.cpp
Alexis Maiquez Murcia 82682ecf02 + Added LZ4 lib to the compilation process
+ Basic draft for the texture custom loader, only ARGB (partially) supported for now

Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2019-04-02 17:08:34 +02:00

18 lines
333 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;
}
}