I'm trying to do some 3D stuff in DirectX (I'm migrating from OpenGL) and I've hit a snag.
I want to access the values of an XMMATRIX and looking at the Microsoft documentation there should be an () operator:
float& operator ()(
size_t Row,
size_t Column
);
So I tried using as such:
XMMATRIX i = XMMatrixIdentity();
float j = i(0,0);
But Intellisense gives me the error:
IntelliSense: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type.
If I ignore Intellisense and compile anyway I get the compile-time error:
error C2064: term does not evaluate to a function taking 2 arguments
Anybody have any idea of why this is happening? Or another way to access the elements of the Matrix?
Thanks for your time.
P.S. I am creating a C++/DirectX Modern UI App for Windows 8 if this information helps at all.