//public override void PaintToCanvas(Canvas canvas) //{ // throw new NotImplementedException(); //} public override void PaintToOutputWindow() { //if (!isInitGLControl) //{ // return; //} //var innumber = dbugCount; //dbugCount++; //Console.WriteLine(">" + innumber); //TODO: review here windowControl.MakeCurrent(); this.openGLViewport.PaintMe(); windowControl.SwapBuffers(); //Console.WriteLine("<" + innumber); }
protected override void OnClosing() { //make current before clear GL resource _windowControl.MakeCurrent(); }