2015. 2. 18. 22:16
모바일/COCOS2d
http://www.cocos2d-x.org/docs/manual/framework/native/v3/label/en
auto label1 = LabelTTF::create("Creating label through LabelTTF class by file name", "myFontName", 24); label1->setPosition(Point(origin.x, origin.y + visibleSize.height - label1->getContentSize().height)); label1->setAnchorPoint(Point(0.0f, 0.0f)); this->addChild(label1); auto label2 = Label::createWithTTF("Create label through Label class by .ttf file","fonts/myFontName.ttf", 32); label2->setPosition(Point(origin.x, origin.y + visibleSize.height - 80)); label2->setAlignment(TextHAlignment::LEFT); label2->setAnchorPoint(Point(0.0f, 0.0f)); this->addChild(label2);
label2->setAlignment(TextHAlignment::LEFT);
'모바일 > COCOS2d' 카테고리의 다른 글
cocos2d-x v3.x CCCalFunc to CalFunc (0) | 2015.02.21 |
---|---|
cocos2dX 2.x to 3.x (0) | 2015.02.01 |
cocos2d-x 3.3 programing guide (0) | 2015.01.25 |
COCOS2DX 3.2 설치 (0) | 2015.01.18 |
cocos2d google play game service (0) | 2013.08.09 |