I have this constructor:
Transform::Transform( float matrix[4][4] )
{
m = matrix;
}
And this class definition:
class Transform
{
float m[4][4];
public:
Transform();
Transform(float matrix[4][4]);
But this does not compile.
What could be wrong?
Error 1 error C2440: '=' : cannot convert from 'float [][4]' to 'float [4][4]' c:\Users\Josh\Documents\agui\trunk\src\Agui\Transform.cpp 75
Thanks
std::arrayif you can use it. It does assignment.std::copy(),memcpy()ormemmove(). Of course, belay all that and do what chris says above. Use your stdlib. Its whats for dinner.