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:
@@ -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"
|
||||
Reference in New Issue
Block a user