linux-wallpaperengine/wallpaperengine/project.h
Alexis Maiquez Murcia 9f9d44834b - Removed the whole "fileResolver" class in favour of using the actual irrlicht file-handling functions
~ Added a small utils class to read full files to ram for the purpose of parsing json files
  Most of these files are really small, so there shouldn't really be any memory concerns
+ Added support for loading backgrounds directly from PKG files


Signed-off-by: Alexis Maiquez Murcia <almamu@almamu.com>
2019-04-04 16:51:54 +02:00

31 lines
527 B
C++

#ifndef WALLENGINE_PROJECT_H
#define WALLENGINE_PROJECT_H
#include <irrlicht/irrlicht.h>
#include <nlohmann/json.hpp>
#include "scene.h"
namespace wp
{
using json = nlohmann::json;
class project
{
public:
project (irr::io::path& jsonfile_path);
scene* getScene ();
private:
json m_projectFile;
std::string m_content;
std::string m_title;
std::string m_type;
irr::io::path m_file;
scene* m_scene;
};
};
#endif //WALLENGINE_PROJECT_H