/// <summary> /// Initializes the Renderer with a D3D11 render device and the provided options. /// </summary> /// <param name="sRGB">Enables linear rendering.</param> /// <param name="vgOptions">Vector graphics options.</param> public void InitD3D11(IntPtr deviceContext, bool sRGB, VGOptions vgOptions) { Noesis_Renderer_InitD3D11_(CPtr, deviceContext, sRGB, vgOptions.OffscreenWidth, vgOptions.OffscreenHeight, vgOptions.OffscreenSampleCount, vgOptions.OffscreenDefaultNumSurfaces, vgOptions.OffscreenMaxNumSurfaces, vgOptions.GlyphCacheTextureWidth, vgOptions.GlyphCacheTextureHeight, vgOptions.GlyphCacheMeshTreshold); }
/// <summary> /// Initializes the Renderer with a GL render device and the provided options. /// </summary> /// <param name="vgOptions">Vector graphics options.</param> public void InitGL(VGOptions vgOptions) { Noesis_Renderer_InitGL_(CPtr, vgOptions.OffscreenWidth, vgOptions.OffscreenHeight, vgOptions.OffscreenSampleCount, vgOptions.OffscreenDefaultNumSurfaces, vgOptions.OffscreenMaxNumSurfaces, vgOptions.GlyphCacheTextureWidth, vgOptions.GlyphCacheTextureHeight, vgOptions.GlyphCacheMeshTreshold); }