public void SetUp()
 {
     AppControl.SetUpApplication();
     form = new D3DHostForm();
     engine = new Textured3DEngine();
     form.SetEngine(engine);
 }
        public void SetUp()
        {
            AppControl.SetUpApplication();
            engine = new MultipleEffect3DEngine() { D3DDevice = new MultipleOutputDevice() { NumAdditionalTargets = 1 } };
            effect = new WorldViewProjEffect() { ShaderFilename = @"Effects\ClipmapTerrain_w_GSOut.fx" };
            engine.AddEffect(effect);
            hiresCtm = new ClipmapTerrainManager(engine, effect)
            {
                WidthInTiles = widthInTiles,
                WidthOfTiles = widthOfTiles,
                TextureVariableName = "HiresTexture",
                StartingLongLat = startingLongLat
            };
            loresCtm = new ClipmapTerrainManager(engine, effect)
            {
                WidthInTiles = widthInTiles,
                WidthOfTiles = widthOfTiles,
                TextureVariableName = "LoresTexture",
                TerrainFetcher = new Srtm30TextureFetcher(),
                StartingLongLat = startingLongLat
            };
            etm = new ExTerrainManager(engine,effect) { AutoAdjustScaleBasedOnHeight = true};
            form = new D3DHostForm();

            form.SetEngine(engine);
        }
 public void TearDown()
 {
     if (form != null && !form.IsDisposed)
         form.Dispose();
     form = null;
     GC.Collect();
 }
 public void KeepAddingShapes()
 {
     form = new D3DHostForm();
     engine = new TestObjectEngine();
     watch.Start();
     form.SetEngine(engine);
     engine.PostRendering += (o, e) => { AddObject(); };
     Application.Run(form);
 }
        public void SetUp()
        {
            AppControl.SetUpApplication();
            form = new D3DHostForm();
            engine = new Terrain3DEngine();
            manager = new LandscapeManager(engine);

            form.SetEngine(engine);
        }
        public void SetUp()
        {
            AppControl.SetUpApplication();
            form = new D3DHostForm();
            engine = new MultipleEffect3DEngine();
            TerrainEffect = new ExTerrainEffect();
            (engine as MultipleEffect3DEngine).AddEffect(TerrainEffect);

            form.SetEngine(engine);
        }
 private void ThreadProc()
 {
     form = new D3DHostForm();
     engine = new TestObjectEngine();
     form.SetEngine(engine);
     Application.Run(form);
 }
 public void SetUp()
 {
     AppControl.SetUpApplication();
     form = new D3DHostForm();
     con = new D3DHostControl();
 }
 public void TearDown()
 {
     if (form != null && !form.IsDisposed)
         form.Dispose();
     if (engine != null)
     {
         Console.WriteLine("engine disp");
         engine.Dispose();
     }
     form = null;
     engine = null;
     GC.Collect();
 }