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.

79 lines
1.4 KiB

  1. //
  2. // mxToolKit (c) 1999 by Mete Ciragan
  3. //
  4. // file: mxBmp.h
  5. // implementation: all
  6. // last modified: Apr 15 1999, Mete Ciragan
  7. // copyright: The programs and associated files contained in this
  8. // distribution were developed by Mete Ciragan. The programs
  9. // are not in the public domain, but they are freely
  10. // distributable without licensing fees. These programs are
  11. // provided without guarantee or warrantee expressed or
  12. // implied.
  13. //
  14. #ifndef INCLUDED_MXBMP
  15. #define INCLUDED_MXBMP
  16. #ifndef INCLUDED_MXIMAGE
  17. #include "mxtk/mxImage.h"
  18. #endif
  19. #ifdef WIN32
  20. #include <pshpack2.h>
  21. #endif
  22. typedef struct
  23. {
  24. word bfType;
  25. int bfSize;
  26. word bfReserved1;
  27. word bfReserved2;
  28. int bfOffBits;
  29. } mxBitmapFileHeader;
  30. typedef struct tagMxBitmapFileHeader
  31. {
  32. int biSize;
  33. int biWidth;
  34. int biHeight;
  35. word biPlanes;
  36. word biBitCount;
  37. int biCompression;
  38. int biSizeImage;
  39. int biXPelsPerMeter;
  40. int biYPelsPerMeter;
  41. int biClrUsed;
  42. int biClrImportant;
  43. } mxBitmapInfoHeader;
  44. typedef struct
  45. {
  46. byte rgbBlue;
  47. byte rgbGreen;
  48. byte rgbRed;
  49. byte rgbReserved;
  50. } mxBitmapRGBQuad;
  51. #ifdef WIN32
  52. #include <poppack.h>
  53. #endif
  54. #ifdef __cplusplus
  55. extern "C" {
  56. #endif
  57. mxImage *mxBmpRead (const char *filename);
  58. bool mxBmpWrite (const char *filename, mxImage *image);
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62. #endif // INCLUDED_MXBMP