MCPcopy Create free account
hub / github.com/axmolengine/axmol / _getTexture

Function _getTexture

core/2d/Label.cpp:672–685  ·  view source on GitHub ↗

ETC1 ALPHA supports, for LabelType::BMFONT & LabelType::CHARMAP

Source from the content-addressed store, hash-verified

670
671// ETC1 ALPHA supports, for LabelType::BMFONT & LabelType::CHARMAP
672static 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
687void Label::setVertexLayout()
688{

Callers 1

updateShaderProgramMethod · 0.85

Calls 2

emptyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected