1
2#ifndef _NINE_DUMP_H_
3#define _NINE_DUMP_H_
4
5#include "d3d9types.h"
6#include "d3d9caps.h"
7
8const char *nine_D3DDEVTYPE_to_str(D3DDEVTYPE);
9const char *nine_D3DQUERYTYPE_to_str(D3DQUERYTYPE);
10const char *nine_D3DTSS_to_str(D3DTEXTURESTAGESTATETYPE);
11const char *nine_D3DTOP_to_str(D3DTEXTUREOP);
12const char *nine_D3DPOOL_to_str(D3DPOOL);
13const char *nine_D3DRTYPE_to_str(D3DRESOURCETYPE);
14const char *nine_D3DUSAGE_to_str(DWORD);
15const char *nine_D3DPRESENTFLAG_to_str(DWORD);
16const char *nine_D3DLOCK_to_str(DWORD);
17const char *nine_D3DSAMP_to_str(DWORD);
18
19#ifdef DEBUG
20
21void
22nine_dump_D3DADAPTER_IDENTIFIER9(unsigned, const D3DADAPTER_IDENTIFIER9 *);
23void
24nine_dump_D3DCAPS9(unsigned, const D3DCAPS9 *);
25void
26nine_dump_D3DLIGHT9(unsigned, const D3DLIGHT9 *);
27void
28nine_dump_D3DMATERIAL9(unsigned, const D3DMATERIAL9 *);
29void
30nine_dump_D3DTSS_value(unsigned, D3DTEXTURESTAGESTATETYPE, DWORD);
31
32#else /* !DEBUG */
33
34static inline void
35nine_dump_D3DADAPTER_IDENTIFIER9(unsigned ch, const D3DADAPTER_IDENTIFIER9 *id)
36{ }
37static inline void
38nine_dump_D3DCAPS9(unsigned ch, const D3DCAPS9 *caps)
39{ }
40static inline void
41nine_dump_D3DLIGHT9(unsigned ch, const D3DLIGHT9 *light)
42{ }
43static inline void
44nine_dump_D3DMATERIAL9(unsigned ch, const D3DMATERIAL9 *mat)
45{ }
46static inline void
47nine_dump_D3DTSS_value(unsigned ch, D3DTEXTURESTAGESTATETYPE tss, DWORD value)
48{ }
49
50#endif /* DEBUG */
51
52#endif /* _NINE_DUMP_H_H_ */
53