summaryrefslogtreecommitdiff
path: root/public/BitmapFontFile.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/BitmapFontFile.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'public/BitmapFontFile.h')
-rw-r--r--public/BitmapFontFile.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/public/BitmapFontFile.h b/public/BitmapFontFile.h
new file mode 100644
index 0000000..9628c3d
--- /dev/null
+++ b/public/BitmapFontFile.h
@@ -0,0 +1,54 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Baked Bitmap fonts
+//
+//===========================================================================
+
+#ifndef _BITMAPFONTFILE_H_
+#define _BITMAPFONTFILE_H_
+
+#include "datamap.h"
+
+#define BITMAPFONT_ID (('T'<<24)|('N'<<16)|('F'<<8)|('V'))
+#define BITMAPFONT_VERSION 3
+
+// style flags
+#define BF_BOLD 0x0001
+#define BF_ITALIC 0x0002
+#define BF_OUTLINED 0x0004
+#define BF_DROPSHADOW 0x0008
+#define BF_BLURRED 0x0010
+#define BF_SCANLINES 0x0020
+#define BF_ANTIALIASED 0x0040
+#define BF_CUSTOM 0x0080
+
+#pragma pack(1) //X360TBD
+typedef struct BitmapGlyph_s
+{
+ DECLARE_BYTESWAP_DATADESC();
+ short x;
+ short y;
+ short w;
+ short h;
+ short a;
+ short b;
+ short c;
+} BitmapGlyph_t;
+
+typedef struct BitmapFont_s
+{
+ DECLARE_BYTESWAP_DATADESC();
+ int m_id;
+ int m_Version;
+ short m_PageWidth;
+ short m_PageHeight;
+ short m_MaxCharWidth;
+ short m_MaxCharHeight;
+ short m_Flags;
+ short m_Ascent;
+ short m_NumGlyphs;
+ unsigned char m_TranslateTable[256];
+} BitmapFont_t;
+#pragma pack()
+
+#endif \ No newline at end of file