Initial checkin

This commit is contained in:
Chris Danford
2001-11-03 10:52:42 +00:00
parent 2f65fb99f0
commit 7caffe0c93
54 changed files with 7057 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
//-----------------------------------------------------------------------------
// File: BitmapText.h
//
// Desc: A font class that draws from a bitmap.
//
// Copyright (c) 2001 Chris Danford. All rights reserved.
//-----------------------------------------------------------------------------
#ifndef _BITMAPTEXT_H_
#define _BITMAPTEXT_H_
//#include "Actor.h"
#include "Sprite.h"
#include "BitmapText.h"
class BitmapText : public Sprite
{
public:
BitmapText();
// virtual ~BitmapText();
BOOL LoadFromFontFile( CString sFontFilePath );
void SetText( CString sText );
CString GetText() { return m_sText; };
virtual void Draw();
protected:
void ResetWidthAndHeight();
CString m_sFontFilePath;
CString m_sText; // the string that the font is displaying
//Sprite m_Sprite; // holder for the graphic
CMap<TCHAR, TCHAR&, UINT, UINT&> m_mapCharToFrameNo;
};
#endif