home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / mesa / src-glut / glutbitmap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-31  |  796 b   |  36 lines

  1. #ifndef __glutbitmap_h__
  2. #define __glutbitmap_h__
  3.  
  4. /* Copyright (c) Mark J. Kilgard, 1994. */
  5.  
  6. /* This program is freely distributable without licensing fees 
  7.    and is provided without guarantee or warrantee expressed or 
  8.    implied. This program is -not- in the public domain. */
  9.  
  10.  
  11. #if defined(WIN32)
  12. #include <windows.h>
  13. #pragma warning(disable:4244)
  14. #endif /* WIN32 */
  15. #include <GL/gl.h>
  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. #endif /* __glutbitmap_h__ */
  36.