Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float* mat = new float[16];
- mat[0] = 1;
- mat[1] = 0;
- mat[2] = 0;
- mat[3] = 0;
- mat[4] = 0;
- mat[5] = 1;
- mat[6] = 0;
- mat[7] = 0;
- mat[8] = 0;
- mat[9] = 0;
- mat[10] = 1;
- mat[11] = 0;
- mat[12] = 4;
- mat[13] = 5;
- mat[14] = 6;
- mat[15] = 1;
- D3DXMATRIX matrix(mat);
- delete[] mat;
- mat = NULL;
- float x = matrix[12];
- float y = matrix[13];
- float z = matrix[14];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement