Commit 0a7285f
committed
feat(d3dx): Implement D3DXMatrixIdentity and D3DXCreateFont (TheSuperHackers#2176)
Implement D3DXMatrixIdentity using WWMath and stub D3DXCreateFont for
disabled Generals Tools build.
1. D3DXMatrixIdentity - Full Implementation
- Maps to Matrix4x4::Make_Identity() from WWMath
- Used in 8+ locations, including water rendering (W3DWater.cpp)
- Critical for clipping matrix initialization
2. D3DXCreateFont - Stub for Disabled Tools
- Only used in disabled Generals Tools (apt, w3dviewer)
- Build preset RTS_BUILD_GENERALS_TOOLS=OFF by default
- Returns D3DERR_NOTAVAILABLE to indicate unavailable functionality
- Acceptable stub for out-of-scope build targets
Alternative approaches evaluated:
- Matrix4x4::Make_Identity() found in WWMath (used for implementation)
- No existing game font system suitable for D3DXCreateFont
- GDI CreateFont possible but unnecessary for disabled build
D3DXMatrixIdentity completes matrix math coverage alongside existing
D3DXMatrixMultiply, D3DXMatrixRotationZ, D3DXMatrixTranspose.1 parent 479894d commit 0a7285f
1 file changed
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
594 | 612 | | |
595 | 613 | | |
596 | 614 | | |
| |||
934 | 952 | | |
935 | 953 | | |
936 | 954 | | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
937 | 992 | | |
938 | 993 | | |
939 | 994 | | |
0 commit comments