cf_draw3d_push_stroke_pixels¶
Category: draw3d
GitHub: cute_draw3d.h
Switches stroke thickness between world units and screen pixels.
| Parameters | Description |
|---|---|
screen_space |
True to read thickness as pixels, false (the default) as world units. |
Remarks¶
World-unit strokes are geometry: they get thinner with distance like everything else, which is what a wireframe or a drawn-in-the-world annotation wants. Screen-space strokes hold a constant on-screen width at any distance -- what editor gizmos, selection outlines, and debug overlays want. Thickness passed to cf_draw3d_line and friends is interpreted per this stack; shape positions and circle/arc radii stay in world units either way, since a shape's size is geometry and only its stroke width is a screen-space choice. Local anti-aliasing and sub-pixel fading work identically in both modes.
Related Pages¶
cf_draw3d_pop_stroke_pixels
cf_draw3d_peek_stroke_pixels
cf_draw3d_line
cf_draw3d_circle