Add fallback debugging (R128_DEBUG=fall) output, and set DO_DEBUG=1 by default
[mesa.git] / src / mesa / drivers / d3d / d3dText.h
1 #ifndef D3D_TEXT_H
2 #define D3D_TEXT_H
3
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 /*===========================================================================*/
10 /* Includes. */
11 /*===========================================================================*/
12 #include <windows.h>
13 #include <ddraw.h>
14 #include <d3d.h>
15 /*===========================================================================*/
16 /* Magic numbers. */
17 /*===========================================================================*/
18 #define D3DLTEXT_BITSUSED 0xFFFFFFFF
19 #define MAX_VERTICES 700 // (14*40) 14 per character, 40 characters
20 /*===========================================================================*/
21 /* Macros defines. */
22 /*===========================================================================*/
23 /*===========================================================================*/
24 /* Type defines. */
25 /*===========================================================================*/
26 typedef struct _d3dText_metrics
27 {
28 float fntYScale,
29 fntXScale;
30
31 int fntXSpacing,
32 fntYSpacing;
33
34 DWORD dwColor;
35 LPDIRECT3DDEVICE3 lpD3DDevice;
36
37 } D3DFONTMETRICS, *PD3DFONTMETRICS;
38 /*===========================================================================*/
39 /* Function prototypes. */
40 /*===========================================================================*/
41 extern BOOL InitD3DText( void );
42 extern void d3dTextDrawCharacter( char *c, int x, int y, PD3DFONTMETRICS pfntMetrics );
43 extern void d3dTextDrawString( char *pszString, int x, int y, PD3DFONTMETRICS pfntMetrics );
44 /*===========================================================================*/
45 /* Global variables. */
46 /*===========================================================================*/
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52
53 #endif