public WindowsFormsOpenGL(AbstractOsMappingWidget app, SystemWindow childSystemWindow) { switch (childSystemWindow.BitDepth) { case 32: glControl = new MyGLControl(32, childSystemWindow.StencilBufferDepth); break; default: throw new NotImplementedException(); } Controls.Add(glControl); SetUpFormsWindow(app, childSystemWindow); HookWindowsInputAndSendToWidget communication = new HookWindowsInputAndSendToWidget(glControl, aggAppWidget); }
public new void MakeCurrent() { currentControl = this; base.MakeCurrent(); }
public new void MakeCurrent() { currentControl = this; base.MakeCurrent(); ImageGlPlugin.SetCurrentContextData(Id, releaseAllGlData); }