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 "GUIFontTTF.h"
16 #include "system_gl.h"
18 class CGUIFontTTFGL
: public CGUIFontTTF
21 explicit CGUIFontTTFGL(const std::string
& fontIdent
);
22 ~CGUIFontTTFGL(void) override
;
24 bool FirstBegin() override
;
25 void LastEnd() override
;
27 CVertexBuffer
CreateVertexBuffer(const std::vector
<SVertex
>& vertices
) const override
;
28 void DestroyVertexBuffer(CVertexBuffer
& bufferHandle
) const override
;
29 static void CreateStaticVertexBuffers(void);
30 static void DestroyStaticVertexBuffers(void);
33 std::unique_ptr
<CTexture
> ReallocTexture(unsigned int& newHeight
) override
;
34 bool CopyCharToTexture(FT_BitmapGlyph bitGlyph
,
38 unsigned int y2
) override
;
39 void DeleteHardwareTexture() override
;
41 static GLuint m_elementArrayHandle
;
44 unsigned int m_updateY1
{0};
45 unsigned int m_updateY2
{0};
55 TextureStatus m_textureStatus
{TEXTURE_VOID
};
57 static bool m_staticVertexBufferCreated
;