mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 05:12:25 +08:00

~ deprecated --dir --pkg options, the software will automatically detect the background we're loading + first draft of FBO support, there's still some extra work to do ~ texture header is now hidden behind getters so the textures can be any kind of source ~ proper setting of resolution and translation variables for textures ~ simplified call flow for any pass rendering, removing render functions on effect and material ~ framebuffer setup has to happen before object setup in the scene Signed-off-by: Alexis Maiquez <almamu@almamu.com>
25 lines
615 B
C++
25 lines
615 B
C++
#pragma once
|
|
#include <glm/vec4.hpp>
|
|
|
|
#include "WallpaperEngine/Render/Shaders/Variables/CShaderVariable.h"
|
|
|
|
namespace WallpaperEngine::Render::Shaders::Variables
|
|
{
|
|
class CShaderVariableVector4 : public CShaderVariable
|
|
{
|
|
public:
|
|
explicit CShaderVariableVector4 (const glm::vec4& defaultValue);
|
|
CShaderVariableVector4 (const glm::vec4& defaultValue, std::string name);
|
|
|
|
const int getSize () const override;
|
|
|
|
void setValue (const glm::vec4& value);
|
|
|
|
static const std::string Type;
|
|
|
|
private:
|
|
glm::vec4 m_defaultValue;
|
|
glm::vec4 m_value;
|
|
};
|
|
}
|