OpenClonk
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
21
class
CStdFontCustomImages
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
C4DrawTransform
Definition:
C4Facet.h:48
C4Facet
Definition:
C4Facet.h:115
CStdFontCustomImages
Definition:
C4FontLoaderCustomImages.h:22
CStdFontCustomImages::DrawFontImage
virtual bool DrawFontImage(const char *szImageTag, C4Facet &cgo, C4DrawTransform *transform)=0
CStdFontCustomImages::~CStdFontCustomImages
virtual ~CStdFontCustomImages()=default
CStdFontCustomImages::GetFontImageAspect
virtual float GetFontImageAspect(const char *szImageTag)=0
CStdFont
Definition:
C4FontLoader.h:76
openclonk
src
graphics
C4FontLoaderCustomImages.h
Generated on Fri May 16 2025 04:33:10 for OpenClonk by
1.9.1