issue $48, implement CCXBitmapDC

This commit is contained in:
Walzer 2010-08-16 07:15:36 +00:00
parent bb04891ccb
commit deb7ec097d
1 changed files with 9 additions and 2 deletions

View File

@ -26,14 +26,21 @@ THE SOFTWARE.
#include "TG3.h"
#include "ccTypes.h"
#include "Cocos2dDefine.h"
namespace cocos2d{
class CCX_DLL CCXBitmapDC
{
public:
CCXBitmapDC();
CCXBitmapDC(const char *text, CGSize dimensions, UITextAlignment alignment, const char *fontName, float fontSize);
~CCXBitmapDC(void);
virtual ~CCXBitmapDC(void)
{
if (m_pBitmap)
{
m_pBitmap->Destroy();
m_pBitmap = NULL;
}
}
void* GetBuffer(void);
CGSize GetSize();