linux-wallpaperengine/WallpaperEngine/scene.h
Alexis Maiquez 654918904a ~ Changed namespace names for wp::core and wp to a more suited name
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2019-08-15 01:53:40 +02:00

42 lines
894 B
C++

#ifndef WALLENGINE_SCENE_H
#define WALLENGINE_SCENE_H
#include <iostream>
#include <irrlicht/irrlicht.h>
#include <nlohmann/json.hpp>
#include <WallpaperEngine/object.h>
#include <WallpaperEngine/camera.h>
#include <WallpaperEngine/video/node.h>
namespace WallpaperEngine
{
using json = nlohmann::json;
class object;
class scene : public WallpaperEngine::video::node
{
public:
scene (irr::io::path& file);
~scene ();
camera* getCamera ();
bool isOrthogonal ();
float getProjectionWidth ();
float getProjectionHeight ();
void render ();
private:
float m_width;
float m_height;
bool m_isOrthogonal;
irr::io::path m_file;
std::string m_content;
camera* m_camera;
std::vector<object*> m_objects;
json m_json;
};
};
#endif //WALLENGINE_SCENE_H