1 /* 2 * Copyright 1994-1997 Mark Kilgard, All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Mark Kilgard 7 */ 8 #ifndef __glutbitmap_h__ 9 #define __glutbitmap_h__ 10 11 12 #include <GL/glut.h> 13 14 15 typedef struct { 16 const GLsizei width; 17 const GLsizei height; 18 const GLfloat xorig; 19 const GLfloat yorig; 20 const GLfloat advance; 21 const GLubyte *bitmap; 22 } BitmapCharRec, *BitmapCharPtr; 23 24 typedef struct { 25 const char *name; 26 const int num_chars; 27 const int first; 28 const BitmapCharRec * const *ch; 29 } BitmapFontRec, *BitmapFontPtr; 30 31 typedef void *GLUTbitmapFont; 32 33 34 #endif /* __glutbitmap_h__ */ 35