Changes

Jump to: navigation, search

Platform/GFX/Moz2D

905 bytes added, 07:30, 14 August 2013
m
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
* &hellip;
* 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
* &hellip;
* 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 ==
Confirm
166
edits

Navigation menu