mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-16 14:22:24 +08:00

~ changed most pointers to const references to prevent modification, specially from the background parser Signed-off-by: Alexis Maiquez <almamu@almamu.com>
26 lines
641 B
C++
26 lines
641 B
C++
#pragma once
|
|
|
|
#include <nlohmann/json.hpp>
|
|
#include <irrlicht/irrlicht.h>
|
|
|
|
namespace WallpaperEngine::Core::Scenes
|
|
{
|
|
using json = nlohmann::json;
|
|
|
|
class CCamera
|
|
{
|
|
public:
|
|
static CCamera* fromJSON (json data);
|
|
|
|
const irr::core::vector3df& getCenter () const;
|
|
const irr::core::vector3df& getEye () const;
|
|
const irr::core::vector3df& getUp () const;
|
|
protected:
|
|
CCamera (irr::core::vector3df center, irr::core::vector3df eye, irr::core::vector3df up);
|
|
private:
|
|
irr::core::vector3df m_center;
|
|
irr::core::vector3df m_eye;
|
|
irr::core::vector3df m_up;
|
|
};
|
|
};
|