I do dll inject in process, in it it is necessary to read structure VMatrix from the address 0x1006B40.

typedef float VMatrix[4][4]; VMatrix worldToScreen = 0x1006B40; 

How to do it? So that in the future I can use:

 screen.x = worldToScreen[0][0] * point[0] + worldToScreen[0][1] * point[1] + worldToScreen[0][2] * point[2] + worldToScreen[0][3]; screen.y = worldToScreen[1][0] * point[0] + worldToScreen[1][1] * point[1] + worldToScreen[1][2] * point[2] + worldToScreen[1][3]; 

    1 answer 1

    bring the address to the pointer:

     VMatrix * worldToScreen = (VMatrix *)0x1006B40;