![]() |
OSG implementation of graphics uniform with a value of type T. More...
#include <SurgSim/Graphics/OsgUniform.h>
Public Member Functions | |
OsgUniform (const std::string &name) | |
Constructor. More... | |
virtual void | set (const T &value) |
Sets the value of the uniform. More... | |
virtual void | set (const YAML::Node &node) |
Sets the value of the uniform from a YAML Node doing the correct conversion. More... | |
virtual const T & | get () const |
Private Attributes | |
T | m_value |
Value of the uniform. More... | |
OSG implementation of graphics uniform with a value of type T.
Value | the value type of the uniform |
|
explicit |
Constructor.
name | Name used in shader code to access this uniform |
|
virtual |
|
virtual |
Sets the value of the uniform.
value | the value for this uniform |
|
virtual |
Sets the value of the uniform from a YAML Node doing the correct conversion.
node | the node that contains the value for this uniform |
|
private |
Value of the uniform.