matrix = *((fxMatrix*)&d3dMatrix); //Evil?
- by Xilliah
I've been using
matrix = *((fxMatrix*)&d3dMatrix);
for quite a while. It worked fine until my screen turned black and received a bucket of frustration on my desk.
fxMatrix contains 4 fxVectors. fxVector used to be 16 bytes, but now it was suddenly 20. This was because it inherited fxStreamable, which added the vTable.
So one solution is of…