Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 3
0
		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);
		}
Ejemplo n.º 4
0
		public WindowsFormBitmap(AbstractOsMappingWidget app, SystemWindow childSystemWindow)
		{
			SetUpFormsWindow(app, childSystemWindow);

			HookWindowsInputAndSendToWidget communication = new HookWindowsInputAndSendToWidget(this, aggAppWidget);
		}