uniform(tag, INT, 1, &v);
}
+void ProgramData::uniform(Tag tag, unsigned v)
+{
+ uniform(tag, UNSIGNED_INT, 1, &v);
+}
+
void ProgramData::uniform(Tag tag, float v)
{
uniform(tag, FLOAT, 1, &v);
uniform2(tag, va);
}
+void ProgramData::uniform(Tag tag, unsigned v0, unsigned v1)
+{
+ unsigned va[2] = { v0, v1 };
+ uniform2(tag, va);
+}
+
void ProgramData::uniform(Tag tag, float v0, float v1)
{
float va[2] = { v0, v1 };
uniform(tag, INT_VEC2, 1, v);
}
+void ProgramData::uniform2(Tag tag, const unsigned *v)
+{
+ uniform(tag, UINT_VEC2, 1, v);
+}
+
void ProgramData::uniform2(Tag tag, const float *v)
{
uniform(tag, FLOAT_VEC2, 1, v);
uniform3(tag, va);
}
+void ProgramData::uniform(Tag tag, unsigned v0, unsigned v1, unsigned v2)
+{
+ unsigned va[3] = { v0, v1, v2 };
+ uniform3(tag, va);
+}
+
void ProgramData::uniform(Tag tag, float v0, float v1, float v2)
{
float va[3] = { v0, v1, v2 };
uniform(tag, INT_VEC3, 1, v);
}
+void ProgramData::uniform3(Tag tag, const unsigned *v)
+{
+ uniform(tag, UINT_VEC3, 1, v);
+}
+
void ProgramData::uniform3(Tag tag, const float *v)
{
uniform(tag, FLOAT_VEC3, 1, v);
uniform4(tag, va);
}
+void ProgramData::uniform(Tag tag, unsigned v0, unsigned v1, unsigned v2, unsigned v3)
+{
+ unsigned va[4] = { v0, v1, v2, v3 };
+ uniform4(tag, va);
+}
+
void ProgramData::uniform(Tag tag, float v0, float v1, float v2, float v3)
{
float va[4] = { v0, v1, v2, v3 };
uniform(tag, INT_VEC4, 1, v);
}
+void ProgramData::uniform4(Tag tag, const unsigned *v)
+{
+ uniform(tag, UINT_VEC4, 1, v);
+}
+
void ProgramData::uniform4(Tag tag, const float *v)
{
uniform(tag, FLOAT_VEC4, 1, v);
uniform(tag, INT, n, v);
}
+void ProgramData::uniform_array(Tag tag, unsigned n, const unsigned *v)
+{
+ uniform(tag, UNSIGNED_INT, n, v);
+}
+
void ProgramData::uniform_array(Tag tag, unsigned n, const float *v)
{
uniform(tag, FLOAT, n, v);
uniform(tag, INT, n, v);
}
+void ProgramData::uniform1_array(Tag tag, unsigned n, const unsigned *v)
+{
+ uniform(tag, UNSIGNED_INT, n, v);
+}
+
void ProgramData::uniform1_array(Tag tag, unsigned n, const float *v)
{
uniform(tag, FLOAT, n, v);
uniform(tag, INT_VEC2, n, v);
}
+void ProgramData::uniform2_array(Tag tag, unsigned n, const unsigned *v)
+{
+ uniform(tag, UINT_VEC2, n, v);
+}
+
void ProgramData::uniform2_array(Tag tag, unsigned n, const float *v)
{
uniform(tag, FLOAT_VEC2, n, v);
uniform(tag, INT_VEC3, n, v);
}
+void ProgramData::uniform3_array(Tag tag, unsigned n, const unsigned *v)
+{
+ uniform(tag, INT_VEC3, n, v);
+}
+
void ProgramData::uniform3_array(Tag tag, unsigned n, const float *v)
{
uniform(tag, FLOAT_VEC3, n, v);
uniform(tag, INT_VEC4, n, v);
}
+void ProgramData::uniform4_array(Tag tag, unsigned n, const unsigned *v)
+{
+ uniform(tag, UINT_VEC4, n, v);
+}
+
void ProgramData::uniform4_array(Tag tag, unsigned n, const float *v)
{
uniform(tag, FLOAT_VEC4, n, v);
void mark_dirty(Mask);
public:
void uniform(Tag, int);
+ void uniform(Tag, unsigned);
void uniform(Tag, float);
void uniform(Tag, int, int);
+ void uniform(Tag, unsigned, unsigned);
void uniform(Tag, float, float);
void uniform2(Tag, const int *);
+ void uniform2(Tag, const unsigned *);
void uniform2(Tag, const float *);
void uniform(Tag, int, int, int);
+ void uniform(Tag, unsigned, unsigned, unsigned);
void uniform(Tag, float, float, float);
void uniform3(Tag, const int *);
+ void uniform3(Tag, const unsigned *);
void uniform3(Tag, const float *);
void uniform(Tag, int, int, int, int);
+ void uniform(Tag, unsigned, unsigned, unsigned, unsigned);
void uniform(Tag, float, float, float, float);
void uniform(Tag, const Color &);
void uniform4(Tag, const int *);
+ void uniform4(Tag, const unsigned *);
void uniform4(Tag, const float *);
void uniform_matrix2(Tag, const float *);
void uniform_matrix3x2(Tag, const float *);
void uniform(Tag, const Matrix &);
void uniform_matrix4(Tag, const float *);
void uniform_array(Tag, unsigned, const int *);
+ void uniform_array(Tag, unsigned, const unsigned *);
void uniform_array(Tag, unsigned, const float *);
void uniform1_array(Tag, unsigned, const int *);
+ void uniform1_array(Tag, unsigned, const unsigned *);
void uniform1_array(Tag, unsigned, const float *);
void uniform2_array(Tag, unsigned, const int *);
+ void uniform2_array(Tag, unsigned, const unsigned *);
void uniform2_array(Tag, unsigned, const float *);
void uniform3_array(Tag, unsigned, const int *);
+ void uniform3_array(Tag, unsigned, const unsigned *);
void uniform3_array(Tag, unsigned, const float *);
void uniform4_array(Tag, unsigned, const int *);
+ void uniform4_array(Tag, unsigned, const unsigned *);
void uniform4_array(Tag, unsigned, const float *);
void uniform_matrix2_array(Tag, unsigned, const float *);
void uniform_matrix3x2_array(Tag, unsigned, const float *);