public UI3DVisControl()
        {
            InitializeComponent();

            diffuseDataSrcs = new List<DataSourceItem>();
            heightDataSrcs = new List<DataSourceItem>();

            // create profiles
            profiles = new GraphicsProfile[1];
            profiles[0] = new DEMGraphicsProfile("CPU Basic Profile", "Basic rendering of CPU DEM",
                                              new GraphicsDeviceRequirements(MultiSampleType.None, DeviceType.Hardware,
                                                                             new Format[] { Format.X8R8G8B8 }, 1, true,
                                                                             new DepthFormat[] { DepthFormat.D16 },
                                                                             false, false),
                                              new GraphicsDeviceRequirements(MultiSampleType.FourSamples, DeviceType.Hardware,
                                                                             new Format[] { Format.X8R8G8B8 }, 1, true,
                                                                             new DepthFormat[] { DepthFormat.D16 },
                                                                             true, true,
                                                                             new Version(1, 1), new Version(2, 0)));
        }
 public void SetProfile(DEMGraphicsProfile profile)
 {
     gProfile = profile;
 }