mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-15 13:52:23 +08:00

+ Basic parsing for object's effects (missing passes specified in the scene.json) Signed-off-by: Alexis Maiquez <almamu@almamu.com>
27 lines
541 B
C++
27 lines
541 B
C++
#pragma once
|
|
|
|
#include <irrlicht/irrlicht.h>
|
|
#include <nlohmann/json.hpp>
|
|
|
|
#include "materials/passes.h"
|
|
|
|
namespace wp::core::objects::images
|
|
{
|
|
using json = nlohmann::json;
|
|
|
|
class material
|
|
{
|
|
public:
|
|
static material* fromFile (irr::io::path filename);
|
|
static material* fromJSON (json data);
|
|
|
|
void insertPass (materials::passes* mass);
|
|
|
|
std::vector <materials::passes*>* getPasses ();
|
|
protected:
|
|
material ();
|
|
private:
|
|
std::vector <materials::passes*> m_passes;
|
|
};
|
|
};
|