Index: hid_render_comp.html =================================================================== --- hid_render_comp.html (revision 10746) +++ hid_render_comp.html (revision 10747) @@ -9,8 +9,9 @@

However, the HID has a chance to alter which layer groups are drawn, using the set_layer_group hooks return value. + +

Bursts and layer groups

- The rendering is done in bursts. A burst may redraw only a small window of the screen. Each bursts draws multiple layer groups, in Z-order, from bottom (furthest from the eye of the user) to up (closest to the eye of @@ -65,5 +66,18 @@ mode. It is safe to ignore the direct argument and always use the more expensive, sketch-canvas+blitting method. +

GCs

+

+The API contains Graphic Context, or GC for short. A GC is a pen with +properties like color and tip shape. The core will initialize multiple +GCs for the drawing and will pass a GC pointer with each drawing command. +

+Note: this concept is orthogonal to the above canvas based drawing. +Regardless of which GC is used, the object being drawn always ends up +making modificatios to the currently active (sketch) canvas. +

+A GC can be initialized only after render_burst / start +and all GCs will be uninitialzed before render_burst / end. +