I'm using this tutorial, but when I compile the code from it:
D3DXMatrixLookAtLH(
&matView,
&D3DXVECTOR3(0.0f, 10.0f, 0.0f), // warning C4238
&D3DXVECTOR3(0.0f, 0.0f, 0.0f), // warning C4238
&D3DXVECTOR3(0.0f, 0.0f, 1.0f) // warning C4238
);
I get:
warning C4238: nonstandard extension used : class rvalue used as lvalue
What is the proper (warningless) way of doing this without additional lines of code?
Also, I'm wondering what is so bad about that line of code? Why does it even give warning if it works just fine? Or does it...?