#pragma once #include "Resource.h" #include "Ref.h" #include "GrpFontTexture.h" class CGraphicText : public CResource { public: typedef CRef TRef; public: static TType Type(); public: CGraphicText(const char* c_szFileName); virtual ~CGraphicText(); virtual bool CreateDeviceObjects(); virtual void DestroyDeviceObjects(); CGraphicFontTexture * GetFontTexturePointer(); protected: bool OnLoad(int iSize, const void * c_pvBuf); void OnClear(); bool OnIsEmpty() const; bool OnIsType(TType type); protected: CGraphicFontTexture m_fontTexture; };