#include <NewRendererTest.h>
◆ BugAutoCulling()
| BugAutoCulling::BugAutoCulling |
( |
| ) |
|
|
protected |
在文件 NewRendererTest.cpp 第 759 行定义.
761 Size s = Director::getInstance()->getWinSize();
762 auto fastmap = cocos2d::FastTMXTiledMap::create(
"TileMaps/orthogonal-test2.tmx");
763 this->addChild(fastmap);
764 for (
int i = 0; i < 30; i++) {
765 auto sprite = Sprite::create(
"Images/grossini.png");
766 sprite->setPosition(s.width/2 + s.width/10 * i, s.height/2);
767 this->addChild(sprite);
768 auto label = Label::createWithTTF(TTFConfig(
"fonts/arial.ttf"),
"Label");
769 label->setPosition(s.width/2 + s.width/10 * i, s.height/2);
770 this->addChild(label);
772 this->scheduleOnce([=](
float){
773 auto camera = Director::getInstance()->getRunningScene()->getCameras().front();
774 auto move = MoveBy::create(2.0f, Vec2(2 * s.width, 0.0f));
775 camera->runAction(Sequence::create(move, move->reverse(),
nullptr));
776 }, 1.0f,
"lambda-autoculling-bug");
◆ CREATE_FUNC()
◆ subtitle()
| std::string BugAutoCulling::subtitle |
( |
| ) |
const |
|
overridevirtual |
◆ title()
| std::string BugAutoCulling::title |
( |
| ) |
const |
|
overridevirtual |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp