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>
37 lines
645 B
C++
37 lines
645 B
C++
#ifndef WALLENGINE_OBJECT3D_H
|
|
#define WALLENGINE_OBJECT3D_H
|
|
|
|
#include <wallpaperengine/video/node.h>
|
|
|
|
#include <wallpaperengine/scene.h>
|
|
|
|
namespace wp
|
|
{
|
|
class object3d : wp::video::node
|
|
{
|
|
public:
|
|
enum Type
|
|
{
|
|
Type_Material = 0,
|
|
Type_Model = 1,
|
|
Type_Particle = 2,
|
|
Type_None = 3
|
|
};
|
|
|
|
object3d (Type type, wp::object* parent);
|
|
|
|
virtual void render ();
|
|
|
|
template <class T> T* as();
|
|
template <class T> bool is();
|
|
|
|
protected:
|
|
wp::object* m_parent;
|
|
|
|
private:
|
|
Type m_type;
|
|
};
|
|
};
|
|
|
|
#endif //WALLENGINE_OBJECT3D_H
|