mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-16 22:32:25 +08:00

~ 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>
18 lines
334 B
C++
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;
|
|
}
|
|
} |