Team Fortress 2 Source Code as on 22/4/2020
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.

55 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // lbmlib.h
  9. typedef unsigned char UBYTE;
  10. #ifndef _WINDOWS_
  11. typedef short WORD;
  12. #endif
  13. typedef unsigned short UWORD;
  14. typedef long LONG;
  15. typedef enum
  16. {
  17. ms_none,
  18. ms_mask,
  19. ms_transcolor,
  20. ms_lasso
  21. } mask_t;
  22. typedef enum
  23. {
  24. cm_none,
  25. cm_rle1
  26. } compress_t;
  27. typedef struct
  28. {
  29. UWORD w,h;
  30. WORD x,y;
  31. UBYTE nPlanes;
  32. UBYTE masking;
  33. UBYTE compression;
  34. UBYTE pad1;
  35. UWORD transparentColor;
  36. UBYTE xAspect,yAspect;
  37. WORD pageWidth,pageHeight;
  38. } bmhd_t;
  39. extern bmhd_t bmhd; // will be in native byte order
  40. void LoadLBM (char *filename, byte **picture, byte **palette);
  41. int LoadBMP (const char* szFile, byte** ppbBits, byte** ppbPalette);
  42. void WriteLBMfile (char *filename, byte *data, int width, int height
  43. , byte *palette);
  44. int WriteBMPfile (char *szFile, byte *pbBits, int width, int height, byte *pbPalette);