#ifndef __R_LABEL_H_ #define __R_LABEL_H_ #include "cocos2d.h" USING_NS_CC; #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) #define RLABEL_FONT "Museo Sans Rounded" #endif #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) #define RLABEL_FONT "fonts/MuseoSansRounded.ttf" #endif #define NEW_LABEL 0 #if (NEW_LABEL == 1) class RLabel : public Label #else class RLabel : public LabelTTF #endif { public: RLabel(); virtual ~RLabel(); static RLabel* create(const std::string& str, float fontSize); bool init(const std::string& str, float fontSize); }; #endif