PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 9#pragma once
10
11#include "TextureBundleXBT.h"
12
13#include <string>
14#include <vector>
15
16class CTextureBundle
17{
18public:
19  CTextureBundle();
20  explicit CTextureBundle(bool useXBT);
21  ~CTextureBundle() = default;
22
23  void SetThemeBundle(bool themeBundle);
24  bool HasFile(const std::string& Filename);
25  void GetTexturesFromPath(const std::string &path, std::vector<std::string> &textures);
26  static std::string Normalize(const std::string &name);
27
28  bool LoadTexture(const std::string& Filename, CBaseTexture** ppTexture, int &width, int &height);
29
30  int LoadAnim(const std::string& Filename, CBaseTexture*** ppTextures, int &width, int &height, int& nLoops, int** ppDelays);
31  void Close();
32private:
33  CTextureBundleXBT m_tbXBT;
34
35  bool m_useXBT;
36};
37
38