mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00

+ Added basic, single-pass-effects parsing - Removed duplicated code for effect parsing + Added support for shader loading and applying to materials (might not work with every shader, still needs some more investigation) + Added support for TEXB0001 containers to be able to load images from the wallpaperengine original files Signed-off-by: Alexis Maiquez <almamu@almamu.com>
30 lines
505 B
C++
30 lines
505 B
C++
#include <wallpaperengine/object3d.h>
|
|
#include <wallpaperengine/image.h>
|
|
|
|
namespace wp
|
|
{
|
|
object3d::object3d (object3d::Type type, wp::object* parent)
|
|
{
|
|
this->m_type = type;
|
|
}
|
|
|
|
template <class T> T* object3d::as()
|
|
{
|
|
return (T*) this;
|
|
}
|
|
|
|
template <class T> bool object3d::is()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
template <> bool object3d::is<image>()
|
|
{
|
|
return this->m_type == Type::Type_Material;
|
|
}
|
|
|
|
void object3d::render ()
|
|
{
|
|
|
|
}
|
|
} |