Skip to content

Add optional text label to blitter drawables - #7

Open
DuccioLenkowicz wants to merge 1 commit into
masterfrom
preview-labels
Open

Add optional text label to blitter drawables#7
DuccioLenkowicz wants to merge 1 commit into
masterfrom
preview-labels

Conversation

@DuccioLenkowicz

Copy link
Copy Markdown
Collaborator

Draw() / AddDrawable() take an optional Label string. When set, the blitter view extension renders it at the drawable quad's top-left corner via an AddDrawCanvasPass layered over the already-blitted texture (white text with a black shadow, engine small font). Defaults to empty — no label is drawn and existing callers are unaffected.

Useful for on-screen debugging when several textures are tiled at once, to identify which tile is which.

Draw() / AddDrawable() take an optional Label string. When set, the blitter
view extension renders it at the drawable quad's top-left corner via an
AddDrawCanvasPass layered over the already-blitted texture (white text with
a black shadow, engine small font). Defaults to empty — no label is drawn
and existing callers are unaffected.

Useful for on-screen debugging when several textures are tiled at once
(e.g. multiple sensor previews), to identify which tile is which.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant