kodi
SpecialImageLoaderFactory.h
1 /*
2  * Copyright (C) 2023 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 "imagefiles/SpecialImageFileLoader.h"
12 
13 #include <array>
14 #include <memory>
15 #include <string>
16 
17 class CTexture;
18 
19 namespace IMAGE_FILES
20 {
22 {
23 public:
25 
26  std::unique_ptr<CTexture> Load(const std::string& specialType,
27  const std::string& filePath,
28  unsigned int preferredWidth,
29  unsigned int preferredHeight) const;
30 
31 private:
32  std::array<std::unique_ptr<ISpecialImageFileLoader>, 6> m_specialImageLoaders{};
33 };
34 } // namespace IMAGE_FILES
Definition: SpecialImageLoaderFactory.h:21
Definition: SpecialImageFileLoader.h:16
Base texture class, subclasses of which depend on the render spec (DX, GL etc.)
Definition: Texture.h:34