BitmapText: line wrap automatically

This commit is contained in:
Chris Danford
2003-11-06 06:20:35 +00:00
parent 9856f490f1
commit c43360bbb1
4 changed files with 56 additions and 7 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ public:
bool LoadFromFont( CString sFontName );
bool LoadFromNumbers( CString sTexturePath ) { return LoadFromTextureAndChars(sTexturePath,"0123456789%. :x"); };
bool LoadFromTextureAndChars( CString sTexturePath, CString sChars );
void SetText( CString sText, CString sAlternateText = "" );
void SetText( CString sText, CString sAlternateText = "", int iWrapWidthPixels = -1 );
void SetTextMaxWidth( float MaxWidth, const CString &text, const CString &alttext = "" );
int GetWidestLineWidthInSourcePixels() { return m_iWidestLineWidth; };