use different uniform buffers for each draw call

This commit is contained in:
niki
2022-06-30 18:42:49 +02:00
parent 7f894e5bf7
commit 0cea07806f
9 changed files with 118 additions and 40 deletions
+10
View File
@@ -83,6 +83,16 @@ public:
**/
void operator *= (const Matrix4 &m);
static friend bool operator==(const Matrix4& first, const Matrix4& other)
{
for (int i = 0; i < 16; i++) {
if (first.e[i] != other.e[i]) {
return false;
}
}
return true;
}
/**
* Gets a pointer to the 16 array elements.
* @return The array elements.