-
Notifications
You must be signed in to change notification settings - Fork 117
refactor(dx8): Replace unsafe Matrix4/D3DMATRIX casts with explicit conversions #1852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
refactor(dx8): Replace unsafe Matrix4/D3DMATRIX casts with explicit conversions #1852
Conversation
518ebd4 to
fa2fff2
Compare
| curView[0][0], curView[0][1], curView[0][2], curView[0][3], | ||
| curView[1][0], curView[1][1], curView[1][2], curView[1][3], | ||
| curView[2][0], curView[2][1], curView[2][2], curView[2][3], | ||
| curView[3][0], curView[3][1], curView[3][2], curView[3][3] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not good. Too complicated user code repeated again. Please see reference code in the linked report.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I made a helper instead of using BUILD_WITH_D3D8. This way we can later use Vulkan or something without touching Matrix4x4. I can do it either way, whichever you prefer
Summary
Replaces all C-style casts between
Matrix4x4/Matrix3DandD3DXMATRIX/D3DMATRIXwith explicit conversions.