linux-wallpaperengine/src/WallpaperEngine/Render/Shaders/Variables/CShaderVariableVector4.h
Alexis Maiquez 5828b2ee80 + added some extra documentation on rendering based on observations and trial and error
~ 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>
2021-09-27 01:39:23 +02:00

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;
};
}