Clone of Akilla's ac2d @ https://github.com/deregtd/AC2D

cPortal.h 709B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include "cThread.h"
  3. #include "cTurbineFile.h"
  4. class cPortal : public cLockable/*, public cTurbineFile*/ {
  5. public:
  6. cPortal();
  7. ~cPortal();
  8. DWORD FindTexturePalette(DWORD Texture, std::vector<stPaletteSwap> *vPaletteSwaps = 0, float fTransTex = 0, float fTransPix = 0);
  9. DWORD FindGraphic(DWORD ID, std::vector<stPaletteSwap> *vPaletteSwaps = 0, float fTransTex = 0, float fTransPix = 0);
  10. POINTf GetGraphicEdges(DWORD ID);
  11. cPortalFile * OpenEntry( DWORD dwID );
  12. DWORD GetPoolSize();
  13. private:
  14. int HighestPowerOfTwo(DWORD In);
  15. std::unordered_map<QWORD, DWORD> m_mGraphicCache;
  16. std::unordered_map<DWORD, POINTf> m_mGraphicEdgeCache;
  17. cTurbineFile *m_tfPortal, *m_tfPortalHighRes;
  18. };