Fission FSN
Loading...
Searching...
No Matches
fsCFont.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCFont.h
4*
5* Purpose: Cocos2d-x font implementation
6*
7*********************************************************************/
8
9#ifndef fsCFonthdr
10#define fsCFonthdr
11
12#include <memory>
13
14#include "../../fsIFont.h"
15
16namespace ax
17{
18 typedef struct _ttfConfig TTFConfig;
19 class FontAtlas;
20}
21
22
23class fsCFont : public fsIFont
24{
25
26 friend class fsIFont;
27 friend class fsCRenderer;
29 friend class fsCNativeTextSprite;
30
31public:
32
33 virtual ~fsCFont();
34
35protected:
36
37 void initialiseDo(const fsSFontParams& pParams) override;
38
39 fsCFont();
40
41private:
42
43 std::unique_ptr<ax::TTFConfig> mConfig;
44 ax::FontAtlas* mFontAtlas;
45};
46
47#endif
virtual ~fsCFont()
Definition fsCFont.cpp:32
friend class fsCRenderer
Definition fsCFont.h:27
friend class fsCVertexStreamTextSpriteRenderData
Definition fsCFont.h:28
void initialiseDo(const fsSFontParams &pParams) override
Definition fsCFont.cpp:8
friend class fsIFont
Definition fsCFont.h:26
fsCFont()
Definition fsCFont.cpp:26
friend class fsCNativeTextSprite
Definition fsCFont.h:29
Definition fsC3dLight.h:19
struct _ttfConfig TTFConfig
Definition fsCFont.h:18
Definition fsIFont.h:20