linux-wallpaperengine/wallpaperengine/core/project.h
Alexis Maiquez cc74debaad Started rewrite of the wallpaper interpreter to aim for a more separated approach, this way the whole JSON data can be parsed and kept separeted from the actual rendering logic
# Implemented basic project file loading
  # Implemented basic camera settings loading

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2019-08-13 17:17:08 +02:00

32 lines
554 B
C++

#pragma once
#include <irrlicht/irrlicht.h>
#include <nlohmann/json.hpp>
#include "scene.h"
namespace wp::core
{
using json = nlohmann::json;
class scene;
class project
{
public:
static project* fromFile (const irr::io::path& filename);
scene* getScene ();
std::string getTitle ();
std::string getType ();
protected:
project (std::string title, std::string type, scene* scene);
private:
std::string m_title;
std::string m_type;
scene* m_scene;
};
};