casting a float** to a float[4][4]...

Started by
0 comments, last by Floating 21 years, 10 months ago
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
Advertisement
How do I allocate multidimensional arrays?

This topic is closed to new replies.

Advertisement