[WASAPI] fix stream types and frequencies enumeration
[xbmc.git] / xbmc / guilib / GUITextureD3D.h
blobd01393356f96076f0742ab9e32e9243af00bfa14
1 /*
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.
7 */
9 #pragma once
11 #include "GUITexture.h"
12 #include "utils/ColorUtils.h"
14 class CGUITextureD3D : public CGUITexture
16 public:
17 static void Register();
18 static CGUITexture* CreateTexture(
19 float posX, float posY, float width, float height, const CTextureInfo& texture);
21 static void DrawQuad(const CRect& coords,
22 KODI::UTILS::COLOR::Color color,
23 CTexture* texture = nullptr,
24 const CRect* texCoords = nullptr,
25 const float depth = 1.0,
26 const bool blending = true);
28 CGUITextureD3D(float posX, float posY, float width, float height, const CTextureInfo& texture);
29 ~CGUITextureD3D() override = default;
31 CGUITextureD3D* Clone() const override;
33 protected:
34 void Begin(KODI::UTILS::COLOR::Color color);
35 void Draw(float *x, float *y, float *z, const CRect &texture, const CRect &diffuse, int orientation);
36 void End();
38 private:
39 CGUITextureD3D(const CGUITextureD3D& texture) = default;
41 KODI::UTILS::COLOR::Color m_col;