linux-wallpaperengine/wallpaperengine/object3d.cpp
Alexis Maiquez 2be1bffb6f - Removed all the contents of the res folder as those weren't needed anymore
+ 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>
2019-04-05 08:34:53 +02:00

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 ()
{
}
}