// ReSharper disable once UnusedMethodReturnValue.Local private IRenderer <Bitmap> Cook(IViewHost <Bitmap> form) { var renderer = new BitmapRenderer(form, RenderKit.MeasureContext, RenderKit.RenderContext); var _ = new LoopViewUpdater <Bitmap>(form, renderer, RenderKit.RenderContext.LayoutQueue); return(renderer); }
private void Cook(GLHostedElement element) { var context = GetContext(element); var fontProvider = GetFontProvider(context); //var styleContext = new BaseStyleContext(DefaultStyle.Instance, // new DefaultColorPalette()); var kit = new OpenGLRenderKit(fontProvider, context, BaselineThemeProvider.Instance, new GLImageProvider()); var renderer = new GLFormViewRenderer(element, kit, context); var _ = new LoopViewUpdater(renderer, element, _taskScheduler); }