/usr/include/globjects/Uniform.inl is in libglobjects-dev 1.0.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | #pragma once
namespace globjects
{
template<typename T>
Uniform<T>::Uniform(gl::GLint location)
: Uniform(location, T())
{
}
template<typename T>
Uniform<T>::Uniform(gl::GLint location, const T & value)
: AbstractUniform(location)
, m_value(value)
{
}
template<typename T>
Uniform<T>::Uniform(const std::string & name)
: Uniform(name, T())
{
}
template<typename T>
Uniform<T>::Uniform(const std::string & name, const T & value)
: AbstractUniform(name)
, m_value(value)
{
}
template<typename T>
Uniform<T>::~Uniform()
{
}
template<typename T>
const T & Uniform<T>::value() const
{
return m_value;
}
template<typename T>
void Uniform<T>::updateAt(const Program * program, gl::GLint location) const
{
if (location < 0)
{
return;
}
setValue(program, location, m_value);
}
template<typename T>
void Uniform<T>::set(const T & value)
{
m_value = value;
changed();
}
} // namespace globjects
|