OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4FontLoaderCustomImages.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 2003-2009, RedWolf Design GmbH, http://www.clonk.de/
5  * Copyright (c) 2010-2016, The OpenClonk Team and contributors
6  *
7  * Distributed under the terms of the ISC license; see accompanying file
8  * "COPYING" for details.
9  *
10  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
11  * See accompanying file "TRADEMARK" for details.
12  *
13  * To redistribute this file separately, substitute the full license texts
14  * for the above references.
15  */
16 
17 #ifndef C4FontLoaderCustomImages_H
18 #define C4FontLoaderCustomImages_H
19 
20 // callback class for CStdFont to allow custom images
22 {
23 protected:
24  virtual bool DrawFontImage(const char* szImageTag, C4Facet& cgo, C4DrawTransform* transform) = 0;
25  virtual float GetFontImageAspect(const char* szImageTag) = 0;
26 
27  friend class CStdFont;
28 public:
29  virtual ~CStdFontCustomImages() = default;
30 };
31 
32 #endif
virtual ~CStdFontCustomImages()=default
virtual float GetFontImageAspect(const char *szImageTag)=0
virtual bool DrawFontImage(const char *szImageTag, C4Facet &cgo, C4DrawTransform *transform)=0