add bitmap font batch rendering

This commit is contained in:
zilongshanren
2016-12-21 16:51:04 +08:00
parent 4fc4f33a70
commit 83d61dcbf7
13 changed files with 262 additions and 146 deletions
@@ -425,7 +425,7 @@ float ControlButton::getTitleTTFSizeForState(State state)
void ControlButton::setTitleBMFontForState(const std::string& fntFile, State state)
{
std::string title = this->getTitleForState(state);
this->setTitleLabelForState(Label::createWithBMFont(fntFile, title), state);
this->setTitleLabelForState(Label::createWithBMFont(fntFile, title, nullptr), state);
}
const std::string& ControlButton::getTitleBMFontForState(State state)