CBitmapHandler.h 676 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. struct SDL_Surface;
  3. /*
  4. * CBitmapHandler.h, part of VCMI engine
  5. *
  6. * Authors: listed in file AUTHORS in main folder
  7. *
  8. * License: GNU General Public License v2.0 or later
  9. * Full text of license available in license.txt file, in main folder
  10. *
  11. */
  12. /// Struct which stands for a simple rgba palette
  13. struct BMPPalette
  14. {
  15. ui8 R,G,B,F;
  16. };
  17. namespace BitmapHandler
  18. {
  19. SDL_Surface * loadH3PCX(ui8 * data, size_t size);
  20. //Load file from specific LOD
  21. SDL_Surface * loadBitmapFromDir(std::string path, std::string fname, bool setKey=true);
  22. //Load file from any LODs
  23. SDL_Surface * loadBitmap(std::string fname, bool setKey=true);
  24. }