Confirmed users
166
edits
m (→Draw targets) |
|||
Line 88: | Line 88: | ||
=== Draw targets === | === Draw targets === | ||
<span style="background:yellow">TBD (currently just note form)</span> | |||
<div style="background:#ffd"> | |||
A draw target performs drawing operations on some backing store (e.g. a D3D texture or other buffer). | |||
DrawTarget: | |||
* FillRect | |||
* Fill | |||
* … | |||
* PushClip (Stateful) | |||
* PushClipRect (Stateful) | |||
* PopClip (Stateful) | |||
* SetTransform (Stateful) | |||
Typically the arguments to draw commands take the following order: | |||
# Shape (Rect / Path) – the exceptions are FillGlyph and DrawSurface | |||
# Pattern | |||
# A DrawOptions object (alpha, comp-op, anti-aliasing, snapping etc.) | |||
# Call-specific draw options | |||
CreatePathBuilder | |||
PathBuilder: | |||
* MoveTo | |||
* LineTo | |||
* … | |||
* Finish: Path – cannot re-use a PathBuilder after calling Finish | |||
ColorPattern | |||
SurfacePattern | |||
LinearGradientPattern | |||
RadialGradientPattern | |||
(These are all not-refcounted, but usually stack-based) | |||
Draw commands | |||
* Shape (Rect / Path) | |||
* Pattern | |||
</div> | |||
== Developing Moz2D == | == Developing Moz2D == |