-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
/
RendererVTBGL.h
37 lines (28 loc) · 903 Bytes
/
RendererVTBGL.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Copyright (C) 2007-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
#include "cores/VideoPlayer/VideoRenderers/LinuxRendererGL.h"
class CRendererVTB : public CLinuxRendererGL
{
public:
CRendererVTB() = default;
virtual ~CRendererVTB();
static CBaseRenderer* Create(CVideoBuffer *buffer);
static bool Register();
// Player functions
virtual void ReleaseBuffer(int idx) override;
virtual bool NeedBuffer(int idx) override;
protected:
virtual bool LoadShadersHook() override;
virtual void AfterRenderHook(int idx) override;
virtual EShaderFormat GetShaderFormat() override;
// textures
virtual bool UploadTexture(int index) override;
virtual void DeleteTexture(int index) override;
virtual bool CreateTexture(int index) override;
};