2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
9 #include "TextureBundle.h"
11 #include "guilib/TextureBundleXBT.h"
15 CTextureBundle::CTextureBundle() : m_tbXBT
{false}, m_useXBT
{false}
19 CTextureBundle::CTextureBundle(bool useXBT
) : m_tbXBT
{useXBT
}, m_useXBT
{useXBT
}
23 bool CTextureBundle::HasFile(const std::string
& Filename
)
27 return m_tbXBT
.HasFile(Filename
);
30 if (m_tbXBT
.HasFile(Filename
))
39 std::vector
<std::string
> CTextureBundle::GetTexturesFromPath(const std::string
& path
)
42 return m_tbXBT
.GetTexturesFromPath(path
);
47 std::optional
<CTextureBundleXBT::Texture
> CTextureBundle::LoadTexture(const std::string
& filename
)
50 return m_tbXBT
.LoadTexture(filename
);
55 std::optional
<CTextureBundleXBT::Animation
> CTextureBundle::LoadAnim(const std::string
& filename
)
58 return m_tbXBT
.LoadAnim(filename
);
63 void CTextureBundle::Close()
65 m_tbXBT
.CloseBundle();
68 void CTextureBundle::SetThemeBundle(bool themeBundle
)
70 m_tbXBT
.SetThemeBundle(themeBundle
);
73 std::string
CTextureBundle::Normalize(std::string name
)
75 return CTextureBundleXBT::Normalize(std::move(name
));