/xbmc/guilib/TextureBundle.h

http://github.com/xbmc/xbmc · C Header · 38 lines · 21 code · 10 blank · 7 comment · 0 complexity · 53b7e1812eec9b516ef41c4696346904 MD5 · raw file

  1. /*
  2. * Copyright (C) 2005-2018 Team Kodi
  3. * This file is part of Kodi - https://kodi.tv
  4. *
  5. * SPDX-License-Identifier: GPL-2.0-or-later
  6. * See LICENSES/README.md for more information.
  7. */
  8. #pragma once
  9. #include "TextureBundleXBT.h"
  10. #include <string>
  11. #include <vector>
  12. class CTextureBundle
  13. {
  14. public:
  15. CTextureBundle();
  16. explicit CTextureBundle(bool useXBT);
  17. ~CTextureBundle() = default;
  18. void SetThemeBundle(bool themeBundle);
  19. bool HasFile(const std::string& Filename);
  20. void GetTexturesFromPath(const std::string &path, std::vector<std::string> &textures);
  21. static std::string Normalize(const std::string &name);
  22. bool LoadTexture(const std::string& Filename, CBaseTexture** ppTexture, int &width, int &height);
  23. int LoadAnim(const std::string& Filename, CBaseTexture*** ppTextures, int &width, int &height, int& nLoops, int** ppDelays);
  24. void Close();
  25. private:
  26. CTextureBundleXBT m_tbXBT;
  27. bool m_useXBT;
  28. };