diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/mxtk/mxbmp.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/mxtk/mxbmp.h')
| -rw-r--r-- | public/mxtk/mxbmp.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/public/mxtk/mxbmp.h b/public/mxtk/mxbmp.h new file mode 100644 index 0000000..b87109b --- /dev/null +++ b/public/mxtk/mxbmp.h @@ -0,0 +1,79 @@ +// +// mxToolKit (c) 1999 by Mete Ciragan +// +// file: mxBmp.h +// implementation: all +// last modified: Apr 15 1999, Mete Ciragan +// copyright: The programs and associated files contained in this +// distribution were developed by Mete Ciragan. The programs +// are not in the public domain, but they are freely +// distributable without licensing fees. These programs are +// provided without guarantee or warrantee expressed or +// implied. +// +#ifndef INCLUDED_MXBMP +#define INCLUDED_MXBMP + + + +#ifndef INCLUDED_MXIMAGE +#include "mxtk/mxImage.h" +#endif + + +#ifdef WIN32 +#include <pshpack2.h> +#endif + +typedef struct +{ + word bfType; + int bfSize; + word bfReserved1; + word bfReserved2; + int bfOffBits; +} mxBitmapFileHeader; + +typedef struct tagMxBitmapFileHeader +{ + int biSize; + int biWidth; + int biHeight; + word biPlanes; + word biBitCount; + int biCompression; + int biSizeImage; + int biXPelsPerMeter; + int biYPelsPerMeter; + int biClrUsed; + int biClrImportant; +} mxBitmapInfoHeader; + +typedef struct +{ + byte rgbBlue; + byte rgbGreen; + byte rgbRed; + byte rgbReserved; +} mxBitmapRGBQuad; + +#ifdef WIN32 +#include <poppack.h> +#endif + + + +#ifdef __cplusplus +extern "C" { +#endif + +mxImage *mxBmpRead (const char *filename); +bool mxBmpWrite (const char *filename, mxImage *image); + +#ifdef __cplusplus +} +#endif + + + +#endif // INCLUDED_MXBMP |