Skip to content

text: centralize SoText2 raster preparation - #57

Open
tritao wants to merge 20 commits into
stack/drawlist-material-lightingfrom
stack/drawlist-text-foundation
Open

text: centralize SoText2 raster preparation#57
tritao wants to merge 20 commits into
stack/drawlist-material-lightingfrom
stack/drawlist-text-foundation

Conversation

@tritao

@tritao tritao commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

This prerequisite centralizes SoText2 screen-space layout and glyph coverage generation behind the node’s private implementation.

LegacyGL and retained rendering now consume the same prepared raster result:

  • shared glyph layout, UTF-8 traversal, positioning, justification, and coverage generation
  • separate binary and antialiased glyph coverage with independent raster origins
  • LegacyGL keeps its existing glBitmap and glDrawPixels execution behavior
  • the retained path adapts the shared result into pixel-raster commands without reimplementing text layout

The second commit separates common shape GL gating from primitive-only triangle sorting while preserving the historical statement order:

  • SoText2 skips only sorted-triangle handling
  • inherited transparency and depth-write behavior remain intact
  • post-sort special paths remain in their original order
  • focused LegacyGL regressions cover direct-rendered transparency and gating order

Scope

This is a LegacyGL-preserving prerequisite. It contains no retained-renderer API, shader, or render-ordering redesign. It establishes the reusable text-preparation seam consumed by #50 while keeping direct LegacyGL behavior explicit and independently testable.

Commits

  1. text: centralize SoText2 raster preparation
  2. rendering: separate primitive triangle handling from shape GL gating

Stack

Layer 14/18, based on PR #49.

@tritao tritao changed the title stack/drawlist text foundation text: centralize SoText2 layout and glyph rasterization Aug 16, 2026
Comment thread src/shapenodes/SoText2.cpp Fixed
@tritao tritao changed the title text: centralize SoText2 layout and glyph rasterization text: centralize SoText2 raster preparation Aug 16, 2026
@tritao
tritao force-pushed the stack/drawlist-text-foundation branch 3 times, most recently from 12d4d80 to 86865bd Compare August 16, 2026 12:23
@tritao
tritao force-pushed the stack/drawlist-text-foundation branch 3 times, most recently from 3bd7f97 to 5389fdf Compare August 16, 2026 13:32
@tritao
tritao marked this pull request as ready for review August 16, 2026 14:04
@tritao
tritao force-pushed the stack/drawlist-text-foundation branch 2 times, most recently from 3833bb9 to f7c5e1b Compare August 16, 2026 15:59
@tritao
tritao force-pushed the stack/drawlist-text-foundation branch from f7c5e1b to 99bde08 Compare August 16, 2026 16:25
@tritao
tritao force-pushed the stack/drawlist-text-foundation branch from 99bde08 to 4f5058b Compare August 16, 2026 18:05
@tritao
tritao force-pushed the stack/drawlist-text-foundation branch from 4f5058b to 9282afa Compare August 16, 2026 18:22
@tritao
tritao force-pushed the stack/drawlist-text-foundation branch from 9282afa to 4b35b91 Compare August 16, 2026 18:47
@tritao
tritao force-pushed the stack/drawlist-text-foundation branch from 4b35b91 to 1708cde Compare August 16, 2026 19:41
@tritao
tritao force-pushed the stack/drawlist-text-foundation branch from 1708cde to 0fda8b4 Compare August 16, 2026 20:15
@tritao
tritao force-pushed the stack/drawlist-text-foundation branch from 0fda8b4 to 0921109 Compare August 16, 2026 20:20
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.

2 participants