Open Source Tomb Raider Engine
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.

LoaderTR2.h 604B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*!
  2. * \file include/loader/LoaderTR2.h
  3. * \brief TR2 level file loader
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _LOADER_LOADER_TR2_H_
  8. #define _LOADER_LOADER_TR2_H_
  9. #include <cstdint>
  10. #include "loader/Loader.h"
  11. class LoaderTR2 : public Loader {
  12. public:
  13. LoaderTR2();
  14. virtual ~LoaderTR2();
  15. virtual int load(std::string f);
  16. private:
  17. void loadPaletteTextiles();
  18. void loadRooms();
  19. uint32_t *palette; //!< 256 * 4 bytes, RGBA, A unused
  20. uint32_t numTextiles;
  21. uint16_t **textiles; //!< numTextiles, 256 * 256 * 2 bytes, ARGB (MSB + 3x5bit)
  22. uint16_t numRooms;
  23. };
  24. #endif