public virtual void InitializeRendering(RenderingDevice device, bool antialias = false) { if (LicenseManager.UsageMode == LicenseUsageMode.Runtime) { Device = device; SwapChain = device.CreateSwapChain(new RenderingSwapChain.Description { Size = new VectorInt2(ClientSize.Width, ClientSize.Height), WindowHandle = Handle, Antialias = antialias }); } }