~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/drivers/d3d/d3dText.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
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