linux-wallpaperengine/WallpaperEngine/Core/Objects/CImage.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

44 lines
1011 B
C++

#pragma once
#include <nlohmann/json.hpp>
#include <irrlicht/irrlicht.h>
#include "Images/CMaterial.h"
#include "../CObject.h"
namespace WallpaperEngine::Core::Objects
{
using json = nlohmann::json;
class CImage : CObject
{
protected:
friend class CObject;
static CObject* fromJSON (
json data,
bool visible,
irr::u32 id,
std::string name,
const irr::core::vector3df& origin,
const irr::core::vector3df& scale,
const irr::core::vector3df& angles
);
CImage (
Images::CMaterial* material,
bool visible,
irr::u32 id,
std::string name,
const irr::core::vector3df& origin,
const irr::core::vector3df& scale,
const irr::core::vector3df& angles,
const irr::core::vector2df& size
);
private:
irr::core::vector2df m_size;
};
};