[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / cores / VideoPlayer / VideoRenderers / OverlayRendererGL.h
blob2a558dbd92e51cc82f6335455a34dc8c9f1c912d
1 /*
2 * Initial code sponsored by: Voddler Inc (voddler.com)
3 * Copyright (C) 2005-2018 Team Kodi
4 * This file is part of Kodi - https://kodi.tv
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 * See LICENSES/README.md for more information.
8 */
10 #pragma once
12 #include "OverlayRenderer.h"
14 #include "system_gl.h"
16 class CDVDOverlay;
17 class CDVDOverlayImage;
18 class CDVDOverlaySpu;
19 class CDVDOverlaySSA;
21 namespace OVERLAY {
23 class COverlayTextureGL : public COverlay
25 public:
26 /*! \brief Create the overlay for rendering
27 * \param o The overlay image
28 * \param rSource The video source rect size
30 explicit COverlayTextureGL(const CDVDOverlayImage& o, CRect& rSource);
31 explicit COverlayTextureGL(const CDVDOverlaySpu& o);
32 ~COverlayTextureGL() override;
34 void Render(SRenderState& state) override;
36 GLuint m_texture = 0;
37 float m_u;
38 float m_v;
39 bool m_pma; /*< is alpha in texture premultiplied in the values */
42 class COverlayGlyphGL : public COverlay
44 public:
45 COverlayGlyphGL(ASS_Image* images, float width, float height);
47 ~COverlayGlyphGL() override;
49 void Render(SRenderState& state) override;
51 struct VERTEX
53 GLfloat u, v;
54 GLubyte r, g, b, a;
55 GLfloat x, y, z;
58 std::vector<VERTEX> m_vertex;
60 GLuint m_texture = 0;
61 float m_u;
62 float m_v;