first finished TileFont and test program.

This commit is contained in:
2020-08-03 21:22:02 +08:00
parent 8305602995
commit 2ae2228546
5 changed files with 157 additions and 158 deletions

View File

@@ -26,13 +26,14 @@ namespace hgl
FontSource *GetFontSource (){return source;}
TileData * GetTileData (){return tile_data;}
Texture2D * GetTexture (){return tile_data->GetTexture();}
public:
TileFont(TileData *td,FontSource *fs);
virtual ~TileFont();
bool Registry(List<TileUVFloat> &,const List<u32char> &); ///<注册要使用的字符
bool Registry(TileUVFloatMap &,const u32char *ch_list,const int ch_count); ///<注册要使用的字符
void Unregistry(const List<u32char> &); ///<注销要使用的字符
};//class TileFont
}//namespace graph