private void InitLogic()
 {
     TerrainModel   = new TerrainModel();
     TerrainEngine  = new TerrainEngine(TerrainModel);
     ViewportCamera = new ViewportCamera();
     Viewport       = new Viewport(TerrainEngine, ViewportCamera, TerrainModel);
     LayerManager   = new LayerManager(TerrainEngine);
     TerrainEngine.InitLogic(LayerManager, this);
 }
Пример #2
0
        public Viewport(TerrainEngine terrainSettings, ViewportCamera viewportCamera, TerrainModel terrainModel)
        {
            this.terrainModel   = terrainModel;
            EffectsManager      = new DefaultEffectsManager();
            this.terrainEngine  = terrainSettings;
            this.viewportCamera = viewportCamera;

            InitProperties();
            InitCommands();
            InitModel();
            InitDefaultViewportSettings();
            ChangeViewMode(0);
        }