using Artemis.Core.Services; using SkiaSharp; namespace Artemis.Core.LayerBrushes { public abstract class LayerBrush : PropertiesLayerBrush where T : LayerPropertyGroup { protected LayerBrush() { BrushType = LayerBrushType.Regular; } /// /// The main method of rendering anything to the layer. The provided is specific to the layer /// and matches it's width and height. /// Called during rendering or layer preview, in the order configured on the layer /// /// The layer canvas /// /// The path to be filled, represents the shape /// The paint to be used to fill the shape public abstract void Render(SKCanvas canvas, SKImageInfo canvasInfo, SKPath path, SKPaint paint); internal override void InternalRender(SKCanvas canvas, SKImageInfo canvasInfo, SKPath path, SKPaint paint) { Render(canvas, canvasInfo, path, paint); } internal override void Initialize() { InitializeProperties(); } } }