Added DirectFB GLUT implementation.
[mesa.git] / src / glut / directfb / font.h
1 /* Copyright (c) Mark J. Kilgard, 1994, 1998. */
2
3 /* This program is freely distributable without licensing fees
4 and is provided without guarantee or warrantee expressed or
5 implied. This program is -not- in the public domain. */
6
7 #ifndef __GLUT_FONT_H__
8 #define __GLUT_FONT_H__
9
10
11 typedef struct {
12 const GLsizei width;
13 const GLsizei height;
14 const GLfloat xorig;
15 const GLfloat yorig;
16 const GLfloat advance;
17 const GLubyte *bitmap;
18 } BitmapCharRec, *BitmapCharPtr;
19
20 typedef struct {
21 const char *name;
22 const int num_chars;
23 const int first;
24 const BitmapCharRec * const *ch;
25 } BitmapFontRec, *BitmapFontPtr;
26
27 typedef void *GLUTbitmapFont;
28
29
30 typedef struct {
31 float x;
32 float y;
33 } CoordRec, *CoordPtr;
34
35 typedef struct {
36 int num_coords;
37 const CoordRec *coord;
38 } StrokeRec, *StrokePtr;
39
40 typedef struct {
41 int num_strokes;
42 const StrokeRec *stroke;
43 float center;
44 float right;
45 } StrokeCharRec, *StrokeCharPtr;
46
47 typedef struct {
48 const char *name;
49 int num_chars;
50 const StrokeCharRec *ch;
51 float top;
52 float bottom;
53 } StrokeFontRec, *StrokeFontPtr;
54
55 typedef void *GLUTstrokeFont;
56
57
58 #endif /* __GLUT_FONT_H__ */