mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00

+ added g_Time to global variable storage - removed global g_Time from main ~ changed "shader parameters" to "shader variables" as it's a more apt naming Signed-off-by: Alexis Maiquez <almamu@almamu.com>
31 lines
883 B
C++
31 lines
883 B
C++
#include "CShaderVariableVector3.h"
|
|
|
|
using namespace WallpaperEngine::Render::Shaders::Variables;
|
|
|
|
CShaderVariableVector3::CShaderVariableVector3 (const irr::core::vector3df& defaultValue) :
|
|
m_defaultValue (defaultValue),
|
|
m_value (irr::core::vector3df ()),
|
|
CShaderVariable (&this->m_defaultValue, nullptr, Type)
|
|
{
|
|
}
|
|
|
|
CShaderVariableVector3::CShaderVariableVector3 (const irr::core::vector3df& defaultValue, std::string name) :
|
|
m_defaultValue (defaultValue),
|
|
m_value (irr::core::vector3df ()),
|
|
CShaderVariable (&this->m_defaultValue, nullptr, Type)
|
|
{
|
|
this->setName (name);
|
|
}
|
|
|
|
void CShaderVariableVector3::setValue (const irr::core::vector3df& value)
|
|
{
|
|
this->m_value = value;
|
|
CShaderVariable::setValue (&this->m_value);
|
|
}
|
|
|
|
const int CShaderVariableVector3::getSize () const
|
|
{
|
|
return 3;
|
|
}
|
|
|
|
const std::string CShaderVariableVector3::Type = "vec3"; |