casting a float** to a float[4][4]...
Hi,
I always used a double array to store my matrices like that:
float m[4][4];
and all my matrice transformation routines take that type as argument:
void buildIdentity(float m[4][4]);
If I understood everything in the right way, float m[4][4] reserves 16 float on the stack and frees them automatically. But float m[4][4] can also be seen as a pointer to a pointer (float** m).
My question is now: how can I create an equivalent type on the heap and then use the same routines??
Thanks
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement