linux-wallpaperengine/wallpaperengine/core/objects/images/material.h
Alexis Maiquez e80ce94331 + Support for null textures in material passes
+ Basic parsing for object's effects (missing passes specified in the scene.json)

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2019-08-14 10:42:10 +02:00

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;
};
};