Add functions for setting arrays of 2x2 and 3x3 matrix uniforms
[libs/gl.git] / source / programdata.cpp
index 79a8bb1bd98fe434542504487bdcf5f23b047e50..cd12c2ca47fbff99cdbfe2578d30ebbd0468d997 100644 (file)
@@ -271,6 +271,16 @@ void ProgramData::uniform4_array(const string &name, unsigned n, const float *v)
        uniform(name, new UniformArray<Uniform4f>(n, v));
 }
 
+void ProgramData::uniform_matrix2_array(const string &name, unsigned n, const float *v)
+{
+       uniform(name, new UniformArray<UniformMatrix2x2f>(n, v));
+}
+
+void ProgramData::uniform_matrix3_array(const string &name, unsigned n, const float *v)
+{
+       uniform(name, new UniformArray<UniformMatrix3x3f>(n, v));
+}
+
 void ProgramData::uniform_matrix4_array(const string &name, unsigned n, const float *v)
 {
        uniform(name, new UniformArray<UniformMatrix4x4f>(n, v));