mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
ENABLE_SHADERS_MANAGER -> Added method GLShaderProgram::set_uniform(const char* name, double value)
This commit is contained in:
parent
df010a1d4e
commit
082a30a5db
2 changed files with 6 additions and 0 deletions
|
@ -211,6 +211,11 @@ bool GLShaderProgram::set_uniform(const char* name, float value) const
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool GLShaderProgram::set_uniform(const char* name, double value) const
|
||||||
|
{
|
||||||
|
return set_uniform(name, static_cast<float>(value));
|
||||||
|
}
|
||||||
|
|
||||||
bool GLShaderProgram::set_uniform(const char* name, const std::array<float, 2>& value) const
|
bool GLShaderProgram::set_uniform(const char* name, const std::array<float, 2>& value) const
|
||||||
{
|
{
|
||||||
int id = get_uniform_location(name);
|
int id = get_uniform_location(name);
|
||||||
|
|
|
@ -43,6 +43,7 @@ public:
|
||||||
bool set_uniform(const char* name, int value) const;
|
bool set_uniform(const char* name, int value) const;
|
||||||
bool set_uniform(const char* name, bool value) const;
|
bool set_uniform(const char* name, bool value) const;
|
||||||
bool set_uniform(const char* name, float value) const;
|
bool set_uniform(const char* name, float value) const;
|
||||||
|
bool set_uniform(const char* name, double value) const;
|
||||||
bool set_uniform(const char* name, const std::array<float, 2>& value) const;
|
bool set_uniform(const char* name, const std::array<float, 2>& value) const;
|
||||||
bool set_uniform(const char* name, const std::array<float, 3>& value) const;
|
bool set_uniform(const char* name, const std::array<float, 3>& value) const;
|
||||||
bool set_uniform(const char* name, const std::array<float, 4>& value) const;
|
bool set_uniform(const char* name, const std::array<float, 4>& value) const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue