documentation/docfx/releases/1.53.2.md
GPU rendering and SVG canvas support (pre-release) · Preview only · NuGet · GitHub Release
A pre-release introducing two major capabilities: hardware-accelerated GPU rendering via OpenGL and SVG output via SKSvgCanvas. This release includes all changes from v1.53.1.2 and adds the ability to assemble a GRGlInterface from any GL library. Both GPU and SVG features were in beta and subject to API changes.
None in this release.
OpenGL support — Hardware-accelerated rendering via OpenGL on all platforms except UWP (which was planned for DirectX/ANGLE support). (#138)
GRGlInterface.AssembleGlInterface / AssembleGlesInterface — Assemble a GL interface from any GL library by providing a function pointer lookup callback:
var openGLES = ObjCRuntime.Dlfcn.dlopen(
"/System/Library/Frameworks/OpenGLES.framework/OpenGLES", 0);
var glInterface = GRGlInterface.AssembleGlesInterface((ctx, name) => {
return ObjCRuntime.Dlfcn.dlsym(openGLES, name);
});
SKSvgCanvas — Create a canvas that writes SVG output to an XML stream. Partial SVG feature coverage — not all Skia drawing operations are supported in SVG output. (#107)
using (var writer = new SKXmlStreamWriter(skStream))
using (var canvas = SKSvgCanvas.Create(bounds, writer))
{
// draw as normal — canvas is just an SKCanvas
}
Added GRGlInterface.AssembleGlInterface and AssembleGlesInterface for assembling a GL interface from any GL library.
Added SKSvgCanvas for creating a canvas that writes SVG output to an XML stream.
Initial OpenGL support across all platforms (except UWP).