]> git.tdb.fi Git - libs/gl.git/blobdiff - source/uniform.h
Check uniforms as a hint for texunit to use for material textures
[libs/gl.git] / source / uniform.h
index ad2d88cc477715021baea7a4f7df4798b43173e7..5d288cf50e29485701bb125830aebe4504d0ae07 100644 (file)
@@ -36,6 +36,8 @@ private:
 public:
        UniformScalar(Type v): value(v) { }
 
+       Type get() const { return value; }
+
        virtual void apply(int index) const
        { apply(index, 1, &value); }
 
@@ -69,6 +71,8 @@ public:
        UniformVector(const T *vp)
        { std::copy(vp, vp+vecsize, value); }
 
+       BaseType get(unsigned i) const { return value[i]; }
+
        virtual void apply(int index) const
        { apply(index, 1, value); }