kodi
TextureGL.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "Texture.h"
12 
13 #include "system_gl.h"
14 
15 /************************************************************************/
16 /* CGLTexture */
17 /************************************************************************/
18 class CGLTexture : public CTexture
19 {
20 public:
21  CGLTexture(unsigned int width = 0, unsigned int height = 0, XB_FMT format = XB_FMT_A8R8G8B8);
22  ~CGLTexture() override;
23 
24  void CreateTextureObject() override;
25  void DestroyTextureObject() override;
26  void LoadToGPU() override;
27  void BindToUnit(unsigned int unit) override;
28 
29 protected:
30  GLuint m_texture = 0;
31  bool m_isOglVersion3orNewer = false;
32 };
33 
Base texture class, subclasses of which depend on the render spec (DX, GL etc.)
Definition: Texture.h:34
Definition: TextureGL.h:18