2 * Copyright (C) 2005-2013 Team XBMC
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with XBMC; see the file COPYING. If not, see
17 * <http://www.gnu.org/licenses/>.
26 #ifndef CGUILIB_GUIFONTTTF_DX_H
27 #define CGUILIB_GUIFONTTTF_DX_H
31 #include "GUIFontTTF.h"
32 #include "D3DResource.h"
38 class CGUIFontTTFDX : public CGUIFontTTFBase
41 CGUIFontTTFDX(const CStdString& strFileName);
42 virtual ~CGUIFontTTFDX(void);
48 virtual CBaseTexture* ReallocTexture(unsigned int& newHeight);
49 virtual bool CopyCharToTexture(FT_BitmapGlyph bitGlyph, unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2);
50 virtual void DeleteHardwareTexture();
51 CD3DTexture *m_speedupTexture; // extra texture to speed up reallocations when the main texture is in d3dpool_default.
52 // that's the typical situation of Windows Vista and above.
54 unsigned m_index_size;