| 963 | } |
| 964 | |
| 965 | NonBatchSprites::NonBatchSprites() |
| 966 | { |
| 967 | Size s = Director::getInstance()->getWinSize(); |
| 968 | _spritesAnchor = Node::create(); |
| 969 | _spritesAnchor->setPosition(0, 0); |
| 970 | addChild(_spritesAnchor); |
| 971 | |
| 972 | _totalSprites = Label::createWithTTF(TTFConfig("fonts/arial.ttf"), "sprites"); |
| 973 | _totalSprites->setColor(Color3B::YELLOW); |
| 974 | _totalSprites->enableOutline(Color4B::RED, 2); |
| 975 | _totalSprites->setPosition(s.width / 2, s.height / 2); |
| 976 | |
| 977 | addChild(_totalSprites); |
| 978 | |
| 979 | scheduleUpdate(); |
| 980 | } |
| 981 | |
| 982 | void NonBatchSprites::createSprite() |
| 983 | { |
nothing calls this directly
no test coverage detected