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 WindowsFormBitmap(AbstractOsMappingWidget app, SystemWindow childSystemWindow) { SetUpFormsWindow(app, childSystemWindow); HookWindowsInputAndSendToWidget communication = new HookWindowsInputAndSendToWidget(this, aggAppWidget); }