mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-16 06:12:23 +08:00

+ Basic draft for the texture custom loader, only ARGB (partially) supported for now Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
18 lines
333 B
C++
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;
|
|
}
|
|
} |