-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
+#include <algorithm>
#include "arb_shader_objects.h"
#include "uniform.h"
return new Uniform4f(v[0], v[1], v[2], v[3]);
}
+
+UniformMatrix4x4f::UniformMatrix4x4f(const float *vp)
+{
+ std::copy(vp, vp+16, v);
+}
+
+void UniformMatrix4x4f::apply(int index) const
+{
+ glUniformMatrix4fvARB(index, 1, false, v);
+}
+
+UniformMatrix4x4f *UniformMatrix4x4f::clone() const
+{
+ return new UniformMatrix4x4f(v);
+}
+
} // namespace GL
} // namespace Msp