MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / modifyDirectives

Method modifyDirectives

source/rendering/StarTextPainter.cpp:374–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void TextPainter::modifyDirectives(Directives& directives) {
375 if (directives) {
376 directives.loadOperations();
377 for (auto& entry : directives->entries) {
378 if (auto border = entry.operation.ptr<BorderImageOperation>())
379 border->includeTransparent = true;
380 }
381 }
382}
383
384RectF TextPainter::doRenderText(StringView s, TextPositioning const& position, bool reallyRender, unsigned* charLimit) {
385 Vec2F pos = position.pos;

Callers

nothing calls this directly

Calls 1

loadOperationsMethod · 0.80

Tested by

no test coverage detected