Used to describe how to render an SVG and where to.
Public Member Functions | |
| void | PopTransform (SVGElement by) |
| Only pops if the given element had a transform to add earlier. More... | |
| void | PopTransform () |
| Always pops something. More... | |
| void | PushTransform (SVGElement by) |
| RenderContext (SVG drawing, int w, int h) | |
| void | SetSize (int width, int height) |
| Change the size of this context. This can potentially trigger a redraw. More... | |
| void | FillPath (Loonim.TextureNode fill, VectorPath transformedPath, bool evenOddFillMethod) |
| void | StrokePath (Loonim.TextureNode stroke, VectorPath transformedPath, float width, SVGElement settings) |
| Computes a stroke path now and adds it. More... | |
| void | AddViewBoxTransform (BoxRegion region, AspectRatio aspectRatio, SVGSVGElement frag) |
| void | PushMatrix (Matrix4x4 matrix) |
| Matrix4x4 | ScaleMatrix (float x, float y) |
| Builds a scale matrix. More... | |
| Matrix4x4 | TranslateMatrix (float x, float y) |
| Builds a translate matrix. More... | |
| void | SetClip (ScreenRegion region, bool reset) |
Public Attributes | |
| float | Depth |
| Current depth. More... | |
| float | PathAccuracy =0.05f |
| The accuracy when triangulating paths In terms of 0-2 where 2 represents the lowest accuracy. More... | |
| ScreenRegion | ClipRegion |
| Region to clip by. More... | |
| TransformationStack | Transformations =new TransformationStack() |
| A stack of transformations to apply to elements. Updated during a layout event. More... | |
| SVG | Drawing |
| The SVG being drawn. More... | |
| Loonim.SurfaceTexture | Filter |
| The Loonim filter. More... | |
Package Functions | |
| void | BuildFilter () |
| Draws the SVG now. More... | |
| void | Draw () |
Properties | |
| Transformation | Transform [get] |
| Transform at the top of the stack. More... | |
| int | Width [get] |
| The last drawn width. More... | |
| int | Height [get] |
| The last drawn height. More... | |
| Texture | Texture [get] |
| The underlying texture. Remains the same even when SetSize is called; i.e. you only need to grab this once. More... | |
Private Attributes | |
| Loonim.DrawInfo | DrawInfo |
| The Loonim draw info. More... | |
| Loonim.Stack | DrawStack |
| The current Loonim stack. More... | |
| Loonim.StrokePathMesh | StrokeHelper =null |
| Helps build stroke meshes. More... | |
|
inline |
|
inline |
|
inlinepackage |
Draws the SVG now.
|
inlinepackage |
|
inline |
|
inline |
Only pops if the given element had a transform to add earlier.
|
inline |
Always pops something.
|
inline |
|
inline |
|
inline |
Builds a scale matrix.
|
inline |
|
inline |
Change the size of this context. This can potentially trigger a redraw.
|
inline |
Computes a stroke path now and adds it.
|
inline |
Builds a translate matrix.
| ScreenRegion Svg.RenderContext.ClipRegion |
Region to clip by.
| float Svg.RenderContext.Depth |
Current depth.
|
private |
The Loonim draw info.
|
private |
The current Loonim stack.
| Loonim.SurfaceTexture Svg.RenderContext.Filter |
The Loonim filter.
| float Svg.RenderContext.PathAccuracy =0.05f |
The accuracy when triangulating paths In terms of 0-2 where 2 represents the lowest accuracy.
|
private |
Helps build stroke meshes.
| TransformationStack Svg.RenderContext.Transformations =new TransformationStack() |
A stack of transformations to apply to elements. Updated during a layout event.
|
get |
The last drawn height.
|
get |
The underlying texture. Remains the same even when SetSize is called; i.e. you only need to grab this once.
|
get |
Transform at the top of the stack.
|
get |
The last drawn width.