changes made from 0.95 through 0.97

This commit is contained in:
Chris Danford
2001-12-28 10:15:59 +00:00
parent 43fb348d2c
commit 7f3a131195
29 changed files with 1232 additions and 410 deletions
+7 -13
View File
@@ -27,30 +27,24 @@ public:
BitmapText();
bool LoadFromFontName( CString sFontName );
void SetText( CString sText ) { m_sText = sText; };
CString GetText() { return m_sText; };
void SetText( CString sText );
CString GetText();
bool LoadFontWidths( CString sFilePath );
//float GetWidthZoomed();
// void SetTopColor( D3DXCOLOR new_color ) { m_colorTop = new_color; };
// void SetBottomColor( D3DXCOLOR new_color ) { m_colorBottom = new_color; };
// void SetColor( D3DXCOLOR new_color ) { SetTopColor(new_color); SetBottomColor(new_color); };
void Draw();
float GetWidthInSourcePixels(); // in logical, pre-scaled units
float GetWidestLineWidthInSourcePixels(); // in logical, pre-zoomed units
float GetLineWidthInSourcePixels( int iLineNo );
protected:
bool LoadCharWidths( CString sWidthFilePath );
CString m_sFontName;
float m_fCharWidthsInSourcePixels[NUM_CHARS]; // in soure coordinate space
CString m_sText; // the string that the font is displaying
// D3DXCOLOR m_colorTop;
// D3DXCOLOR m_colorBottom;
// bool m_bHasShadow;
CStringArray m_sTextLines;
//CArray<float,float> m_fLineWidths;
};