2 #include "AssetEntity.h" 6 #define DT_TOP 0x00000000 7 #define DT_LEFT 0x00000000 8 #define DT_CENTER 0x00000001 9 #define DT_RIGHT 0x00000002 10 #define DT_VCENTER 0x00000004 11 #define DT_BOTTOM 0x00000008 12 #define DT_WORDBREAK 0x00000010 13 #define DT_SINGLELINE 0x00000020 14 #define DT_EXPANDTABS 0x00000040 15 #define DT_TABSTOP 0x00000080 16 #define DT_NOCLIP 0x00000100 17 #define DT_EXTERNALLEADING 0x00000200 18 #define DT_CALCRECT 0x00000400 19 #define DT_NOPREFIX 0x00000800 20 #define DT_INTERNAL 0x00001000 25 class CSpriteRenderer;
34 static map<string, string> g_mapFontNames;
43 virtual HRESULT DrawTextA(
CSpriteRenderer* pSprite,
const char* strText,
int nCount,
RECT* rect, DWORD dwTextFormat, DWORD textColor){
return S_OK; };
44 virtual HRESULT DrawTextW(
CSpriteRenderer* pSprite,
const char16_t* strText,
int nCount,
RECT* rect, DWORD dwTextFormat, DWORD textColor){
return S_OK; };
46 const std::string& GetFontName()
const;
47 int GetFontSize()
const;
57 static void AddFontName(
const string& sLocalName,
const string& sTypeFaceName);
68 #ifdef USE_DIRECTX_RENDERER 69 #include "SpriteFontEntityDirectX.h" 73 #elif defined(USE_OPENGL_RENDERER) 74 #include "SpriteFontEntityOpenGL.h" static void AddFontName(const string &sLocalName, const string &sTypeFaceName)
give an alias name to a given font name.
Definition: SpriteFontEntity.cpp:44
AssetType
each asset type has a unique asset type number
Definition: AssetEntity.h:82
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: ManagedDef.h:18
static const string & TranslateFontName(const string &sLocalName)
we will secretly translate the font name, according to font name mapping.
Definition: SpriteFontEntity.cpp:54
AssetManager manages a set of asset entities of a certain type.
Definition: AssetManager.h:13
std::string AssetKey
the unique key object for asset entity.
Definition: AssetEntity.h:13
Base class for managed asset entity in ParaEngine.
Definition: AssetEntity.h:25
base class for sprite renderer
Definition: SpriteRenderer.h:55
Definition: SpriteFontEntity.h:26