ETC1 ALPHA supports, for LabelType::BMFONT & LabelType::CHARMAP
| 670 | |
| 671 | // ETC1 ALPHA supports, for LabelType::BMFONT & LabelType::CHARMAP |
| 672 | static Texture2D* _getTexture(Label* label) |
| 673 | { |
| 674 | auto fontAtlas = label->getFontAtlas(); |
| 675 | Texture2D* texture = nullptr; |
| 676 | if (fontAtlas != nullptr) |
| 677 | { |
| 678 | auto textures = fontAtlas->getTextures(); |
| 679 | if (!textures.empty()) |
| 680 | { |
| 681 | texture = textures.begin()->second; |
| 682 | } |
| 683 | } |
| 684 | return texture; |
| 685 | } |
| 686 | |
| 687 | void Label::setVertexLayout() |
| 688 | { |
no test coverage detected