feat(d3d9-util): Add separate module for d3d9 utils/helpers

Currently includes:

* dx9 error formatting helpers. Turn error codes into readable
  text
* Vertex struct and helper function
This commit is contained in:
icex2
2023-04-15 22:37:07 +02:00
committed by icex2
parent 6dea29ec6a
commit 6ea099fd9e
6 changed files with 2950 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
// Source:
// https://github.com/Alexpux/mingw-w64/blob/master/mingw-w64-crt/libsrc/dxerr9.c
/*
dxerr9.c - DirectX 9 Error Functions
Written by Filip Navara <xnavara@volny.cz>
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#define DXGetErrorString DXGetErrorString9A
#define DXGetErrorDescription DXGetErrorDescription9A
#define DXTrace DXTraceA
#define DXERROR9(v, n, d) {v, n, d},
#define DXERROR9LAST(v, n, d) \
{ \
v, n, d \
}
#include "dxerr.c"