Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.1 KiB

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======
  2. //
  3. // Baked Bitmap fonts
  4. //
  5. //===========================================================================
  6. #ifndef _BITMAPFONTFILE_H_
  7. #define _BITMAPFONTFILE_H_
  8. #include "datamap.h"
  9. #define BITMAPFONT_ID (('T'<<24)|('N'<<16)|('F'<<8)|('V'))
  10. #define BITMAPFONT_VERSION 3
  11. // style flags
  12. #define BF_BOLD 0x0001
  13. #define BF_ITALIC 0x0002
  14. #define BF_OUTLINED 0x0004
  15. #define BF_DROPSHADOW 0x0008
  16. #define BF_BLURRED 0x0010
  17. #define BF_SCANLINES 0x0020
  18. #define BF_ANTIALIASED 0x0040
  19. #define BF_CUSTOM 0x0080
  20. #pragma pack(1) //X360TBD
  21. typedef struct BitmapGlyph_s
  22. {
  23. DECLARE_BYTESWAP_DATADESC();
  24. short x;
  25. short y;
  26. short w;
  27. short h;
  28. short a;
  29. short b;
  30. short c;
  31. } BitmapGlyph_t;
  32. typedef struct BitmapFont_s
  33. {
  34. DECLARE_BYTESWAP_DATADESC();
  35. int m_id;
  36. int m_Version;
  37. short m_PageWidth;
  38. short m_PageHeight;
  39. short m_MaxCharWidth;
  40. short m_MaxCharHeight;
  41. short m_Flags;
  42. short m_Ascent;
  43. short m_NumGlyphs;
  44. unsigned char m_TranslateTable[256];
  45. } BitmapFont_t;
  46. #pragma pack()
  47. #endif