Casting array of structs containing floats to array of floats
Posted 26 January 2011 - 07:00 PM
On my windows machine, using mingw and gcc, when I print out the cast array in the console, I get garbage. I'm guessing my assumption that the floats inside the struct would be lined up nicely in memory and without padding is wrong under certain compilers. Is there a way to make this work?
Posted 26 January 2011 - 07:15 PM
Posted 26 January 2011 - 08:41 PM
Currently working on: the 3D engine for Tomb Raider.
Posted 27 January 2011 - 07:13 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users