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.
11 #include "GUITexture.h"
12 #include "utils/ColorUtils.h"
14 class CGUITextureD3D
: public CGUITexture
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
;
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
);
39 CGUITextureD3D(const CGUITextureD3D
& texture
) = default;
41 KODI::UTILS::COLOR::Color m_col
;