This is the code that’s causing trouble:
Mat4::Mat4( float a, float b, float c, float d, float e, float f, float g, float h,
float i, float j, float k, float l, float n, float o, float p, float q )
{
m[0][0] = a;
m[0][1] = b;
m[0][2] = c;
m[0][3] = d;
m[1][0] = e;
m[1][1] = f;
m[1][2] = g;
m[1][3] = h;
m[2][0] = i;
m[2][1] = j;
m[2][2] = k;
m[2][3] = l;
m[3][0] = m;
m[3][1] = n;
m[3][2] = o;
m[3][3] = p;
}
It would seem it’s a simple constructor, but clearly it has issues with it. The goal here is to take every one of those floats and put it into the 2d array I have created there. I have also tried doing this->m[][] but that doesn’t work either.
I’m sure it’s something silly I’m overlooking but I cannot figure it out for the life of me.
Yes, it’s something silly: you’re using “m” as the name of an array (presumably a member array) Doh! 😉