private void Initialize() { Resize += delegate { cube.SetupProjection(Width, Height); MakeCurrent(); Render(); }; }
private void Initialize() { AutoSetContextOnRenderFrame = false; RenderOnUIThread = false; Resize += delegate { cube.SetupProjection(Width, Height); setViewport = true; }; }