[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / windowing / X11 / WinSystemX11GLESContext.h
blob1f066247bcb9753f08d271b48f0fc920e93fa0ae
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 "EGL/egl.h"
12 #include "WinSystemX11.h"
13 #include "rendering/gles/RenderSystemGLES.h"
15 class CGLContextEGL;
17 namespace KODI
19 namespace WINDOWING
21 namespace X11
24 class CWinSystemX11GLESContext : public CWinSystemX11, public CRenderSystemGLES
26 public:
27 CWinSystemX11GLESContext() = default;
28 virtual ~CWinSystemX11GLESContext() override;
30 static void Register();
31 static std::unique_ptr<CWinSystemBase> CreateWinSystem();
33 // Implementation of CWinSystem via CWinSystemX11
34 CRenderSystemBase* GetRenderSystem() override { return this; }
35 bool CreateNewWindow(const std::string& name, bool fullScreen, RESOLUTION_INFO& res) override;
36 bool ResizeWindow(int newWidth, int newHeight, int newLeft, int newTop) override;
37 void FinishWindowResize(int newWidth, int newHeight) override;
38 bool SetFullScreen(bool fullScreen, RESOLUTION_INFO& res, bool blankOtherDisplays) override;
39 bool DestroyWindowSystem() override;
40 bool DestroyWindow() override;
42 bool IsExtSupported(const char* extension) const override;
44 EGLDisplay GetEGLDisplay() const;
45 EGLSurface GetEGLSurface() const;
46 EGLContext GetEGLContext() const;
47 EGLConfig GetEGLConfig() const;
49 bool BindTextureUploadContext() override;
50 bool UnbindTextureUploadContext() override;
51 bool HasContext() override;
53 protected:
54 bool SetWindow(int width, int height, bool fullscreen, const std::string& output, int* winstate = nullptr) override;
55 void PresentRenderImpl(bool rendered) override;
56 void SetVSyncImpl(bool enable) override;
57 bool RefreshGLContext(bool force);
58 XVisualInfo* GetVisual() override;
60 CGLContextEGL* m_pGLContext = nullptr;
61 bool m_newGlContext;
64 } // namespace X11
65 } // namespace WINDOWING
66 } // namespace KODI