#include <NodeTest.h>
◆ NodeNormalizedPositionTest2()
| NodeNormalizedPositionTest2::NodeNormalizedPositionTest2 |
( |
| ) |
|
|
protected |
在文件 NodeTest.cpp 第 1154 行定义.
1159 positions[0] = Vec2(0.0f,0.0f);
1160 positions[1] = Vec2(0.0f,1.0f);
1161 positions[2] = Vec2(0.5f,0.5f);
1162 positions[3] = Vec2(1.0f,0.0f);
1163 positions[4] = Vec2(1.0f,1.0f);
1165 for(
int i=0; i<5; i++) {
1166 sprites[i] = Sprite::create(
"Images/grossini.png");
1167 sprites[i]->setPositionNormalized(positions[i]);
1168 addChild(sprites[i]);
1172 setContentSize( Director::getInstance()->getWinSize());
cocos2d::Size _copyContentSize
引用了 _copyContentSize.
◆ CREATE_FUNC()
◆ subtitle()
| std::string NodeNormalizedPositionTest2::subtitle |
( |
| ) |
const |
|
overridevirtual |
重载 TestCase .
在文件 NodeTest.cpp 第 1184 行定义.
1186 return "5 sprites: One in the center, the others on the corners of its parents";
◆ title()
| std::string NodeNormalizedPositionTest2::title |
( |
| ) |
const |
|
overridevirtual |
◆ update()
| void NodeNormalizedPositionTest2::update |
( |
float |
dt | ) |
|
|
overrideprotected |
◆ _accum
| float NodeNormalizedPositionTest2::_accum |
|
protected |
◆ _copyContentSize
| cocos2d::Size NodeNormalizedPositionTest2::_copyContentSize |
|
protected |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/NodeTest/NodeTest.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp