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

Method draw

core/2d/LabelAtlas.cpp:273–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271// CCLabelAtlas - draw
272#if AX_LABELATLAS_DEBUG_DRAW
273void LabelAtlas::draw(Renderer* renderer, const Mat4& transform, uint32_t flags)
274{
275 AtlasNode::draw(renderer, transform, _transformUpdated);
276
277 _debugDrawNode->clear();
278 auto size = getContentSize();
279 Vec2 vertices[4] = {Vec2::ZERO, Vec2(size.width, 0), Vec2(size.width, size.height), Vec2(0.0f, size.height)};
280 _debugDrawNode->drawPoly(vertices, 4, true, Color4B::WHITE);
281}
282#endif
283
284std::string LabelAtlas::getDescription() const

Callers

nothing calls this directly

Calls 4

drawFunction · 0.85
drawPolyMethod · 0.80
Vec2Class · 0.70
clearMethod · 0.45

Tested by

no test coverage detected