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