블로그 이미지
박황기
최근에 스마트폰에 관심이 많습니다. 예전에 상상하던 모습들이 점차 이루어지고 있는게 신기하네요.

calendar

1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30

Notice

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
posted by 박황기