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

~ written close to equivalent versions in OpenGL code using GLM and GLFW ~ written replacements for texture and package loading to not use irrlicht anymore ~ updated shader compiler as we now don't need to replace attributes anymore + added support for texture flags in the texture header (as they're needed for opengl to get proper information) TODO: REWRITE VIDEO PLAYER SUPPORT AS THIS UPDATE EFFECTIVELY BREAKS IT Signed-off-by: Alexis Maiquez <almamu@almamu.com>
27 lines
553 B
C++
27 lines
553 B
C++
#pragma once
|
|
|
|
#include <irrlicht/irrlicht.h>
|
|
|
|
#include "WallpaperEngine/Core/Core.h"
|
|
|
|
namespace WallpaperEngine::Core::Scenes
|
|
{
|
|
using json = nlohmann::json;
|
|
|
|
class CCamera
|
|
{
|
|
public:
|
|
static CCamera* fromJSON (json data);
|
|
|
|
const glm::vec3& getCenter () const;
|
|
const glm::vec3& getEye () const;
|
|
const glm::vec3& getUp () const;
|
|
protected:
|
|
CCamera (glm::vec3 center, glm::vec3 eye, glm::vec3 up);
|
|
private:
|
|
glm::vec3 m_center;
|
|
glm::vec3 m_eye;
|
|
glm::vec3 m_up;
|
|
};
|
|
};
|