Skip to content
gpu-components
[ GPUWhiteboard ]

Whiteboard

Pan and zoom over a board with no geometry behind it — the dot grid is generated in the fragment shader. Draw six shape kinds, select and move them (shift-click, marquee), and delete.

Tool

Shapes are a host-owned array — this page's state decides whether to keep whatever a draw tool, a move-drag, or a delete asks for. Select reuses GPUNodeEditor's shift-click/marquee pattern; the six draw tools reuse GPUAnnotationCanvas's pointer-lifecycle machine.

GPUWhiteboard — 7 shapeshover a shape
dragpan (select tool, empty space), or draw with the active toolclick / shift+clickselect a shape / add it to the selectionshift+dragmarquee-select every shape it touchesdrag a selectionmove itctrl + wheelzoom at the cursordblclick / Enterclose a polygonEsccancel the in-progress draftDeleteremove the selection
Selection
Selectednone

Background is a procedural dot-grid with no geometry of its own; rect/ellipse/point are one quad each via InstancedQuadLayer, ruler/polygon/freehand are edges via LineLayer — forked from GPUAnnotationCanvas.