public AbstractOsMappingWidget CreateSurface(SystemWindow childSystemWindow)
		{
			AbstractOsMappingWidget newSurface;

			switch (childSystemWindow.BitDepth)
			{
				case 24:
				case 32:
					newSurface = new WidgetForWindowsFormsOpenGL(childSystemWindow);
					break;

				default:
					throw new NotImplementedException();
			}

			return newSurface;
		}
예제 #2
0
        public AbstractOsMappingWidget CreateSurface(SystemWindow childSystemWindow)
        {
            AbstractOsMappingWidget newSurface;

            switch (childSystemWindow.BitDepth)
            {
            case 24:
            case 32:
                newSurface = new WidgetForWindowsFormsOpenGL(childSystemWindow);
                break;

            default:
                throw new NotImplementedException();
            }

            return(newSurface);
        }